Redlion Raw RS232 Comms

martinez8173

Member
Join Date
Jul 2022
Location
NC
Posts
3
Hello,

I man trying to use a redlion DA10 converter to read data from a Bronkhorst mini cori flow meter over rs232. I cant seem to get the mapping correct based of their sample code. anyone have and experience with this? Tech support was good but they them selfs said id be a custom script to extract the specific data I am looking for.
 
What is the Redlion scripting environment? Isn't it some dialect of C?

I would get summat working from a PC first, where you have complete control of running, opening the port, sending bits, etc. Maybe do summat from a VM running Linux and Python where the guest OS owns the RS-232 dongle.

Once you figure out the protocol in that environment all the hard stuff (make debugging logs etc.) is taken care of, then it is much easier to port to another environment that has less development flexibility.
 
Wait a minute, does that flow meter use a custom serial protocol, or does it use Modbus RTU? Because I am pretty sure Redlion can talk Modbus RTU already.
 
The meter itself unfortunately was ordered as a dinosaur and uses raw 232 signal and ascII, was going to modbus tcp to ignition from the redlion.
 
What is the Redlion scripting environment? Isn't it some dialect of C?

I would get summat working from a PC first, where you have complete control of running, opening the port, sending bits, etc. Maybe do summat from a VM running Linux and Python where the guest OS owns the RS-232 dongle.

Once you figure out the protocol in that environment all the hard stuff (make debugging logs etc.) is taken care of, then it is much easier to port to another environment that has less development flexibility.
Correct its some sort of C code, seems there no easy way and going to have to dig deeper than expected. Is Summat a free software? im unfamiliar with it as well.

Thank you for your response,
 
summat, heh.

yeah, decoding a serial protocol is a bit fiddly, but fairly straightforward to do in something like Python, or even a terminal emulator (Windows used to have hyperterminal, but PuTTY would also work).

Hopefully the protocol is 7-bit ASCII and has start and end delimiters e.g. colon and <CRLF> or similar.

Porting to C will be like porting to assembly i.e. like doing it on your hands and knees.
 

Similar Topics

Good morning and new to the forum. Attempting to configure a RedLion CU30D using it's RS-232 port to log the input stream. "Raw" ASCII data is...
Replies
4
Views
1,648
Working on a project where I need to set the voltage, current and read the status on some power supply's. There are 5 power supply's. Each has a...
Replies
8
Views
3,138
Some questions on raw port usage on a Redlion G3, specifically UDP. I am trying to read arbitrary bytes from a UDP stream with Ethernet but I...
Replies
4
Views
4,432
Hey guys, hoping someone here could give me a little advice. I'm working with a CR1000-04000 in Crimson 3.1 and I was interested in adding the...
Replies
4
Views
124
Hi, I have a complex database in Crimson 3.0 and in one of the display pages I am trying to get a tag to show the sum of several other tags. The...
Replies
3
Views
173
Back
Top Bottom