PDA

View Full Version : Gateway 2.1.14 with client - testing reconnect


korda
09-27-2008, 09:37 AM
Mark,
I loaded beta 2.1.19 & 2.1.14 software and tested "reconnect" function in client.
1) It works fine on first connection.
2) Then I intentionally unplug USB and plug back in. Client indicates that connection was closed in the message block.
3) I click again "setup serial" (reconnect is checked) and it is acting normal.
4) clinking "wait on event" produces following error in the message window:

"The server commited a protocol violation. Section=responseBody Detail=Response chunk is invalid"

I have tried several different ways and could never connect to bridge after first time connection.
How is this feature supposed to work?
http://forums.synapse-wireless.com/images/misc/progress.gif http://forums.synapse-wireless.com/images/buttons/edit.gif (http://forums.synapse-wireless.com/editpost.php?do=editpost&p=511)

mgenti
09-29-2008, 10:59 AM
"The server commited a protocol violation. Section=responseBody Detail=Response chunk is invalid"

I have tried several different ways and could never connect to bridge after first time connection.
How is this feature supposed to work?


Vlad,

I just posted an updated version of the SNAP Gateway, version 2.1.15, that should fix this error message and being unable to connect to the bridge after the first time.

The reconnect option is actually unrelated to connecting to a USB device after it has been disconnected. From the documentation on this flag:

reconnect -- By default if the serial connection is already configured
to the passed values it will not reconnect, if set this
will close the connection and reopen it (default False)


This parameter was added to the connectSerial method for users that were connecting to the SNAP Gateway via Portal. Originally if a user called connectSerial it would close the connection and reopen it even if it was already connected via the port that was requested.

korda
09-29-2008, 02:37 PM
Quote:"
I just posted an updated version of the SNAP Gateway, version 2.1.15, that should fix this error message and being unable to connect to the bridge after the first time."
1)
Mark, it is working now, thank you. Would be good to have notification when Bridge is back on line (connected). Your code only handles disconnection correctly.
Does Gateway or CookComputing.XmlRpcV2.dll can provide that?

2) The file "CookComputing.XmlRpcV2.dll" - does it change from one release to another? Does it have a release version number?
I made a copy of this dll to my other project and was not checking if latest file is the same as before.