I can see numerous posts on using RS232, but I was struggling to find details of the hardware people have used.
I can see simple ‘TCP/IP to RS232’ devices on eBay for about £20 (which are just bare boards) but I’m not sure if they are suitable. I also saw a post on ‘Wifi to RS232’ too, so the hope of this post is to see if people can share the ones they have.
On a side note, I have seen a matrix switcher i like which looks for binary information to be sent, so my plan will be (if I get it) to tweak one of the existing plugins already posted.
The exact IP-and-port syntax is not dictated anywhere, but the example you gave is what a few of us have settled on in our plugins. Take a look at the Caddx source file (L_*.lua) to see how the initialization code looks.
In theory, if Vera knew how to configure the WizNet adapter over IP, you could avoid having to use a PC ahead of time. But that part of the WizNet’s protocol isn’t published, and it tends to differ for every serial-to-TCP device so there isn’t a great deal of interest in bypassing the supplied setup tool.
I’m just curious if an RS232 set up is best run (like an IR transmitter) as a Device (D_xxxxx.xml) and Implementation (I_xxxxx.xml) file for the unit. And then have a separate Device (D_xxxxx.xml) and Implementation (I_xxxxx.xml) file for the codes you want to send?
I was also wondering if there could be a benefit in having a standard (app store) plugin for the device itself, and then instuctions on creating the codes to send ?
That IPSerial device hack was around before I got involved with Vera. It may be that it’s not needed now that we have luup.io.open(). In any case, I consider the IPSerial device mechanism to be too hard for users to get working, even with guessed’s plugin files, so I now make it a habit of using luup.io.open() in all my plugins that need serial communication.
You can find the answer to your question by reading the source of one of those plugins. Sorry to fob you off onto TFS, but you won’t get far with Vera programming without reading other developers’ code.
You’re correct. It was a short-term hack (3yrs ago) to enable folks to connect up “Serial only” devices over IP. We’ve since way moved on, with most plugins now directly supporting some form of configuration to let the user do it directly.
The intent was for MCV and team to effectively let users “directly” register IP-based stuff with Vera, presumably in the Serial Config UI (which is burried)… but it’s never risen to their “implement me” level.
It’s amazing how much clearer all this becomes the more you dig into it
As some of you might’ve seen (http://forum.micasaverde.com/index.php/topic,12947.0.html) I’m now up and running with a Raspberry Pi Ser2net server, which Vera is already capturing USB to serial data for the Envir energy monitor.
Refocusing back on this particular thread, I take it now have the ser2net server up and running, there is nothing to stop me buying a basic USB to serial(RS232) cable and connecting that to the Pi and the TV?
If so, my next question is are you aware of which entertainment device plugins for Vera use Luup.io.open() and could be compatible with the above set up, for a TV or Hdmi Matrix with some tweaking?
There are both TV and HDMI switch plugins over on http://code.mios.com. If you have the protocol you’d be able to modify these to the specific devices that you have. They’re old, but functional, so they’ll be easy to understand.
I’ve just picked up one of these 42 HDMI matrixs (http://www.cmicable.com/en/product-16.shtml) and it looks very similar to the monoprice one, so I’m going to try and use the Vera 44 HDMI Matrix.
Does anyone have any ideas on how the current monoprice matrix plugin can work over IP (like the current cost plugin can) rather than a direct serial cable connection ?
I have ser2net up and working and a RS232 cable to connect to the matrix and ready to go.
Considering the current monoprice matrix plugin is just a Device an Implementation file, my guess is that it will need a .lua file created for ito . Which is sadly out of my league to know how to do that.
But working towards a more IP world, I’d like to know what it would take and if anyone is able to help me do it.?
Maybe it will work for you like my edit to the Pioneer Receiver plugin works for me. I appreciate check that thread in plugin for the file.
It was relatively easy considering I am in way over my head.
I changed the telnet port in the implementation file from 23 to 5000 and used the up serial plugin to use the IP of my network to serial adapter, the port was already 5000. I clicked the drop down menu to point to my Pioneer receiver plugin and it worked to my amazement.