is it possible to control the rec. pin on a serial port?
travis
Posts: 180
I have this sensor that constantly sends serial data (a short string every 50ms) as long as its receive pin is floating or held high. If the pin is held low it stops sensing (and stops sending data). Right now I have to leave that pin disconnected for the sensor to work.
I want to be able to turn this sensor on and off. Is there a way to get down to that low of a level and toggle that pin?
I want to be able to turn this sensor on and off. Is there a way to get down to that low of a level and toggle that pin?
0
Comments
Is this just the CTS or RTS line? If so, perhaps you could just turn that on in the program and connect that pin to the receive.
So it's possible to control the CTS or RTS pin through the program? Where can I look up how to do it?
from the Software History listing for the NXC-Com2
If you go into NS and go to one of the serial devices for the proper codes you'll need.
Now if I can just find a pin tool...
It says 9.3 Volts.
I even put some code in the mainline to toggle it back and forth
SEND_COMMAND dvSensor, "27,20,0"
SEND_COMMAND dvSensor, "27,20,1"
(with some waits in between)
but that pin always stays at 9.30V
- Chip
Thanks for responding. I guess that makes sense if you look at it a certain way.
Do you think I need to do anything the Software Handshaking params XON/XOFF ?
(still not workinh)
GAAAAAAAA
- Chip
Thanks for your help
By the way, I'm pretty sure the documentation also has the strings backwards.
27,20,1 is High
27,20,0 is Low