So I have no issue with sending a message to the amp via the serial adapter connected to the Hubitat. My problem is that the parse message is coming back on a different driver when the command for status is sent from the first driver. It is the same way in the log too. I have done the following:
Removed all related drivers and devices.
Done a RS232 reboot
Done a Hubitat reboot with rebuild of database and purge
I reloaded the parent driver and the child driver and still no response.
I load the other driver and then click connect in the device. It now receives the parse info from the first driver.
I have cut an paste the 'def parse' code from the working drive to the non working and still no response in the driver that I am sending the command from.
I have used Putty to connect to the serial converter device and I can see the response there as well and it is of course on a different returning IP address. So the serial device is transmitting the response.
I just can't understand why I don't get a response in the driver that sent the message.
I am not going to post a bunch of stuff from my computer as this might have a simple answer but please Ask me questions and I will post.
Thank you for your help!
Tim
so am i understanding this correctly that this serial adapter actually has two different ip addresses?
If that's the case then the network DNI used in the driver needs to be the device MAC address and not an IP address
No sorry, the TCP/IP to Serial device only has one IP address. It can set up connections to several other terminals simultaneously. My issue is in the driver of Hubitat. One driver is getting the response and the other driver is not. Even after removing the driver that gets the response and rebooting the whole system, I still don't get a response on the driver/device that actually sent the command out. I am so baffled.
Serial device is: Module Name:USR-TCP232-302
The driver I am using that gets the response is: "Hegel Amp Telnet Driver" and the driver/device I need to get the response is: "Parent driver for Monoprice 6 zone audio" I don't need the Hegel driver, I just was loading similar drivers to find one that worked with the amp I have.
the built in driver for the monoprice preamp (Monoprice 6 Zone Audio Controller) should work with a monoprice amp an and external serial device, just change the port from the default of 8080 to the port your serial adapter is using (looks like 23).
if it doesn't can you send post a screen shot of the preferences section?
From the manual the device needs to be setup as a TCP client, its possible the device is returning http or for some reason not sending the response back over the telnet connection.
Can you explain this?, i don't understand this " and it is of course on a different returning IP address"
I did finally get the driver to work and to report responses during the polling possess. I think I had an extra } in the code that upon 'saving' the Hubitat system didn't report as an error.
All is good now and the reworked code will be posted in the next couple months as a working driver for controlling a DAX-88 Dayton multi zone amplifier.
Thanks again for the effort to reach out to me on me question.