Rs232 to mqtt converter

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
vito3
Normal user
Posts: 10
Joined: 30 Jun 2018, 20:13

Rs232 to mqtt converter

#1 Post by vito3 » 18 Aug 2018, 13:47

good morning

I would like to make an adapter from rs232 to mqtt.
I need this adapter to read the data provided by a barcode scanner with rs232 port (female). Can I do it with espeasy? I also bought a rs232 (female) to ttl (max232) converter and a rs232 male to male adapter.
how can I do?


https://www.aliexpress.com/store/produc ... 52700.html


https://www.aliexpress.com/store/produc ... 40151.html

TD-er
Core team member
Posts: 8728
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Rs232 to mqtt converter

#2 Post by TD-er » 18 Aug 2018, 16:54

I am not sure if something like this already exists, since you also have to parse the string and wait for /n or /r (or both)
But it is a great application to use this for.
You may have to look in the ser2net plugin to see what is currently possible.
Maybe there is already some plugin to read serial data in the [playground](https://github.com/letscontrolit/ESPEas ... Playground).

At this moment I am way too busy fixing other stuff for ESPeasy, but don't be afraid to ask for help when you get stuck.

There is one little problem with this use. At this moment ESPeasy can only handle integer or floating point values as output values of a plugin.
The RFid reader plugins work around this by outputting a "LONG" type instead of float.
Handling strings is not yet used often.

When using the internal commands to "publish" data, it is possible to generate a string, but then it will be a very specific plugin.
I think that's about what you need to look for at the moment.

vito3
Normal user
Posts: 10
Joined: 30 Jun 2018, 20:13

Re: Rs232 to mqtt converter

#3 Post by vito3 » 19 Aug 2018, 11:03

thanks for the reply, unfortunately I do not have experience of plugins of this type, I would like to learn a lot but at this moment I have short time. if someone wanted to implement the plugin I would be willing to make an economic contribution and I would like the plugin to be used by the whole community

TD-er
Core team member
Posts: 8728
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Rs232 to mqtt converter

#4 Post by TD-er » 19 Aug 2018, 20:02

You can at least make a github request for it. Then there is a bigger chance we will find it again to implement.
Here on the forum, it is very hard to find suggestions like these even when you know what you're looking for.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests