Closed iPAS closed 2 months ago
I got trying to send unformatted data which are not only an ASCII character, but also the possible char between 0..255 -- raw data. The following is the result from the device that received the message S18F7.
[Equipment] received primary message from: { "baudrate": 9600, "device_id": 0, "is_equip": true, "is_master": true, "name": "equip-master", "port": "/dev/pts/12", "protocol": "SECS-I-on-pySerial" } [Equipment] primary message: [00 00|92 07|00 00|00 00 00 01] S18F7 W <L [4] <A [2] "01" > <A [3] "S01" > <U4 [1] 8 > <A [11] "b'UUUUUUUU'" > # <-- Unformatted data
This pull-request will help the raw data can be sent: A [8] "UUUUUUUU"
*** Please don't forget to put this following code before start the object:
os.environ['SECS_EXTENDED'] = 'True'
I got trying to send unformatted data which are not only an ASCII character, but also the possible char between 0..255 -- raw data. The following is the result from the device that received the message S18F7.
[Equipment] received primary message from: { "baudrate": 9600, "device_id": 0, "is_equip": true, "is_master": true, "name": "equip-master", "port": "/dev/pts/12", "protocol": "SECS-I-on-pySerial" } [Equipment] primary message: [00 00|92 07|00 00|00 00 00 01] S18F7 W <L [4] <A [2] "01" > <A [3] "S01" > <U4 [1] 8 > <A [11] "b'UUUUUUUU'" > # <-- Unformatted data
This pull-request will help the raw data can be sent: A [8] "UUUUUUUU"
*** Please don't forget to put this following code before start the object: