Are the modem control inputs BACKWARDS on these, or am I crazy/doing something wrong?
SpenceKonde opened this issue · 0 comments
Sorry for the question that's rather unrelated to your actual code (but - maybe not entirely, heh), I was super excited about these "damn, CH340G price - and their specs BURY the '340! So I get some and start playing with them... yaknow, break out all the pins, three position voltage switch( 5v, 3.3v, and Vtarget) - what a serial adapter should be!
And like... On every other serial adapter, the 4 modem control inputs (DCD, CTS, DSR, RI, software reads them as "on" when you pull them low (they're the inverse of the RTS/DTR lines - they're weakly pulled up, and whatever they're connected to would "assert" them by driving them to ground.... these look normal.... until one of them is asserted. Then, they read "on" when something isn't driving them to ground.... Did I get a weird batch? Are they all like that? Has anyone else noticed?
Any way the way it's related to your code is.... like, if I ever have time, one of the things I want to do is wire up some od these so their TX, DTR and RTS pins could be monitored by their modem control lines. Then systematically work through the address space in the memory and see if I can find any undocumented ould monitor what inputs thjey saw from the script driving them. And maybe have Arduino Micro either logging it to the computer, throw an Arduino in monitoring it - like you could even just have ti timestamp if the device does anything (As in sketch knows the patterns is this pin on half second then that one then this other one, then a constant stream of 0xFF characters (the soet of "generate a sine wave. Thanks - and sorry again for the intrusion - happy to talk on not-a-public-facing (spencekonde@gmail would be the way to start on that.