Parser module -> Getting the request string

Started by cesou, April 08, 2009, 10:04:34 AM

Previous topic - Next topic

cesou

I'm currently trying out the Advanced Serial Logger to get the weight of 2 dump scales through a RS485 connection.
I've set up the data query so it alternates its request between the 2 devices.
The program gives me after every request the correct weight.

Now I want to write the results to a database but when I write the result message, I also want to know from wich device it came.
The ID of the device is kept in the request string and NOT in the result string.

Is there any way that I can parse the request string/query (regular expressions?) so I can save it along with the result message?

Arthur Grasin

Are both scales attached to one port? Please, post an example of your data.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

cesou

Both devices are connected on the same port.

Query Requests:
to device with ID1: >01hC9#0D
to device with ID0: >00hC8#0D

See attached screenshot.

Arthur Grasin

I'm sorry, but because the response doesn't contain the Device ID, our software can't parse it. The parser can't also use a data from requests. We can develop a custom parser module (for an additional cost) that will export data with device ID.
If you like my work, please take a few seconds and add feedback about our site or our software [here]