What are the steps to port Alljoyn Thin Client to other MCU and CPUs?

asked 2014-03-30 00:17:42 -0700

owen_oh_ya gravatar image

updated 2014-05-22 10:36:19 -0700

waynelee gravatar image


i have successfuly run Arduino led example and communication with my win7 pc.

however, there are other MCU (thin client) which i have more experience oon than Arduino,

and also more powerful, so how could i porting alljoyn to my own thin client?

what are the source codes i should modify? is there any how-to guild?

Thank you


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-30 13:39:17 -0700

bspencer gravatar image

updated 2014-04-17 08:10:39 -0700

georgen gravatar image


There is no "How To" guide to port the AllJoyn Thin Library at this time. The project has a target folder in the root of the ajtcl project. What you would do for another MCU is duplicate one of the folders and then implement the 6 files for your target RTOS/Environment. If you start with the Arduino src then you will need to modify the aj_net.c to communicate with your Wi-Fi/network stack. Then the other files can most likely be left as is except changing the aj_target_util.c to report accurate timing information based on your MCU as well as implement the environments Free and Malloc methods. In all, most ports just require changes to aj_net.c and aj_target_util.c.

Once completed you will want to modify the SConscript to accept the new target as a compile option and setup the compile flags and libraries.

edit flag offensive delete publish link more


Thanks a lot for the answer

congtam ( 2014-05-15 03:12:41 -0700 )edit

Hi Bspencer, I'm also trying to implement AJTC on my own MCU. Would you mind explaining more details about "6 files for your target RTOS/Environment"? Which files do we want to duplicate? And an another question, AJTC supports for the environment RTOS, doesn't it? Thank you.

congtam ( 2014-05-20 00:28:35 -0700 )edit

When you download the AllJoyn Thin Library project there exists a target folder. For the given target you will need to implement the methods contained in those files. Please read the original answer as that tells you some details about what files to focus on first and then you can look at the others for your specific target platform.

bspencer ( 2014-05-20 10:25:13 -0700 )edit
Login/Signup to Answer


Asked: 2014-03-30 00:17:42 -0700

Seen: 5,110 times

Last updated: May 22 '14