Trouble with SERIAL DATA SOURCE
-
Hi, I have a trouble with use of Serial Data Source.
I have a modem sending a received SMS to Mango serial data source.The error mensage: 'MODEM SERIAL': Recieved message: MTX_SMS(.*?); does not match pattern: ^MTX_SMS +56952284556,CAL001 - ALARMA DETECTADA CALDERA;
My SERIAL DATA SOURCE - CONFIG:
Message Terminator: \n
Message Regex: MTX_SMS(.*?);
Point Identifier Index: 1I want process, al the SMS mesage start with MTX_SMS and cath " MTX_SMS +56952284556,CAL001 - ALARMA DETECTADA CALDERA;"
My DATAPOINTS CONFIG:
Data Type: Alphanumeric
Point Ident: 1
Value Index: 0
Value Regex: CAL001(.*?)I want caught the text "CAL001 - ALARMA DETECTADA EN CALDERA;"
This don´t work.
I´m playing with regexpal.com and al the config it´s OK and work fine.
I pay license for use, and the version it´s:
serial 1.1.2
Infinite Automation Systems Inc.
???serial.description(i18n_es_ES)???Someone help me? Thank´s
-
The first thing that I notice is that your message terminator isn't consumed by your message regex. I would try putting the \n at the end of your message regex and see if that helps get things going. Both the message and value regex need to match the whole string, ; and \n, all
-
Ok, i try this: (thinking to eliminate \n and finalice with ;)
Message Terminator: ;
Message Regex: MTX_SMS(.*?);'MODEM SERIAL': Recieved message: MTX_SMS(.*?); does not match pattern: ^MTX_SMS +56952284556,CAL002 - ALARMA DETECTADA CALDERA;
And too try this:
Message Terminator: \n
Message Regex: MTX_SMS(.*?);\nand 'MODEM SERIAL': Recieved message: MTX_SMS(.*?);\n does not match pattern: ^MTX_SMS +56952284556,CAL002 - ALARMA DETECTADA CALDERA;
not work the match pattern
-
Is the ^ part of the pattern? I don't see a $ so it sort of looks like it would be...