I know nothing about bluetooth, so... <SOLVED>

Go To Last Post
28 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This seems like a good place to ask.

 

What I want to do is drop an inexpensive module onto a design such that when connected to linux, windows, or mobile phone (the last is nice but not essential) it presents as a serial interface such as a terminal might talk to, and that the design side of this sees merely a Tx and Rx pair at some convenient baud rate, which doesn't need to be changeable. There is no need for any great data exchange, but it must all still work if the unit isn't paired...

 

Not knowing what to ask on DDG, I ask here please!

 

Thanks,

 

Neil

 

(and for the mobile phone, is there a suitable serial terminal that will connect to a bluetooth 'line'? Ideally without introducing adverts or requiring access to everything including my inner leg length?)

This topic has a solution.
Last Edited: Tue. Dec 29, 2020 - 12:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Theres a lot of modules that appear as SSP for Bluetooth. Ebay and Aliexpress are your huckleberry for them.

They all pretty much operate the same way. You only need to configure their operating parameters once and then they pretty much connect and forget. I do have a way of forcing N avr to reset them should I suspect the configuration to be corrupt.

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign wrote:
Theres a lot of modules that appear as SSP for Bluetooth.
SPP (Serial Port Profile)

Bluetooth 4 and subsequent is dependent on firmware and frameworks.

BGX220S Wireless Gecko BLUETOOTH® Xpress Modules - Silicon Labs | Mouser

Conversely, "transparent UART" for Microchip Bluetooth Low Energy modules.

 

edit :

EZ-SerialTM from Cypress Semiconductor :

EZ-SERIAL™: EZ-BLE MODULE FIRMWARE PLATFORM

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Thu. Dec 3, 2020 - 06:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you see Brian's recent thread: https://www.avrfreaks.net/forum/avr-bluetooth-androidios-app ?

 

Note that SSP is Bluetooth "Calssic" (BR/EDR) - there is no standard equivalent with BLE.

 

Yes, there are plenty of "Terminal" apps that will work with SSP - search your favourite app store.

 

Although there's no standard "UART-over-BLE", every chip maker has a proprietary one; eg, Microchip has  MLDP =  Microchip Low-energy Data Profile

 

https://www.avrfreaks.net/commen...

 

There are terminal apps that support many of them.

 

EDIT

 

barnacle wrote:
windows

Note that there is no native Windows  support for BLE before Win-10.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Wed. Dec 2, 2020 - 11:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm going to be experimenting, very soon, with the Microchip RN4870, There is a MikroElectronika module/breakout board that is not an Arduino shield, but it is easy enough to connect to, It supports the transparent UART profiles. Not cheap but not terribly expensive, either. I like it because there is a small pin-count version, among other things. Documentation seems a bit better than some, out there.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

HERE is an old, 2006, Circuit Cellar article on (classic) Bluetooth.

 

It might be of interest, if even for the overview.

 

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use HC06 and Bluetooth terminal by Kai Morich for Android.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Note that “Bluetooth” and “Bluetooth LE” are significantly different.  Plain BT includes the serial profile, but is (for example) inaccessible from iPhone applications.

BTLE is more accessible from apps, but is generally less “stream” oriented.  Sigh.

 
(At least, that’s what I’ve heard.)

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This one?

I guess so. I downloaded it from the App store, it is so good, for my needs at least, that I gave him 10 bucks donation, a very rare thing for me to do. cheeky (you know DNA from various heritages that are careful with money)

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

... and mine is Scotland.

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I guess I may have some of that from when the Romans tried to civilise the Scots..... and failed devil but also some other DNA from elsewhere closer to Italy. Who knows where we come from. cheeky

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks folks! Looks like the magic word is HC06 (or HC05, or JDY30/31). A very useful page here: http://www.martyncurrey.com/blue...

 

Reading like mad...

 

Neil

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You’re brave, Jim. RN is for ‘roving networks’ that was acquired by Microchip. There’s plenty of horror stories about software defects etc.
I’d suggest the Nordic parts as these have Arduino support as well as Espruino (javascript) and micropython support.if you’re not concerned about power consumption, there’s the esp8266 and esp32 that gives you wifi and ble (esp32). With Arduino support.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
You’re brave, Jim. RN is for ‘roving networks’ that was acquired by Microchip. There’s plenty of horror stories about software defects etc.

 

I have used them in the past.  They are expensive, but worked great.  No issues. 

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
Nordic parts

Note that they are BLE only - so no SPP ...

 

See #4 & #9

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
I’d suggest the Nordic parts as these have Arduino support as well as Espruino (javascript) and micropython support.
one of several instances is micro:bit

Kartman wrote:
if you’re not concerned about power consumption, there’s the esp8266 and esp32 that gives you wifi and ble (esp32).
Likewise WINC3400

 


Micro:bit is on its way for schoolchildren | AVR Freaks

 

ATWINC3400 - Wireless Modules

ATWINC3400 and Arduino | AVR Freaks

AVR + Bluetooth + Android/iOS App | AVR Freaks

 

"Dare to be naïve." - Buckminster Fuller

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So, I got a couple of generic HC-06 units off the bay and installed the Kai Morich terminal from the play store on the phone... and it just works. Transparent UART at 9600 out of the box, no setup, no nothing. Exactly what I needed.

 

Thanks guys.

 

Neil

 

p.s. the pairing ID is, er, 1234...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please mark a solution. Looks like you are all set

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Um not quite but I haven't sorted it - something hung the laptop hard enough to require a power reset - very unusual for linux! - and now something odd appears to have happened where both the phone terminal and the linux terminal on a different serial port are producing garbage... which looks like a clock issue but the bits seem to be the right length.

 

Neil

 

edit, fixed: a variable had to be static and wasn't. Will mark this as the solution.

Last Edited: Mon. Dec 28, 2020 - 08:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tried the new moderator powers to un-mark a solution and mark a new solution. smiley

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yabbut... #18 was the solution, #20 was a comment on unrelated things that appeared at first glance to be an issue, but weren't...

 

Neil

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

barnacle wrote:

Yabbut... #18 was the solution, #20 was a comment on unrelated things that appeared at first glance to be an issue, but weren't...

 

Neil

JS's help has been reversed as per your advice Neil. Happy New Year.

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can't the OP still un-mark and re-mark after a Moderator has done it ... ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't know. Perhaps Neil can try. Or you Andy could try on one of your own threads and let us know.

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

valusoft wrote:
try on one of your own threads and let us know.

I just tried here: https://www.avrfreaks.net/commen... - that  still works (per Tip #5).

 

My main question was whether the OP "loses control" after a Moderator has done it?

 

Perhaps a moderator could change the marked solution in https://www.avrfreaks.net/commen... - and I'll see if I can still change it back?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK. Have done.

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cheers.

 

yes, I can still un-mark your one, and then choose something else: https://www.avrfreaks.net/commen...

 

(I actually put it back to the original).

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...