It is currently Fri May 26, 2017 7:25 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Sat Aug 27, 2016 1:42 pm 
Offline

Joined: Wed Oct 03, 2012 9:53 am
Posts: 2797
Location: Colorado, U.S.
Ah, Gilles, what a year it has been! I have done no serious BASIC! development since March, when I released v01.90. A few small changes only. And it's getting worse as the year goes on; I have not even been current in the forum since mid-July.

@kaiateic and @ScottAtEIC have done a great deal of work already, which has gained them nothing. I think to get a good start on BLE, I need two whole weekends with nothing else to interfere. And I would have to change my priorities: no forum at all, no investigation of mode transition race conditions, skip both Luca's console attributes and the long-ago promised USB host, postpone upgrading BASIC! to current Android levels. These are all high priorities, based on promises I have made.

Wow... :shock: that's a pretty bleak picture... :(

- Marc


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Tue Aug 30, 2016 8:09 pm 
Offline

Joined: Tue Aug 30, 2016 7:35 pm
Posts: 2
I may be able to help with a sugestion:

Preface: many users use BT with basic!, yet basic! doesn't really support BT but just a very specific and limited implementation of spp. There should be nothing wrong with taking a similar 'first step' with ble.

My sugestion:
1- only implement connecting to a device that is already paired (done by the user from the bt setup screen). This does away with scanning. The method to connect would be about identical as done by basic! with BT.
2- create a command similar to a write where you pass the long uuid of the service and the long uuid of the characteristic, and the data to write out to the ble.
3- create a command similar to an open, where you pass the long uuid's of the service and characteristic, and a flag indication if it is for notification or indication. The function turns on notifications for that characteristic, and returns something like an fid.
3- create a command similar to an fread that checks if any data was received and returns it in a variable if available.
4- create a close like command to dissable the notification
5- create a disconnect.

Entitlement: this will allow anyone to connect and communicate to ble devices, say in ascii, if the ble device is advertising visible, it allows donding, and the relevant charateristic supports notification or indication. This includes most low cost hobbie modules out there.

Limitations:
1- if made as simple as explained, it would not suport binary or other type of data than utf8 (what most serial services use).
2- It would not support a regular read
(typically not needed for most serial or uart-look-alike services)
3- Standard services, like battery, alarm, etc, woud have to be implemented manually, provided it can be done with notification.
4- not all ble modules would work with basic!, but again not all BT spp modules work with basic! anyways.

Hope this helps. It would be nice to see some first steps after all this time...


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Wed Aug 31, 2016 1:28 am 
Offline

Joined: Sat Mar 02, 2013 11:04 am
Posts: 838
Location: France
Hi rfo-bro2,
I think Marc have all the needed and even the willingness I'm sure to implement BLE in RFO...
The only think he don't have is the time...

But I don't desperate :)

Cheers

Gilles

_________________
"It is better to mobilize intelligence for stupid things, rather than mobilizing stupidity for intelligent things."
Galaxy TAB S 8.4, 2560x1600, Marshmallow 6.0.1
Galaxy Note II, 1280x720, JB4.1.2
Galaxy A3, 1280x720, Android 6.0.1


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Wed Aug 31, 2016 1:29 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
I'm thinking of my next challenge, now that Android compilation is done...

Should I put BLE on my list or rather USB?

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Wed Aug 31, 2016 1:35 am 
Offline

Joined: Sat Mar 02, 2013 11:04 am
Posts: 838
Location: France
Hey Nicolas,

BLE BLE BLE BLE BLE please please :) :) :)

Because of my Blue-Rx for exemple or many other connected objects which invades the space increasingly :)

Cheers

Gilles

_________________
"It is better to mobilize intelligence for stupid things, rather than mobilizing stupidity for intelligent things."
Galaxy TAB S 8.4, 2560x1600, Marshmallow 6.0.1
Galaxy Note II, 1280x720, JB4.1.2
Galaxy A3, 1280x720, Android 6.0.1


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Wed Aug 31, 2016 5:23 pm 
Offline

Joined: Tue Aug 30, 2016 7:35 pm
Posts: 2
np, thank you.

Since I'm here...

I would say: what crowd would you like to feed?
BLE for the internet-of-things masses, or USB for the robotic teams around colleges....

...and there will always be a crowd craving for "usble", of course! :-)


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Wed Aug 31, 2016 10:14 pm 
Offline
User avatar

Joined: Thu Jan 08, 2015 11:28 am
Posts: 1088
Location: .NET
usb, cuz then it also would give "support" for ble, in the way of usb modules (i think, there's these atleast: https://www.adafruit.com/product/1327 http://www.dfrobot.com/index.php?route= ... 8e43K20PIU).

_________________
https://github.com/evolbug
http://toobasic.jimdo.com


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Wed Aug 31, 2016 11:52 pm 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1135
Location: From Blighty
Maybe it should go out to vote?

USB?
BLE?

I am a long way off using these myself, but very interested in "hyper connectivity".

Also surprised we don't really hear, if not from anyone with regards to teaching BASIC! in an educational environment.

Off curriculum maybe...

Mog


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Thu Sep 01, 2016 12:15 am 
Offline

Joined: Sat Mar 02, 2013 11:04 am
Posts: 838
Location: France
evolbug wrote:
usb, cuz then it also would give "support" for ble, in the way of usb modules (i think, there's these atleast: https://www.adafruit.com/product/1327 http://www.dfrobot.com/index.php?route= ... 8e43K20PIU).

Very interesting Evolbug, and you know how to use or the format of the data from the BLE through the USB ??

Cheers

Gilles

_________________
"It is better to mobilize intelligence for stupid things, rather than mobilizing stupidity for intelligent things."
Galaxy TAB S 8.4, 2560x1600, Marshmallow 6.0.1
Galaxy Note II, 1280x720, JB4.1.2
Galaxy A3, 1280x720, Android 6.0.1


Report this post
Top
 Profile  
 
 Post subject: Re: Bluetooth Low Energy (BLE)(BT 4.0) not supported by BASI
Unread postPosted: Thu Sep 01, 2016 2:49 am 
Offline

Joined: Tue Dec 04, 2012 10:50 am
Posts: 656
Location: UK
Mog wrote:
Maybe it should go out to vote?

Or donation auction? (I couldn't find a smilie for "mischievous"!)

Mike.


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred