Unexpected results, Serial communication does not work, Commands return a non-zero status code – ThingMagic M5e-Compact User Manual

Page 207

Advertising
background image

Demo Application

Appendix B: Getting Started - Devkit

207

Unexpected Results

Sometimes you do not get the results that you expected. The following sections explain
some problems that can occur when the previously listed sequence of commands are
used. The following sections explain some of the frequently encountered errors.

Serial Communication Does Not Work

If serial communications fails to work using the ArbSer command, check the following:

The baud rate is correct.

If the baud rate of the boot loader or application FW was changed, then specify the

current baud rate using ArbSer. For example, “ArbSer <baudrate> ...”.

The correct COM port is being used.

ArbSer does not return an error if it is able to open the specified COM port. Currently,

ArbSer works on COM1 to COM9.

The commands are properly formed.

If no SOF byte (0xFF) is used, or an incorrect CRC or number of data elements is

specified, then the Microprocessor does not respond to the message at all.

The module is properly connected and powered on.

The serial cable should not be a NULL modem cable.

The PC serial port is working properly.

An RS-232 line checker is helpful for this.

A simple way to check that serial communications is working is to try sending a Get
Version

command. If a valid response is received, then the physical communication layer

is intact and working properly. That is to say that the baud rate, COM port, and cables are
all fine.

Commands Return a Non-Zero Status Code

If a command returns a non-zero status code, this is not always an error. However, if a
non-zero code is received in response to a Set command, such as Set Current Tag
Protocol

,

Set Read TX Power

,

or Set Antenna Port commands, it is likely that one of

the following problems exists:

The module is still executing the boot loader program.

Advertising
This manual is related to the following products: