Android control panel browser is resetting the session

asked 2015-01-16 02:13:10 -0700

gmotika gravatar image

updated 2015-01-16 11:46:25 -0700

Nikhil Dabhade gravatar image

Hello All,

I ported thin client control panel code for TI cc3200. Thin client is able to connect to the control panel app running in android. But android is resetting the TCP connect after BEGIN message. I tried to debug the problem but not able to root cause the problem. Can you please help.

Here is the communication between device and android app

device -> app - connect initial byte : 00 device -> app - Auth anonymous app -> device - OK device -> app - BEGIN "GUID" app -> device - TCP RESET

Thanks, Goutam

edit retag flag offensive close merge delete


I don't see a reason as to why the Android app should send a reset. Can you post logs from the app ? May be some bad data is being sent which causes Android to reset the connection

Nikhil Dabhade ( 2015-01-16 11:29:55 -0700 )edit

Here is the logs snippet from apps logs E/ALLJOYN (11415): 74.741 ****** ERROR ALLJOYN auth ...e/src/Message_Parse.cc:879 | 0x9010 E/ALLJOYN (11415): 74.742 ****** ERROR ALLJOYN auth .../src/Message_Parse.cc:1078 | 0x9010 E/TCP (11415): 74.743 ****** ERROR TCP auth ...router/TCPTransport.cc:768 | 0x9010

gmotika ( 2015-01-16 22:47:47 -0700 )edit

Looking at the code this seems to hint that the first "Hello" message between thin client and App was received but when it was being parsed it did not like the header length. Would it be possible for you to post the Wireshark logs for this interaction?

Nikhil Dabhade ( 2015-01-20 12:39:15 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-20 21:56:34 -0700

gmotika gravatar image

Thanks Nikhil for looking into this problem we are facing. I found the issue and it is with endianess. In header we were sending device is BIG ENDIAN but data is actually coded in LITTLE endian.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-01-16 02:13:10 -0700

Seen: 115 times

Last updated: Jan 16 '15