#avr Logs

Mar 02 2018

#avr Calendar

12:48 AM polprog: morning
12:51 AM polprog: science day today
12:55 AM Casper: polprog: ... transforming your pee into explosive is not the best way you know!
01:12 AM polprog: that will be $100 miss
03:56 AM nuxil: polprog, what you doing for science project?
04:20 AM Haohmaru: test if you can absorb coffee thru your skin by soaking in a pool of coffee
04:20 AM Haohmaru: i bet no one has done that
04:31 AM nohitzzz: Haohmaru im gonna use C++ with the synth
04:31 AM nohitzzz: and floats
04:32 AM Haohmaru: poor attiny
04:32 AM nohitzzz: i got a better chip
04:33 AM Haohmaru: which one?
04:33 AM nohitzzz: http://www.st.com/en/microcontrollers/stm32f767zi.html
04:33 AM Haohmaru: i'm doing some funky 64bit integer maths (including division) on the atmega2561 for a digital oscillator ;P~
04:33 AM Haohmaru: ah, u r a dirty cheat0r
04:34 AM nohitzzz: C++ makes more sense
04:34 AM nohitzzz: with the classes
04:34 AM Haohmaru: of course
04:34 AM nohitzzz: and that has FPU
04:34 AM nohitzzz: and DSP instructions
04:35 AM Emil: >c++
04:35 AM Emil: >in microcontrollers
04:35 AM Emil: out of my fucking channel
04:35 AM Emil: :D
04:36 AM nohitzzz: because i know you are Emil im not even gonna bother
04:36 AM * Haohmaru zaps Emil with 5 volts
04:36 AM Emil: nohitzzz: inb4 you run into unsolable cache issues
04:36 AM nohitzzz: you can have your opinion
04:36 AM Emil: unsolvable*
04:36 AM Emil: nohitzzz: haha
04:36 AM Haohmaru: Emil why f*kken not?
04:37 AM Haohmaru: teh compiler accepts it ;P~
04:37 AM Haohmaru: advantage? take(advantage);
04:38 AM Haohmaru: zap(Emil, 5V);
04:39 AM Emil: Haohmaru used 5V, it's super inefficient!
04:40 AM Haohmaru: >:(
04:40 AM * Haohmaru takes a mains cord..
04:40 AM Haohmaru: COME HERE!
04:43 AM Emil: You come here
04:43 AM Emil: And hug me
04:44 AM nohitzzz: actually Haohmaru im gonna use H7-series, that's even faster, 400Mhz, but they are not available right now so im gonna use F7 for now
04:45 AM * nuxil smacks nohitzzz with some asm
04:45 AM Emil: such cycles
04:46 AM nuxil: i got my dds up to 128khz now :) x4 mode. but can only do min 4 hz steps in that mode.
04:46 AM nohitzzz: and i have to look into the DSP http://www.st.com/content/ccc/resource/technical/document/application_note/group0/c1/ee/18/7a/f9/45/45/3b/DM00273990/files/DM00273990.pdf/jcr:content/translations/en.DM00273990.pdf
04:46 AM polprog: nuxil: i did an rc circuit and shown hiw a cap conducts AC
04:46 AM polprog: how*
04:50 AM nohitzzz: that book i bought is great
04:54 AM polprog: i wish i had some pics
05:15 AM Jartza: ahlo
05:17 AM nohitzzz: its damn great that you dont need digital signal processors anymore to do audio DSP. i have no problem with them but for some reason the dev tools are damn expensive, you cant get a reasonable priced dev kit anywhere
05:22 AM nohitzzz: there is one solution that lets you "code" by connecting modules in a GUI enviroment, that's lame and limited
05:23 AM Haohmaru: that's called visual programming
05:23 AM nohitzzz: yes
05:23 AM nohitzzz: but its limted to the modules you have available
05:24 AM Haohmaru: it's great for experimenting and doesn't require writing code
05:25 AM nohitzzz: yeha but for designing your own synths its a no go
05:27 AM Haohmaru: eh?
05:27 AM Haohmaru: that's how i made mine
05:28 AM nohitzzz: well i wouldnt find it interesting
05:28 AM nohitzzz: and you are over estemating the modules available
05:29 AM Haohmaru: in the one i used you can make modules
05:29 AM nohitzzz: http://www.analog.com/en/design-center/processors-and-dsp/evaluation-and-development-software/vdsp-bf-sh-ts.html
05:29 AM nohitzzz: you are talking about PC stuff
05:29 AM Haohmaru: yes
05:30 AM nohitzzz: im talking about very limited hw DSP solution
05:30 AM nohitzzz: wait
05:30 AM nohitzzz: that's not it, that one has c compiler
05:30 AM Haohmaru: that's their fault, visual programming is nice
05:31 AM nohitzzz: im not saying visual programming is not nice, im saying that the solution im referring has very limted modules available
05:32 AM nohitzzz: personally im not a fan of visual programming
05:36 AM nohitzzz: but the point is that if im gonna make a HW synth, i dont want to use visual programming solution(with limited modules). and last time i checked it was the only cheap solution.
05:37 AM nohitzzz: check out those prices in that above link
05:38 AM Haohmaru: which link
05:38 AM Haohmaru: oh, analog.com? - no need to open it
05:41 AM nohitzzz: TigerSHARC Development Software $14200.00
05:41 AM nohitzzz: wtf
05:41 AM Tom_L: get2
05:42 AM nohitzzz: what is the visual programming solution for PC ?
05:42 AM nohitzzz: synthedit?
05:42 AM Haohmaru: SynthEdit
05:43 AM nohitzzz: is it free ?
05:44 AM Haohmaru: the version i used allowed you to use it, only certain things were limited
05:44 AM Haohmaru: that was an older version, it has changed a lot since then, no idea about the license of the current version
05:45 AM nohitzzz: ok
05:45 AM Haohmaru: it definately isn't fourteen thousand bucks
05:45 AM Haohmaru: ;P~
05:47 AM nohitzzz: bbl ->
06:40 AM tehBear is now known as theBear
07:04 AM enh: Hi.
07:13 AM theBear: Ho
07:40 AM polprog: hey
07:45 AM enh: Fine polprog?
08:26 AM polprog: enh: 3 classes came to the scicence day today
08:27 AM polprog: turned out we hosted it in the auditorium
08:27 AM polprog: weve set up a phone as a remote camera (over http)
08:27 AM polprog: there were a lot of awesome experiments
08:28 AM polprog: friend brought a homebiult van der graaf gen
08:28 AM polprog: built*
08:28 AM Haohmaru: van der who?
08:28 AM polprog: i showed an RC circuit on a scope
08:28 AM polprog: and talked a bit about it
08:29 AM polprog: Haohmaru: graaff :D
08:29 AM Haohmaru: who he?
08:29 AM polprog: mistaken with the brit rock band
08:30 AM polprog: some physist apparently
08:30 AM polprog: physicist*
08:32 AM polprog: no idea really
08:33 AM Haohmaru: goodguygraaff
08:33 AM Haohmaru: GGG
08:34 AM polprog: ive also asked someone from the audience to come to measure the resistance of their finger ;)
08:35 AM polprog: cos the part of the experiment was to show that a cap has infinite resistance at DC
08:35 AM polprog: and yet, my small circuit lit a led via a cap. after that ive shown that its lit by AC.
08:36 AM polprog: and ive shown the waveform on the scope (square, generated from a small AVR board i had on hand)
08:36 AM polprog: so it was pretty awesome
08:45 AM day__ is now known as day
08:45 AM arduiko: Who know what it's FEATURE(Data,Ary,Abs) in HID descriptor ?
08:50 AM theBear: hmm, which file in lufa got that in it ?
08:54 AM rue_: hah, you used a leaking cap
08:55 AM arduiko: which file ?
08:55 AM arduiko: I don't talk about file lol
08:55 AM arduiko: I talk about HID descriptor Tool
08:58 AM theBear: oh, sorry, i assumed if you had lufa on hand you were talking generally
08:58 AM arduiko: no worry ^^
08:59 AM theBear: hmm, is it hid specific, or usb general ?
09:00 AM polprog: rue_: ?
09:01 AM arduiko: euh, it's HID descriptor language
09:02 AM arduiko: With the HID descriptor tool in the USB website
09:02 AM polprog: rue_: https://puu.sh/zz0wT/bbc01e47a4.jpg
09:09 AM theBear: yeah, but i trying to find info on it, and having trouble finding it in any usb hid-specific info
09:12 AM arduiko: that's why I am here :D
09:12 AM arduiko: impossible to find such info from USB website
09:14 AM arduiko: I even asked them why there is no such documentation that exist
09:14 AM arduiko: I wait their anwser xD
09:21 AM theBear: http://www.usbmadesimple.co.uk/ums_4.htm has some info that looks relevant .... was first search result for usb descriptor FEATURE
09:23 AM arduiko: no HID descriptor :/
09:24 AM arduiko: but thanks anyway
09:25 AM theBear: but it DOES have FEATURE info in teh overall usb descriptor/protocol, which INCLUDES hid
09:25 AM arduiko: I don't want it, I want only HID descriptor
09:25 AM arduiko: and there is not that
09:26 AM arduiko: HID descriptor look like this
09:26 AM theBear: but you cannot have an hid descriptor WITHOUT that outer-layer usb protocol stuff, that's just how usb/protocols work
09:26 AM arduiko: http://eleccelerator.com/tutorial-about-usb-hid-report-descriptors/
09:26 AM arduiko: I don't care of that
09:26 AM arduiko: I already own that
09:26 AM arduiko: I only care about HID descriptor
09:28 AM arduiko: I will not rework what I have already have
09:28 AM arduiko: because it's works :D
09:30 AM theBear: as you should see on that last link, and don't seem to be understanding, those features aren't HID specific, and like i guessed are usb-descriptor language, just that in the case mentioned by Andrey on that page, they happen to be part of a hid descriptor, which is still a generic usb descriptor, just referring to hid device(s)
09:31 AM theBear: so the info you want, will be under any page covering usb descriptors, regardless of it being hid specific or not
09:32 AM arduiko: euh
09:32 AM arduiko: I know what I want
09:32 AM arduiko: lol
09:32 AM arduiko: I don't need help for such descriptor, it's all working
09:32 AM arduiko: believe me or not, it is
09:33 AM arduiko: but I miss one descriptor and it's HID
09:33 AM arduiko: euh wtf am I talking about xD
09:33 AM arduiko: you mess up my brain haha
09:33 AM arduiko: since the beginning, I talking about a command in the HID descriptor
09:33 AM arduiko: FEATURE
09:33 AM arduiko: that's all and only that
09:34 AM arduiko: I don't need help other than that
09:34 AM Emil: >I know what I want
09:34 AM Emil: Telltale sign that you don't
09:34 AM arduiko: don't create other problem than that pleaase
09:34 AM arduiko: I am enough busy right now xD
09:34 AM Emil: wow
09:34 AM Emil: such b usy
09:34 AM arduiko: euh yes
09:35 AM arduiko: I am busy with my project
09:35 AM arduiko: we all do lol
09:35 AM theBear: what i'm saying is that ANY usb descriptor, including hid, has its general format specified in overall usb descriptor spec.. hid descriptors don't exist without the higher level usb descriptor spec
09:35 AM arduiko: yes if you want, but I still want what it is, FEATURE
09:36 AM arduiko: and unfortunately, the link you gave me not anwser me about that
09:36 AM theBear: and you find that info in usb descriptor specs, and anythign that ONLY covers info on usb-hid descriptors will NOT cover that info, because it applies to all usb descriptors, not ONLY hid ones
09:37 AM arduiko: in HID Usage Table pdf, it say, if a flag is defined as a single bit constant Input item, it is simly a read only bit for the host
09:37 AM arduiko: if a flag is defined as an Output item, it can be used to enable or disable the flag's feature
09:37 AM arduiko: that's all
09:37 AM arduiko: xD
09:37 AM arduiko: good luck to understand that
09:38 AM arduiko: I know what mean INput and OUput but not Feature :D
09:38 AM arduiko: in general terms
09:38 AM arduiko: if I said that they are no such info, believe me lol
09:38 AM arduiko: the only info about HID descriptor is a mouse HID
09:39 AM arduiko: there
09:39 AM arduiko: http://www.usbmadesimple.co.uk/ums_5.htm at Control Transfer chapter
09:40 AM arduiko: and its Input Report
09:40 AM arduiko: but it's not what I want
09:40 AM arduiko: and there is no Feature command in there
09:40 AM arduiko: Only Input command in its HID desc
09:45 AM arduiko: ok forgot it, I simply remove Feature command and the device works anyway
09:45 AM arduiko: not a vital command as I can see
09:45 AM theBear: that link you gave mentions that https://www.obdev.at/products/vusb/prjhid.html or an example on the same site elsewhere is where they got the info from
09:46 AM arduiko: thanks
09:46 AM arduiko: Anyway my other problem is a easier issue
09:47 AM arduiko: an
09:47 AM arduiko: does someone have a PC steering wheel controller and a Logitech mouse ?
09:47 AM arduiko: :D
09:47 AM arduiko: it's for retrieve their HID descriptor and their tracelog
09:48 AM arduiko: I should begin by this project for sure
09:48 AM arduiko: problem*
09:48 AM nuxil: im using a mx518 mouse :)
09:48 AM arduiko: can you horizontal scrolling ?
09:48 AM nuxil: yes
09:48 AM arduiko: you know, the two arrow beside the scroll wheel
09:49 AM arduiko: omg great
09:49 AM arduiko: do you have a USB monitor for sniff the USB traffic ?
09:49 AM nuxil: nop. sorry dont have that installed atm
09:50 AM arduiko: https://www.hhdsoftware.com/usb-monitor
09:50 AM arduiko: free software
09:50 AM arduiko: can you help me to retrieve the information I want please ?
09:50 AM arduiko: :p
09:52 AM arduiko: are you on linux ?
09:53 AM arduiko: if yes so I don't know how to do that :/
09:53 AM nuxil: :\ why do you need this?
09:53 AM arduiko: Because I want to clone your mouse on my arduino
09:54 AM arduiko: it's what the HID descriptor is used
09:54 AM arduiko: its function
09:54 AM nuxil: how about cloning a mouse you got yourself?
09:54 AM arduiko: I don't have logitech mouse
09:54 AM arduiko: that's why I ask
09:55 AM nuxil: why does it have to be logitech?
09:55 AM arduiko: I have a logitech mouse but there is no horizontal scroll button
09:55 AM arduiko: because only logitech mouse have a horizontal scroll buttons
09:55 AM nuxil: did you install the software ?
09:55 AM arduiko: which software ?
09:56 AM arduiko: why all those question, are you a policeman ?
09:56 AM arduiko: xD
09:56 AM arduiko: joke x)
09:56 AM arduiko: the HDD monitor ?
09:56 AM arduiko: yes of course
09:56 AM nuxil: the logitech software. umm not sure what it called. but its it the same i use for my logitech G19 keyboard. its basically drives and software allowing to map buttons.
09:57 AM arduiko: euh yes I have it, but this software not show such information
09:57 AM nuxil: if you dont have that it will use windoes drivers
09:57 AM arduiko: such information can only be gathered fron USB device
09:57 AM arduiko: through a USB sniffer
09:57 AM arduiko: there are two drivers for a USB device work on PC
09:57 AM arduiko: a drive for the mouse chip
09:58 AM arduiko: and a driver for the OS
09:58 AM arduiko: the information that I want is in the driver of the mouse chip
09:58 AM arduiko: not in the driver of the PC OS
09:58 AM arduiko: nor logitech software
09:59 AM arduiko: all what I want is that
09:59 AM arduiko: https://pastebin.com/EbCnhx4X
10:00 AM arduiko: but I want it for your logitech mouse
10:00 AM arduiko: this HID descriptor that I have is from my keyboard
10:01 AM arduiko: euh wrong, it's from my mouse
10:02 AM arduiko: Will you help me ?
10:03 AM Haohmaru: *crickets*
10:03 AM arduiko: xD
10:04 AM Haohmaru: can't you obtain that special mouse? ;P~
10:07 AM learath: nuxil: IIRC it's called 'garbage'
10:13 AM arduiko: no I cannot
10:13 AM arduiko: because I don't have the money for
10:13 AM arduiko: :D
10:14 AM arduiko: and the PC steering wheel is expensive as hell
10:15 AM Haohmaru: quick, steal nuxil's mouse while he ain't lookin'
10:15 AM Haohmaru: i'll distract him with some asm code
10:16 AM Haohmaru: nuxil check this kewl trick: NOP NOP NOP NOP NOP NOP
10:17 AM arduiko: :D
10:18 AM arduiko: Will you not be surprise that this reaction is what I have since I ask this question ?
10:18 AM Emil: Haohmaru: Did you say something? I don't think your message did antyhing
10:18 AM arduiko: LUL
10:19 AM arduiko: People are too curious and it's why I am stuck with this problem since yesterday
10:19 AM arduiko: :/
10:20 AM nuxil: arduiko sorry for late reply. found the app in my hd hidden awat.. it is setting in my mouse.
10:20 AM nuxil: https://gyazo.com/9236dc1d91c13f941b4e42d02635cf31
10:20 AM arduiko: I got some reaction like: is it a virus ? :D
10:20 AM nuxil: lol..
10:21 AM arduiko: you found the app ?
10:21 AM arduiko: HDD monitor ?
10:21 AM arduiko: no problem, I got all my time :D
10:22 AM nuxil: so i dontt see the problem why you need me to dump my usb port,, its a non standard function right... so why you need it ? just can just make your own code for "scoll left/right"
10:23 AM arduiko: that's right
10:23 AM arduiko: So, I would like you to dump your logitech mouse for get its HID descriptor
10:24 AM arduiko: and tracelog when you scroll left/right
10:24 AM arduiko: I want to see it
10:24 AM arduiko: to know how it's working
10:24 AM arduiko: :D
10:24 AM arduiko: I know that it's a non standard function, but I still want to know
10:25 AM arduiko: #FreeTheKnowledge xD
10:25 AM Haohmaru: 0x5CR011 ;P~
10:25 AM nuxil: why its irrelevent. since the "code" returned from the mouse can be setup to do anything. from scorlling left/right etc. its just controlled by the software.
10:26 AM arduiko: ok but I still want it
10:26 AM arduiko: x)
10:26 AM nuxil: :D
10:26 AM nuxil: lol.
10:26 AM arduiko: I want to see fron my eyes
10:26 AM arduiko: you have seen it, right ?
10:26 AM arduiko: ;)
10:27 AM arduiko: are we playing Lord of Ring scene ?
10:27 AM arduiko: LUL
10:27 AM arduiko: share your ring please
10:27 AM Haohmaru: i had a nasty a4tech mouse which had two scrollers, i think one of them was supposed to be horizontal
10:27 AM arduiko: lol
10:27 AM Haohmaru: but i think it didn't work everywhere
10:28 AM arduiko: what is the name of your mouse ?
10:28 AM Haohmaru: it was ps/2
10:28 AM arduiko: :D
10:28 AM arduiko: too old so
10:28 AM nuxil: you hurt his feelings so he left
10:29 AM arduiko: haha
10:29 AM nuxil: :)
10:29 AM arduiko: I didn't see things like that lol
10:29 AM arduiko: so
10:29 AM arduiko: will you help me ? x)
10:30 AM arduiko: the information that you see is gold
10:30 AM arduiko: share it to us hehe
10:31 AM arduiko: it's as expensive as Credit Card LUL
10:34 AM arduiko: what can I do with such information
10:34 AM arduiko: is that what you keep asking in your mind ?
10:34 AM arduiko: x)
10:49 AM arduiko: ok I will try https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowshardwaredev wish me good luck :D
12:07 PM antto: nuxil i left cuz it was time to go home
04:37 PM polprog: gnight
04:38 PM Tom_L: oh poo, it's the weekend
05:21 PM * nuxil sips some coffee.
05:21 PM nuxil: i replaced my 16mhz with a 20mhz crystal on my dds. :)
05:23 PM nuxil: old values it did. mode1:32.5 KHz (1Hz/stp), mode2:64KHz (2Hz/stp), mode3:128 KHz (4Hz/stp)
05:23 PM nuxil: new values it does mode1:39 KHz (1Hz/stp), mode2:78KHz (2Hz/stp), mode3: 156KHz (4Hz/stp)
05:23 PM nuxil: :D
06:08 PM bongobongo: i am trying to understand this example here https://www.arduino.cc/en/Tutorial/SerialEvent when is serialevent run? is it acting like an interrupt?
06:13 PM nuxil: no idea. i dont know arduino stuff
06:18 PM nuxil: bongobongo, But i suspect its called from a function in a library that include some sort of isr. perhpaps ISR(USART_RXC_vect) or soemthing. just quessing tho.
06:19 PM nuxil: just clue would be to dig in the Serial files.
06:21 PM nuxil: bongobongo, there is also a #arduino channel for arduino stuff. #avr is mostly for bare chips. no arduino stuff
06:48 PM * Tom_L wonders how bongobongo got the secret decoder ring to get in here with an arduino
07:38 PM Rez is now known as l
11:29 PM Xark: bongobongo: The main Arduino loop looks like: while (true) { loop(); if (serialEventRun) serialEventRun(); }
11:30 PM * Xark notes far from any "magic". :)
11:34 PM day__ is now known as day