kinetis thin client communication issue

asked 2014-05-19 02:29:48 -0700

andrei.istodorescu gravatar image


I would like to use the thin client on a kinetis device with ip stack over ethernet. I have implemented all the needed functions for the all joyn thin client interface, similar to arduino interface and then used the arduino AJ_LedService application.

I have a virtual machine with ubuntu where i have started basic_service application. When I run my application on my kinetis board server receives WHOHAS messages and replyes with ISAT with both version 0 and version 1. My kinetis gets only version 1 ISAT messages, but because the flags in the ISAT messages does not have anyTCP or UDP bits set(either for ipv4 or ipv6) the board cannot continue the connection process.

I have tried with basic_client basic_server, both running on PC and the Hello message is ok received and sent. Also, with this setup, in the ISAT message the ipv4 tcp bit is 1 in the version 1 ISAT and in version 0 ISAT i see both ipv4 tcp and ipv4 udp bits set.

I have investigated all the messages above using Wireshark with alljoyn support. Am I missing something?

edit retag flag offensive close merge delete


Can you please explain the setup a little more? Basic_service is a Thin Library application or Standard Library? Are you using bundled router (compiled into the basic_service app) or the alljoyn-daemon? Is the Thin Library application able to connect to the AllJoyn router ("org.alljoyn.BusNode")? Can you let us know the contents of the WHOHAS and ISAT packets?

bspencer ( 2014-05-19 09:51:40 -0700 )edit

I have an Ubuntu image from this hackfest: https://wiki.allseenalliance.org/develop/hackfests/1may2014hackfest/details The basic_service and basic_client apps are in the alljoyn/build/linux/x86/debug/dist/cpp/bin/samples folder. I think this basic_service app has bundled router because I don't have to start the alljoyn-daemon for basic-client communication to work and the Hello World message is displayed in client: JoinSession SUCCESS (Session id=451048467). 'org.alljoyn.Bus.sample.cat' (path='/sample') returned 'Hello World!'. Basic client exiting with status 0x0000 (ER_OK).

andrei.istodorescu ( 2014-05-20 07:58:53 -0700 )edit

I have tried another approach: I have used the config.xml file from https://allseenalliance.org/docs-and-downloads/documentation/getting-started-alljoyn-service-framework-linux-thin-client like this: 1. run alljoyn daemon: ./alljoyn-daemon --config-file=/home/ubuntu/alljoyn/config.xml 2. run ajtcl basic client: ./alljoyn/core/ajtcl/samples/basic_client With this I can see the tcp communication and alljoyn messages exchange between server and thin client I have exactly the same basic_client on my kinetis board but with support only for IPv6. Could this be an issue?

andrei.istodorescu ( 2014-05-20 08:02:05 -0700 )edit

can you clarify the two scenarios? what is the difference between the scenario that worked versus the one that did not work? thanks.

waynelee ( 2014-05-22 10:32:44 -0700 )edit

I have managed to get something working: Run ledctrl from alljoyn/core/alljoyn/build/linux/x86/debug/dist/cpp/bin on my Ubuntu Virtual machine. Run arduino led demo on kinetis device, connected using ethernet cable with PC with virtual machine. WHOHAS and ISAT packages are passing well(now ISAT has TCP bit set in flags), after this, tcp connection is established. After this, my board sends CONNECT-initial byte, then SASL-AUTH and now the server(ledctrl) sends SASL-ERROR. I have tried with the led demo example for arduino and also with basic_client demo from ajtcl.

andrei.istodorescu ( 2014-05-27 05:07:26 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-29 23:49:14 -0700

andrei.istodorescu gravatar image


I have found the issue. There was a problem with the SASL-AUTH package which had an extra byte inside. Now everything works.

Thanks a lot for the help!

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

Question Tools

1 follower


Asked: 2014-05-19 02:29:48 -0700

Seen: 277 times

Last updated: May 29 '14