AGG Software Forums
September 16, 2024, 11:42:59 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Parser module -> Getting the request string  (Read 20559 times)
cesou
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« 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?
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: April 08, 2009, 01:32:13 PM »

Are both scales attached to one port? Please, post an example of your data.
Logged
cesou
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 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.

* screenshot.pdf (15.24 KB - downloaded 2 times.)
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #3 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines