How to implement external device transmitting data through RS232 serial protocol?

Connect the device serial port to the external device.

RS232 interface

RS232 interface on G10+ on line printer

How to determine if the connection is successful?

2 methods, take PC as an example

1. Send message through RS232 to PC port

1.1Fault detection< enter message<send

If the data from the PC is received, it indicates success.

G10+ on line printer-Fault detection-Rs232 send

2.Transmitting data from external devices (Gorgeous serial port debugging tool applied at PC as an example)

Check whether the serial port settings on the PC side serial port device are consistent with the serial port settings of the printer.

Step: Setting< Fault detection< RS232 reception

Noted: Baud date, check digit, Stop bit, Data bit,Character set’s values must be consistent with the external device.

Serial port debugging tool-Settings

Open it and send CALL;\n,when received CALL:OK means successful connected.

Serial port debugging tool-reception

Number of cache: The number of data items that can be cached is 1-999

Protocol: Usually we use CCOMM2 (universally applicable) and Highspeed (the transmission speed is faster than CCOMM2, but the transmitted content becomes smaller). In addition, C3000 and ZHUIYUAN001 are suitable for Chinese weighing machine models. The use of the protocol is set according to different situations

Check digit: The function of the check digit is to detect errors or data corruption during data transmission.

Stop bit: Stop bits are used to indicate the number of stop bits after each data byte. Typically, common values for stop bits are 1 or 2 bits. The purpose of the stop bit is to enable the receiver to accurately determine where each data byte ends.

Innumerable data time printing: When there is no data, choose to print the content as blank or the data content of the last item.

Baud rate: The frequency and speed of data transmission. The larger the baud rate value, the easier it is to lose data. Commonly used default value 9600.

Cache Full: When the cache data is full, whether to continue to accept data transmitted from the PC.

Character set:

1)Ascii, Only supports English font transmission, containing 128 characters

2)Unicode, Supports multi-language transmission and covers more characters than UTF-8

3)Utf-8, Supports multi-language transmission

transfer speed, Ascii is fastest, then is UTF-8

Data bit: Data bits indicate the number of bits contained in each data byte. Common values for data bits are 5, 6, 7 or 8 bits, with 8 bits being widely used.

Cache busting: Delete cached data

NOTED: network port and serial port settings for parallel connection are protocol, Innumerable data time printing, and cache Busting.

Pls contact us for the RS232 serial port protocol documents.

 

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *