How to use AJTCL on Raspberry pi and How to add library to AJTCL.?..?

asked 2014-11-11 20:58:46 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm working on raspberry pi board.i executed alljoyn sample applications.when the time i integrated dht11 sensor,to detect temperature i need to add WiringPI library .pls help me how to add library to AJTCL .i tried a lot it's not working.

To execute ajtcl in raspberry pi platform should be linux or arduino..?

Waitng for answer....

Thanks in Advance Dattu M P dattu.poddar@gmail.com

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-12 13:23:04 -0700

bspencer gravatar image

You will be using the linux porting layer on a PI (assuming you have it booting into a linux instance). You can follow these steps to compile both AJTCL and also the alljoyn-js project for an RPi.

In the steps to compile for RPi you can ignore compiling alljoyn-js if you do not wish to use that software. What you need to do is write an application that communicates with the HW AND uses the AJTCL library. You do not add platform GPIO calls into AJTCL, you use it to expose methods that you connect to the HW in an application you create from scratch.

If you want to write code in javascript, you can complete the steps and build the alljoyn-js project. For RPi it will need to have the IO layer implemented to interact with lower level HW on the RPi. You can see an example of io_yun.c, where the code abstracts each of the GPIO's, enables PWM, and various other functions so that the alljoyn-js code can interact with the HW in an abstract way.

edit flag offensive delete publish link more


Thanks for valuable reply. Yesterday again I tried. I added libraries to existing Linux target and it works fine.i'm able to get temperature and humidity successfully... REGARDS DATTU M PODDAR

Datta ( 2014-11-12 19:48:31 -0700 )edit

Can you mark this as answered if it resolves your issue?

bspencer ( 2014-11-21 15:10:02 -0700 )edit

Hi Datta, I am trying to implement "ajtcl" on raspberry PI. I want to execute sample signal service and consumer code with alljoyn-daemon router running. SignalService app is failing with error "aj_net.c:736 MCastUp6(): socket() fails. errno="Address family not supported by protocol" status=AJ_ERR_READ ". Kindly guide me.

kamble4u ( 2015-04-15 03:45:18 -0700 )edit
Login/Signup to Answer


Asked: 2014-11-11 20:58:46 -0700

Seen: 587 times

Last updated: Nov 12 '14