Strange problem with OTGW
Moderator: leecollings
Re: Strange problem with OTGW
That would be awesome.
I have never been able to solve the issue... Compiling it is a bit too difficult for me I think, I'm not accustomed to Linux and didn't want to risk the rest of the system.
I have never been able to solve the issue... Compiling it is a bit too difficult for me I think, I'm not accustomed to Linux and didn't want to risk the rest of the system.
Re: Strange problem with OTGW
I am working on a solution now with the developers. It will take some while though.
Re: Strange problem with OTGW
No worries, everybody around here is helping where they can. I'll keep an eye out in any case.
Thanks!
edit: is there anywhere I could follow this? Like an issue on github or anything?
Thanks!
edit: is there anywhere I could follow this? Like an issue on github or anything?
Re: Strange problem with OTGW
Yes: https://github.com/domoticz/domoticz/pull/3945
In the domoticz hardware tab of the OTGW you can issue commands. Can try sending ps=1 and see what happens?
Re: Strange problem with OTGW
I can try! Do I need to update Domoticz or anything first? And do I enter this command immediatly after connecting the OTGW when it is still working, or only after it starts outputting the unreadable data?
Re: Strange problem with OTGW
Just as soon as you connect the device. You can always switch back with ps=0.
And I have spoken to the developer. He thinks our devices will work with ps=1 'mode'. The fact that my OTGW device resets itself from time to time and domoticz will not read the data from the device isn't working. According to him it is working well for years for a lot of people. .. except for mine (which works well with ps=0 for years now ). The only difference I see is that I use a serial to USB (FTDI) connection and not the network type.
If you will try the command. Meanwhile, I will debug it a little further. (Note to myself: serial communication looks character based instead of line based output: 'thisischCOMMANDaracterdata')
And I have spoken to the developer. He thinks our devices will work with ps=1 'mode'. The fact that my OTGW device resets itself from time to time and domoticz will not read the data from the device isn't working. According to him it is working well for years for a lot of people. .. except for mine (which works well with ps=0 for years now ). The only difference I see is that I use a serial to USB (FTDI) connection and not the network type.
If you will try the command. Meanwhile, I will debug it a little further. (Note to myself: serial communication looks character based instead of line based output: 'thisischCOMMANDaracterdata')
Re: Strange problem with OTGW
Okay, I'll try as soon as I regain access to Domoticz. I was starting on testing this out, and turned on the accept new hardware devices because I had deleted all devices of the OTGW a while back since it wasn't working anyway. However, once I saved the "accept new hardware"-option, I lost access to my control panel...
I created a speperate topic for that, as it has nothing to do with the OTGW. https://www.domoticz.com/forum/viewtopi ... =6&t=31528
I created a speperate topic for that, as it has nothing to do with the OTGW. https://www.domoticz.com/forum/viewtopi ... =6&t=31528
Re: Strange problem with OTGW
Okay, I've regained control over the control panel and I have tried the PS=1 command.
First thing I noticed was that it immediatly starts outputting the messages that start with T and B. Not the readable ones I had before. I can isue the PS=1 command, but no it does not seem to respond to that whatsoever...
My partial log:
I'm starting to suspect my OTGW is somehow not entirely good. Maybe my soldering was bad, or a certain part that was not 100%, I don't know. I'm thinking about buying one from someone else who doesn't need it anymore, but who knows it does work with Domoticz. Does anybody have one they are willing to sell?
First thing I noticed was that it immediatly starts outputting the messages that start with T and B. Not the readable ones I had before. I can isue the PS=1 command, but no it does not seem to respond to that whatsoever...
My partial log:
Code: Select all
2020-02-29 17:14:23.806 Status: OTGW: B40000200
2020-02-29 17:14:24.252 Status: OTGW: T80000200
2020-02-29 17:14:24.406 Status: OTGW: B40000200
2020-02-29 17:14:24.806 Status: OTGW: T80000200
2020-02-29 17:14:24.908 Status: OTGW: B40000200
2020-02-29 17:14:25.355 Status: OTGW: T80000200
2020-02-29 17:14:25.515 Status: OTGW: B40000200
2020-02-29 17:14:26.011 Status: OTGW: B40000200
2020-02-29 17:14:26.193 Status: User: initiated a manual command: PS=1
2020-02-29 17:14:26.463 Status: OTGW: T80000200
2020-02-29 17:14:26.615 Status: OTGW: B40000200
2020-02-29 17:14:27.018 Status: OTGW: T00050000
2020-02-29 17:14:27.114 Status: OTGW: B60050000
2020-02-29 17:14:27.590 Status: OTGW: T10010A00
2020-02-29 17:14:27.714 Status: OTGW: BD0010A00
2020-02-29 17:14:28.149 Status: OTGW: T80190000
2020-02-29 17:14:28.316 Status: OTGW: BC01942B0
2020-02-29 17:14:28.699 Status: OTGW: T80000200
2020-02-29 17:14:28.820 Status: OTGW: B40000200
2020-02-29 17:14:29.257 Status: OTGW: T80000200
2020-02-29 17:14:29.422 Status: OTGW: B40000200
2020-02-29 17:14:29.805 Status: OTGW: T80000200
2020-02-29 17:14:29.926 Status: OTGW: B40000200
2020-02-29 17:14:30.368 Status: OTGW: T80000200
2020-02-29 17:14:30.528 Status: OTGW: B40000200
Re: Strange problem with OTGW
That's what I expected. I'm building a binary for rpi3 right now. I will put it tomorrow on my github page. Your OTGW works just fine. It outputs the same as mine. Do you have a rpi2 or rpi3?
Re: Strange problem with OTGW
I have a rpi3 (I think officially it is rpi3 model B, but I'm not sure...)
Re: Strange problem with OTGW
Sent you a pm.
Re: Strange problem with OTGW
I received that. I can't reply however, it says you have disabled receiving PM's
-
- Posts: 2
- Joined: Sunday 24 September 2017 9:33
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Strange problem with OTGW
Maybe I overlooked something but can't you adjust the speed in the LAN module so that OTGW has more time to process incoming data?
I'm using a USR-TCP232 with baudrate at 9600 and this has been working for over two years without any errors. You could go even lower maybe, to 4800 I guess. There's not much data being exchanged.
I'm using a USR-TCP232 with baudrate at 9600 and this has been working for over two years without any errors. You could go even lower maybe, to 4800 I guess. There's not much data being exchanged.
Re: Strange problem with OTGW
I also have baud-rate 9600.
At the moment I am testing the solution of svkeulen, and that seems to work really well. That would also mean that the baud-rate is not the issue, but it is a good out-of-the-box suggestion!
At the moment I am testing the solution of svkeulen, and that seems to work really well. That would also mean that the baud-rate is not the issue, but it is a good out-of-the-box suggestion!
-
- Posts: 279
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Strange problem with OTGW
Hi Guys,
I am trying to follow your efforts.
I bought a new OTGW just a couple of months ago and it seems to work as expected.
Also with the USR-TCP232 and it works in combination with a plugwise-anna thermostat on my remeha cv system.
running latest domoticz beta on rpi3
I noticed you are running OTmonitor at the same time in combination with domoticz.
I tried to do that but did not succeed ... When I connect OTmonitor from some windows laptop, the connection to domoticz stops and I need to power cycle most devices to get everything back in sync.
perhaps I can help in testing stuff, compiling is not my thing, sorry for that.
Eddie
I am trying to follow your efforts.
I bought a new OTGW just a couple of months ago and it seems to work as expected.
Also with the USR-TCP232 and it works in combination with a plugwise-anna thermostat on my remeha cv system.
running latest domoticz beta on rpi3
I noticed you are running OTmonitor at the same time in combination with domoticz.
I tried to do that but did not succeed ... When I connect OTmonitor from some windows laptop, the connection to domoticz stops and I need to power cycle most devices to get everything back in sync.
perhaps I can help in testing stuff, compiling is not my thing, sorry for that.
Eddie
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
Re: Strange problem with OTGW
Hey eddieb! I am (currently) not running otmonitor. I use that as a means to determine where the problem lies. For example: if domoticz is not working correctly, it can be a bug in domoticz, but it can also be something on with the OTGW. That's when you use otmonitor. It the OTGW does work with otmonitor, than the OTGW is probably okay.
Running 2 pieces of software on the OTGW is not a good idea. If you want to run both, you should enable remote access in otmonitor, and then point domoticz to otmonitor. That way otmonitor is the only one that actually connects to the OTGW, but it will relay all messages to and from Domoticz.
Running 2 pieces of software on the OTGW is not a good idea. If you want to run both, you should enable remote access in otmonitor, and then point domoticz to otmonitor. That way otmonitor is the only one that actually connects to the OTGW, but it will relay all messages to and from Domoticz.
-
- Posts: 279
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Strange problem with OTGW
tnx @Hobbybob ,
Running 2 clients on the OTGW gave me much problems so I stopped trying that within the 1st day I had my OTGW running.
It runs fine for almost 2 moths now and I am very happy with it.
Had some issues with the PlugWise Anna / Smile but after I was helped by the plugwise helpdesk to get the latest firmware that works stable to.
I van control the boiler in different ways :
- domoticz -> OTGW
- domoticz -> ANNA plugin
- Anna/Smile webinterface
- Plugwise app
Eddie
Running 2 clients on the OTGW gave me much problems so I stopped trying that within the 1st day I had my OTGW running.
It runs fine for almost 2 moths now and I am very happy with it.
Had some issues with the PlugWise Anna / Smile but after I was helped by the plugwise helpdesk to get the latest firmware that works stable to.
I van control the boiler in different ways :
- domoticz -> OTGW
- domoticz -> ANNA plugin
- Anna/Smile webinterface
- Plugwise app
Eddie
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
Who is online
Users browsing this forum: No registered users and 0 guests