SensorToolbox's Linear Acceleration module
응답
18. 5. 30 오전 1:43

Hi guys,

In reference to SensorToolbox's Linear Acceleration module metioned by Franjo from this thread "https://xdk.bosch-connectivity.com/community/-/message_boards/message/348672".

I would like to knw how could I get the linear acceleration data from the XDK. I want to log the data of the linear acceleration into my SD card. I have tried editing all the BCDS_Acceleration.h to  BCDS_LinearAcceleration.h but there isn't any difference to my output. 

However I coudn't find any other infomation regarding to the module to solve my issue. Tips and pointers would be a great help for me to understand and implement it better.

Thank you.

0 (0 투표)
RE: SensorToolbox's Linear Acceleration module
응답
18. 5. 30 오후 2:34 as a reply to K Ming L.
Hello K Ming L,

the usage of the linear accelerometer is quite similar to the accelerometer, except that the API calls have different names.

The relevant API interface is located in the SDK at xdk110 > Platform > SensorToolbox > include > BCDS_LinearAcceleration.h. The relevant handle for this virtual sensor is xdkLinearAccelSensor_Handle .

You can also find a code-snippet outlining the usage here.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Alex
0 (0 투표)
RE: SensorToolbox's Linear Acceleration module
응답
18. 5. 30 오후 3:38 as a reply to K Ming L.
Hello Sajid,

it is not possible to flash two applications simultaneously. What I meant was that you could take all the code that is responsible for flashing the certificates onto the simplelink chip and put it in a separate project.

That way, you can have one project that completely focuses on writing the certificates into the simplelink chip's memory correctly, and one project that completely focuses on sending messages correctly.

This is possible because the certificates will persist, even after flashing a new application onto the XDK. This way, you can run the application that writes the certificates and afterwards, you flash the application that is responsible for sending and still use the certificates that you flashed beforehand.

Debugging will be easier as well, since you can focus on one functionality per application.

Regarding the missing sl_FsWrite() call, I recommend that you use the actual length of the certificate, instead of 1024. Otherwise, the function will write 1024 bytes as the certificate, where the last bytes are from outside the actual array.

As for the console log excerpt, there is no stack overflow now, at least. But please do not forget to check the return code of sl_Connect() , this is the most important return code to check, since it determines if all further operations on that socket will have meaningful effects.

Finally, I do not know if you did everything else correctly now, since you did not post the updated code. Would it be possible for you to upload your project(s) on github (or any other platform for sharing code), so that I can inspect the updated code?

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Alex
0 (0 투표)
RE: SensorToolbox's Linear Acceleration module
응답
18. 6. 4 오후 3:35 as a reply to Alexander Sawtschuk.
This certainly helps, thank you!
0 (0 투표)
RE: SensorToolbox's Linear Acceleration module
응답
18. 6. 4 오후 4:45 as a reply to K Ming L.
Hello K Ming,

I am always glad to help.

Please feel free to ask if you have any further questions or concerns.

Kind regards,
Alex
+1 (1 투표)