Connection state TellStickDuo

Functionality and usage of the OpenNethome Server
Post Reply
krambriw
Posts: 86
Joined: Sun Jan 04, 2015 8:48 am

Connection state TellStickDuo

Post by krambriw »

If I disconnect the TellStickDuo, the connection state is not changed, it still says 'Connected', both in the GUI and via the REST interface. For AudioProtocolParser this is working as expected, connection state changes are updated correctly

Also, when connecting the Duo again, it seems that the connection is not correctly recovered
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: Connection state TellStickDuo

Post by stefangsbb »

Unfortunately I think Linux will assign the COM-port a new name when you plug it in again. I will check a bit more in detail.
krambriw
Posts: 86
Joined: Sun Jan 04, 2015 8:48 am

Re: Connection state TellStickDuo

Post by krambriw »

OK, I see

Just additional info, as soon as you disconnect the TellStickDuo, the log gets completely flooded so at least the connection status should be possible to update. And I wonder what is happening to my SD card on RPi now in this situation...is there any risk? Is it possible to turn off logging completely?

Code: Select all

Time	Source	Message
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:32	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
	15.02.12 07:24:31	TellstickPort	failed to read from Tellstick serial port:
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: Connection state TellStickDuo

Post by stefangsbb »

Hmm, you are right, that handling of lost connection does not look too good. I will have to do some improvements there.
krambriw
Posts: 86
Joined: Sun Jan 04, 2015 8:48 am

Re: Connection state TellStickDuo

Post by krambriw »

Dear Stefan, with respect that you have other duties, just a Q if you have looked into this? I have finished coding on my end but I cannot test if it is working correctly...even though I believe so (it works fine when I disconnect/connect an audio receiver)
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: Connection state TellStickDuo

Post by stefangsbb »

Well, this being a hobby project, the response times are not really predictable... The precious hours i get to spend on this have to be carefully householded. But I usually try to prioritize if someone have some kind of problems, and I did not realize that this was something acute, so it was a bit further down in the pile...

I have committed a partial fix for the problem, so it does not spam the log at least. It still does not reconnect automatically for some reason, but the rtxt library is not always very predictable... Hope this helps at least. It is in the nightly build.
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: Connection state TellStickDuo

Post by Nasty76 »

Btw sorry to ask why that is importend that tellstick connect disconnect? my raspberry run 8 month and never tellstick dropped out.
do you try something tricky there why that tellstick loose connect?.
krambriw
Posts: 86
Joined: Sun Jan 04, 2015 8:48 am

Re: Connection state TellStickDuo

Post by krambriw »

@Stefan, no hurry, I just saw this as a bug and I think the sw should be able to handle disconnects/reconnects automatically without the need to restart the server (btw, I find stop server command in the gui but not restart or start...). The problem is if you run NetHome in a VM under Windows, then it can happen that NetHome loses connection to the usb device either temporarily or permanently. The action I would perform if I could monitor the device state is either to reboot the VM or hopefully wait a while for the recover to happen

@Nasty, just me wanting things 'perfect', that is the way I do it myself as much as possible. The biggest problem was that the logging was going bananas...
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: Connection state TellStickDuo

Post by Nasty76 »

Yeah I see , banana log is bad think :D. I have never has issue dropped tellstick in my raspberry so only wanna know how you get tellstick unconnected :D. Btw new raspberry pi 1ghz 1gb ram and 4 core is soon available or already in shop.
Mastiff
Posts: 73
Joined: Tue Feb 24, 2015 7:30 am

Re: Connection state TellStickDuo

Post by Mastiff »

I would very much like a connection message to! Sometimes my Tellstick drops, and it would be great if the bridge that Krambriw has made between ONH and EG could fire an event that lets me reset the USB over TCPIP box that I have it connected to. :mrgreen:
Post Reply