#avr Logs

Mar 30 2021

#avr Calendar

07:07 AM exp: has anyone spent the time to understand DTR on modern Linux through ttyACM0? there's a patch on the lufa repository to pay more attention to the signal lines, but in my experience it's doing the opposite of what I expect
07:14 AM exp: I guess I definitely will have to break out the JTAG to debug this properly, as I believe my board is getting deadlocked in writing out to USB periodically
07:14 AM twnqx: HAHAHAHAHAaajjaskdjkoupe´ßü
07:14 AM twnqx: sorry
07:14 AM twnqx: what do you exactly need to know about that?
07:14 AM exp: twnqx: whether it's a signal I should use or ignore, whether I should do any special handling, the usual ignorance :-D
07:14 AM twnqx: ignore
07:17 AM twnqx: / Event handler for the library USB Control Request reception event
07:17 AM twnqx: void EVENT_USB_Device_ControlRequest(void) {
07:17 AM twnqx: CDC_Device_ProcessControlRequest(&VirtualSerial_CDC_Interface);
07:17 AM twnqx: }
07:17 AM twnqx: i don't process these signals at all
07:18 AM exp: i just have your generic:
07:18 AM exp: HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0;
07:18 AM exp: believe that's correct, but i don't think it's making any difference
07:19 AM exp: you telling me it works for you leads me to believe it isn't
07:19 AM exp: but I appreciate the report, I do need to make a JTAG board for this chip anyway
07:19 AM twnqx: mh i remember there was something about DTR i used
07:21 AM twnqx: const int mask = CDC_CONTROL_LINE_OUT_DTR | CDC_CONTROL_LINE_OUT_RTS;
07:21 AM twnqx: HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & mask) == mask;
07:21 AM twnqx: hm yeah
07:21 AM twnqx: i am just for no reason whatsoever enforcing rts/cts handshake, too
07:22 AM exp: well, it sounds like it's something I'm doing wrong not something wrong with Linux then
08:47 AM specing_ is now known as specing
05:53 PM _nexxus__ is now known as _nexxus_
05:55 PM chutulu_ is now known as chutulu
05:55 PM Rab_ is now known as Rab
08:48 PM specing_ is now known as specing
10:09 PM JanC_ is now known as JanC