RS232 Interface & t...
 
Notifications
Clear all

RS232 Interface & the Renard SS24

11 Posts
4 Users
0 Reactions
5,547 Views
RavingLunatic
Posts: 1502
(@ravinglunatic)
Noble Member
Joined: 19 years ago

If I understand correctly, you have a PI attached to a MAX3232 hopefully sending RS232 to the SS24.

Are you confident that your PI is outputing data at the correct Baud rate for the SS24 firmware? (default 57600)

If not, I would drop the baud rate in the SS24 firmware to 9600 and keep testing your PI/MAX3232 setup until you get it to talk correctly, then increase the baud rate.

Also, are you sure that you have the Renard protocol correct? If the data isn't correct, the SS24 won't do anything.

Have you tested your SS24 under normal conditions (ie: PC running VIXEN or HLS)?

RL


Reply
ErnieHorning
Posts: 4434
(@erniehorning)
Famed Member
Joined: 19 years ago

The minimum voltage for RS232 is 3 volts. According the S485 specs, it should work down to at least 2.0 volts.

Make sure your baud rate, parity and stop bits are being transmitted correctly.

BTW, a trick you can use with a local processor, for testing purposes, is to reverse the polarity of your Tx and ground connections. RS232 has reverse logic and as long as you’re only connecting the transmit output and its above 3 volts, this will always word.


Reply
Posts: 35
Topic starter
(@snunn)
Eminent Member
Joined: 17 years ago

I tested the ss24 vi the PC prior to running on the PI using custom code and vixen. I am using the same code(rxtx library) on the PC as I am on the PI, but I will rerun the code on the PC to verify again. I am also testing at the default of 57600 (or whatever is in the .vix file). I will drop the baud rate down and see what happens.


Reply
budude
Posts: 10400
(@budude)
Illustrious Member
Joined: 18 years ago
snunn wrote:I tested the ss24 vi the PC prior to running on the PI using custom code and vixen. I am using the same code(rxtx library) on the PC as I am on the PI, but I will rerun the code on the PC to verify again. I am also testing at the default of 57600 (or whatever is in the .vix file). I will drop the baud rate down and see what happens.

That won't work (or more correctly *shouldn't* work) - the PIC is programmed with the specific baud rate - typically 57600 as you indicated - going at a lower rate will not help. I agree with you that you should recheck with the PC again and once you prove that it works again, you know the serial/Renard part of it is working. You might want to try putting a scope lead or an LED w/resistor on the post RS485 data line (pin 5 on the first PIC of the Renard) to see if you are receiving data.


Reply
RavingLunatic
Posts: 1502
(@ravinglunatic)
Noble Member
Joined: 19 years ago

I guess I should have stated also: If you test at a different baud rate you will need to reflash the SS24 PIC to match the new baud rate.


Reply
Page 2 / 3
Share: