Open luxin88 opened 8 years ago
I dont immediately see any issue in your code (which is annoyingly inlined instead of eg. as a commit in your repo...), also RTS isnt wired on the Uno R3, so it is not a very interesting feature for me - operating one of the J2 extension header pins would make more sense though.
So in short, I have 0 reasons to investigate your problem for you. When you get it working I'd be happy to integrate a pull request :P
(You also didnt provide any details on how are you controlling RTS (what software) and how do you know that it does it right...)
thanks, I use a Serial Debug Tool to control DTR and RTS pin, which I tested by using FTDI chip, and it works well. I'm not familiar with AVR chip. but I saw that in the LUFA Doc
static bool Endpoint_IsSETUPReceived ( void )
inlinestatic
Determines if the current CONTROL type endpoint has received a SETUP packet.
Returns
Boolean true if the selected endpoint has received a SETUP packet, false
otherwise.
whether it means that, I need to selected endpoint
in setup, so that I
can listen the RTS change.
is there any select
to DTR pin, i will try to find it out.
I would appreciate it if you wouldn't bother to share your knowledge with me.
2016-08-11 4:40 GMT+08:00 Urja Rannikko notifications@github.com:
I dont immediately see any issue in your code (which is annoyingly inlined instead of eg. as a commit in your repo...), also RTS isnt wired on the Uno R3, so it is not a very interesting feature for me - operating one of the J2 extension header pins would make more sense though.
So in short, I have 0 reasons to investigate your problem for you. When you get it working I'd be happy to integrate a pull request :P
(You also didnt provide any details on how are you controlling RTS (what software) and how do you know that it does it right...)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/urjaman/fast-usbserial/issues/2#issuecomment-238996809, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1WSL08hxDRlrz26dE4Ooo6-rBdh3alks5qejc9gaJpZM4JfH7G .
I'm using RTS and DTR for some control, but I found that, when I set DTR, PD7 goes LOW, but set RTS, PD6 not have any change.
then I change this function
and I change makefile
and I found that, when I setup RTS, there's nothing happen, but when I set DTR, something interesting happen, RTS and DTR goes to LOW together.
I think that function
EVENT_CDC_Device_ControLineStateChanged
not be called when I set RTS.I debug, and found that, when I set RTS, function
Endpoint_IsSETUPReceived
return false when I set RTS, but return true when I set DTRI'm unfamiliar with avr MCU, and I do not know what to do that.