Hello,
I'm interested in creating an arduino program using the sandeepmistry core
Now I'd like it to behave like the HC 05 with settable code and direct UART communication to a smartphone
and I'm not sure how to do this.
I've taken a look at the "Serial example" but I don't understand why would you need a SPI library for that and set up the pin's.
Also I don't see an API for setting a PIN code and bluetooth address just the device name.
Anyidea how to set it up?
Your link alludes to BLE devices, which the HC-05 isn't.
If your phone IOS, your only option is to ditch the HC-05, and obtain a BLE device for use with sandeep - whatever that is.
If you have the HC-05 in your hand, and your phone is Android, you have two options
- obtain a BLE device for use with sandeep.
- forget Sandeep, and use the HC-05 like everybody else does.
I recommend the latter. The rest of your post is just technobabble, and
Serial.print
is about all you need to communicate with your smartphone
Yeah but I'd like to use the nrf51822 specific module and chip in my project and don't understand what is the difference between connecting to it with the nrf tool app or the simple connect and pair menu as simple as the HS 05.
I want in the end to eventually send and receive data from a simple bluetooth terminal app from the play store just like the HC-05.
If you want a device to behave like and HC-05, get an HC-05.
If you want a device like an NRF, get a BLE device.
If you cannot understand the difference, it might be time to re-examine your preference for the NRF.
Both have bluetooth in their name, and run on 2.4Ghz, but that is about all they have in common
Some comment on basic BLE: HM-10 Bluetooth 4 BLE Modules | Martyn Currey
Nick_Pyner:
If you want a device to behave like and HC-05, get an HC-05.
If you want a device like an NRF, get a BLE device.
If you cannot understand the difference, it might be time to re-examine your preference for the NRF.
Both have bluetooth in their name, and run on 2.4Ghz, but that is about all they have in common
Some comment on basic BLE: HM-10 Bluetooth 4 BLE Modules – Martyn Currey
I need the NRF5 in specific because you can program it easily and implement along the bluetooth other stuff,
Any way, are you sure there is no way to make the connection more secure with something like a pin code or a password before you connect to it?
MikeLemon:
I need the NRF5 in specific because you can program it easily
Really? It doesn't sound like it. Indeed, quite the opposite - hence your plaintive wish to have it work like an HC-05
and implement along the bluetooth other stuff,
What "other bluetooth stuff"? If you are referring to anything other than plain vanilla BT2 SPP protocol, then you have just left HC-05, and bought a passage into another world, where it is time to come to terms with the programming adventure that entails.
Any way, are you sure there is no way to make the connection more secure with something like a pin code or a password before you connect to it?
No. This is bluetooth. It is a system more for convenience than high security, but the security it has should be quite satisfactory for normal people. If you are getting paranoid, moving to BLE might help somewhat, as I understand they all use a six-digit password for pairing.
Nick_Pyner:
If you are referring to anything other than plain vanilla BT2 SPP protocol, then you have just left HC-05, and bought a passage into another world, where it is time to come to terms with the programming adventure that entails.
I want to put another program aside the UART bluetooth line with the GPIO's and maybe some more advanced communications just using the NRF5 due to the cost and low space constrains.
Nick_Pyner:
No. This is bluetooth. It is a system more for convenience than high security, but the security it has should be quite satisfactory for normal people. If you are getting paranoid, moving to BLE might help somewhat, as I understand they all use a six-digit password for pairing.
Well then, How do you implement that password in arduino? Also probably the right term for what I want to achieve is Bonding, I need to can a single communication line and bond a smartphone to the NRF5 chip.
I don't see the point of a password in Arduino. The pairing process involves a password in bluetooth.
You might mean binding. You can bind HC-05<>HC-0x. I believe this is done mainly for the auto-connect.
http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/
It may be possible to do something similar with a phone<>BLE. I imagine this means configuring Bluetooth to only talk when the phone's MAC address is received. This probably involves writing a phone app as well.
Well that's not helpful....
I was asking for how you do that in BLE I know you can do that with the hc 05 but I want to how physically know how to do that on the NRF5 platform as well as how to create a direct data link for real time data exchange.
I suppose you want an apology then?