Title: Parser module -> Getting the request string Post by: cesou on April 08, 2009, 01:04:34 PM 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? Title: Re: Parser module -> Getting the request string Post by: Arthur Grasin on April 08, 2009, 01:32:13 PM Are both scales attached to one port? Please, post an example of your data.
Title: Re: Parser module -> Getting the request string Post by: cesou on April 08, 2009, 02:43:13 PM 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. Title: Re: Parser module -> Getting the request string Post by: Arthur Grasin on April 08, 2009, 04:10:37 PM 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.
|