Insert additional value into serial string
Posted: Tue Nov 03, 2009 5:31 pm
HI
HB comunicate on serial port with one of my device.
In command configuration I set command Write data to 61200374%x%. Then I connect property of device * with that command and
when I want to send serial string I write new value (for example FF04) in property and this works perfect.
Now I change my hw device that except checksum in the end of each string. I have many of this command so i want to insert checksum automaticly at the end of string. I have problem how to insert this checksum that is calculated with script at the end of sending string? So I must write additional "FB" in at the end of value FF04.
Regards
Sandi
HB comunicate on serial port with one of my device.
In command configuration I set command Write data to 61200374%x%. Then I connect property of device * with that command and
when I want to send serial string I write new value (for example FF04) in property and this works perfect.
Now I change my hw device that except checksum in the end of each string. I have many of this command so i want to insert checksum automaticly at the end of string. I have problem how to insert this checksum that is calculated with script at the end of sending string? So I must write additional "FB" in at the end of value FF04.
Regards
Sandi