Hi,
at the wiki:
http://processors.wiki.ti.com/index.php/Category:BluetoothLE
We can already find two python scripts which will ease minor TI's BLE solution tests under this operative system. The links are:
http://processors.wiki.ti.com/index.php/Category:LinuxHostTest
http://processors.wiki.ti.com/index.php/Category:LinuxHostTest2
Thanks to everybody who has helped to this little experiment.
Please click the Verify Answer button on a post if it answers your question! :)
Im testing an aproach to the comunication with the cc2540, with the keyfob exactly (Mini Dev Kit), using python. The scripts in those links are fantastic, I really want to thank the developper for publishing them. I succeeded with the first script, however, I cannot get the LinuxHostTest2 to work.
I have flashed the hosTestRealease on the dongle and the SimplePeripheral to the keyfob
I can discover and connect to the device but I cannot receive data, and if I try to activate all the notifications the program crashes and write on console:
"WHAT!?! SHOULDNT HAPPEN!!!!"
I believe I am using the wrong profile on the KeyFob, that was not intended to be used with this script.
I want to make my own python script but first I wanted to see it works well, so if you could help me it would be great.
Thank you in advance,
João Bastos
I developed the first script and got in touch with the author of the second one. Unfortunately, I think the second one does not work nowadays but just because of the change in the handles TI applied some time ago. Check this link for related info:
http://e2e.ti.com/support/low_power_rf/f/538/t/134385.aspx
And please feel free to upload an updated version of the second script if you succeed! :)
Yes, you were right. The problem is simply a wrong handle number for the Accelerometer Enable. Its easily fixed by changing the Handle value in the BTDevices.py, activateAccelerometer function, from \x21\x00 to \x33\x00.
I will upload this modified version to my files, in my TI account. I don't know where is the correct place to upload this, or if it would be enough just to add a note on the wiki page explaining this. What do you think is best?
Best Regards,
Wow! Is it really THAT easy?
I did not wanted to change the code of another person but I do not think it is wrong to do a single modification... argh.
See you in 10 minutes.
PS: Everybody, the change has already been applied. If there are new modifications to be made, do not hesitate posting here. Bye!
looking for some help with this keyfob dev kit. had some questions for you. not sure how to send you a PM. please message me: abraham.carter@gmail.com
thanks in advance
Hi Abraham,
I am not a TI member and this is not my job so I do this for fun. I do not accept private messages, since I cannot guarantee I can help. I just try to.
So post around the forum and we'll try our best. TI guys are much better prepared than me.
Bye! :)
Kindly add me as your friend in Ti.E2E forum and when ever you are posting queries , send a notification to me so that i can help you ,if i can.
Nice Day,
Senthil
NiceDay,