Problems with RS232 serial port communications

Problems communicating

Unable to open COM port

The terminal application doesn't open the COM port (Unable to communicate with USB/RS232 adapter, if applicable)

Blank screen

The terminal application shows nothing

Shows home menu, won't take input

The terminal application displays the normal home menu (refreshed every 16 seconds), but then doesn't respond to any key press.

Either there's a loose connection on the RS232 RX line, or your terminal is hung up. No need to restart the BMS controller: it is running fine.

"D'de loves Ann"

The terminal application shows "D'de loves Ann", and nothing else.

Continuous line feeds

The terminal application shows a cursor starting from the top left and moving down to the bottom left, and nothing else.

Garbled data

The terminal application shows garbage

Garbled data in the presence of noise

The terminal application works normally until a source of EMI (charger, motor driver) comes on; then, it shows garbage.

The RS232 link is not balanced (unlike the CAN bus) so it has poor noise immunity. Therefore, it is not intended for continuous use in the system, but just for initial set-up and troubleshooting.

Having said that, if you do try to use the RS232 as a permanent communication link in your application, then:

Hex data

The terminal application shows a string of hex data

Reverts to previous menu

When making a menu selection (by pressing a digit) the terminal application reverts to the previous menu.

USB hangs-up

There is a bug in the Windows drivers that cause the USB port to hang up in the presence of electrical noise. The only way to restore communications is to unplug the USB connector from the computer, and reconnect it. This is a Windows issue, and there is little that we can do on our end.

One trick we have used is to put 3 resistors (1 kOhm each) in series with the 3 RS 232 lines: Gnd, RX and TX. It keeps the USB port from hanging up.

Problems programming

Changes don't take effect

When changing a parameter, it stays the same.

Garbled screen in the Test menu only

There was a batch of badly programmed BMS controllers, between S/N F650 and F700. We have reprogrammed most of them, but there are still a few stragglers: 655-658; 660-665; 668; 670; 681; 684; 691

StandardProducts/Lithiumate/Service/Troubleshooting/SerialPort (last edited 2012-02-02 17:02:00 by DavideAndrea)