Serial Data Source Question (again)
I've posted here before related to the Serial Data Source, and I'd love to understand what I'm doing wrong / how to make this work.
(1) Can the Mango Serial Data Source just act as a passive input? Just storing everything that comes in over the serial port into a point?
(2) If not, how do I force it to "trigger" a read?
Here's my Application:
I have a device that spits out hex code as 2400 baud every few seconds. I want to ingest this into mango, and parse it.
I have this (kinda) working using SOCAT and the raw TCP data source, but that seems like an awful lot of messing about.
The values are hex, fixed length, and have known terminating characters at the start (and end) of the message.
I've been re-reading back through lots of stuff on this forum before about this, and haven't gotten closer to having it work.
This is a raw serial device attached via a USB to Serial adapter. I have verified my Mango machine is getting the Right Data via using Minicom, and got this almost entirely working with SOCAT and a Raw TCP data source.
I'm just trying to keep this whole thing inside Mango. I keep trying to use the Virtual Serial Port for various things, but so far, I hvaen't been able to get it to work at all- I've tried this on V3.7, and now am running our system here on 4.5, still with no luck.
Are there any demo files / docs available for how to "just get raw data into Mango over a Serial port" so I can then parse it using a scripted data source?
I'd love some guidance on this. The TCP/IP data source seems to allow this functionality, albeit with a bit of goofing around (see my post about interfacing with my HP-IB gear for this thread), but I'd love to be able to know how to use the Raw Serial Data Source, as we have many uses for that now.
@Turbo if memory serves me right, you can make the serial port work based on timeout as opposed to regex...
Although if you do know if you have a delimiter and can lean on that, you can make the regex be simply (.*) to nom everything along with setting collection group to 0.
I'll see if I can accomplish what you are trying to achieve also
@MattFox Yeah- I tried that, too: I just can't get the the thing to receive anything over the serial port.
It would be really nice to have a thread / template file available somewhere that says "Here's how you just get Raw Serial into Mango" to overcome the initial confusion over REGEX, which is absolutely common in these threads.
People do what I did: They turn it on, try and get a "wildcard" RegEx to make sure mango is receiving something then go develop the interface from there.
I have lots of serial customization coming in for our projects, and although the SOCAT <-> Serial TCP thing works okay, it would all be much simpler if I knew that the Mango Serial Device had a good easy starting point.