RS232 to RS485 to BSII microcontroller....... Need help with a concept or proc
Jimbo30
Posts: 129
For my project I will need to communicate at a distance of up to 200ft.· At the start point, I will be converting an RS232 signal to RS485 and at the end I will be using another RS485 chip to communicate with a BSII·microcontroller.· However, I am noticing some circuits differ with using the RTS (Request to send) line of the DB9.· This link shows the DB9's line being used
·
http://aquaticus.info/rs485_to_rs232#attachments
·
And this link shows the RTS line not being applied.· Furthermore, both RE and DE pins of the RS485 chip(s) are tied to ground both from the PC to the microcontroller:
·
http://rollette.com/rovrev2/rov2.jpg
·
Question is:· Do I absolutely have to utilize the RTS line?· Is it crucial?· I will be using a VB program to both send data to the BSII microcontroller and receive data, such as temp, depth and heading.·· Any help would be appreciated.···
·
http://aquaticus.info/rs485_to_rs232#attachments
·
And this link shows the RTS line not being applied.· Furthermore, both RE and DE pins of the RS485 chip(s) are tied to ground both from the PC to the microcontroller:
·
http://rollette.com/rovrev2/rov2.jpg
·
Question is:· Do I absolutely have to utilize the RTS line?· Is it crucial?· I will be using a VB program to both send data to the BSII microcontroller and receive data, such as temp, depth and heading.·· Any help would be appreciated.···
Comments
If you have a half-duplex connection, you can only send information in one direction at a time and both ends of the connection have to know what they're doing at any time. It helps if one side is always the master. When one side is a Stamp, that's usually the best side to make master. Even with a full-duplex connection, a Stamp can only do one thing at a time, so it will either transmit or receive, but not both. When it's transmitting, it's not looking at the receive end of things and will miss anything sent from the other end.
In your particular case, it would help for the Stamp to be master. It could send motor commands to the PC or it could send a request for information from the PC and the PC would respond with the temp, depth, and/or compass readings.