Page 1 of 1

Connection state TellStickDuo

Posted: Tue Feb 10, 2015 7:45 pm
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

Re: Connection state TellStickDuo

Posted: Tue Feb 10, 2015 9:17 pm
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.

Re: Connection state TellStickDuo

Posted: Thu Feb 12, 2015 7:25 am
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:

Re: Connection state TellStickDuo

Posted: Thu Feb 12, 2015 8:32 pm
by stefangsbb
Hmm, you are right, that handling of lost connection does not look too good. I will have to do some improvements there.

Re: Connection state TellStickDuo

Posted: Thu Feb 19, 2015 5:31 pm
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)

Re: Connection state TellStickDuo

Posted: Thu Feb 19, 2015 9:42 pm
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.

Re: Connection state TellStickDuo

Posted: Fri Feb 20, 2015 1:51 am
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?.

Re: Connection state TellStickDuo

Posted: Fri Feb 20, 2015 8:43 am
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...

Re: Connection state TellStickDuo

Posted: Fri Feb 20, 2015 10:20 pm
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.

Re: Connection state TellStickDuo

Posted: Tue Jul 14, 2015 11:15 am
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: