I want to build an app in which a user can connect with Bluetooth to the HC-05 Bluetooth Module.
Is there a chance to disable/remove the password of the HC-05 Bluetooth Module with AT-Commands? So that the user only clicks the Device-Name in the app and then he's connected.
I already tried to configure the Module with AT-Commands like: AT+PSWD=, but that won't work.
Thanks for your help!
Related
I want to make a React-Native application to provide wifi-credentials to esp32 module via esp32 wifi access point.
I see there are some library of npm that we use to provisioning wifi config to esp32.
For ex.
react-native-esp32-idf
react-native-esp-idf-ble-provisioning-rn
But i'm confuse how to use them and may be these are provide credentials via BLE or Bluetooth but I want to provide SSID and PASS via wifi.
Means, I have a esp32 module and at begining i use it as a wifi-access-point then my application would be connected to esp32 by wifi automatiically then by communition through wifi-hotspot b/w app and device i provide cred. to device-esp32.
Thats it!
So how i make this application in react-native?
A simple approach would be like the following:
ESP32 is powered up
ESP32 opens a Wi-Fi access point
ESP32 starts an HTTP server acting as REST API
Any HTTP/REST client (including the react native app) can set the
Wi-Fi password and SSID using via the REST API
Once the Wi-Fi password and SSID are set, ESP32 restarts as a Wi-Fi
station and tries to connect to the configured Wi-Fi password and
SSID.
This way on your react native app you'll only need to use a simple HTTP/REST client
I'm trying to connect a bluetooth device (ESP32, peripheral) with Web Bluetooth (central). I send an addvertising packet and I can see the device on the web page, but I fail to connect to it. My code for the ESP32 looks like this: (MicroPython)
ble.gap_advertise(interval_us=100, adv_data=bytearray(b'\x02\x01\x06\x06\x08\x45\x53\x50\x33\x32\x11\x07\x26\x6c\x34\x7f\xb2\x38\x61\x82\xbe\x4d\x1d\x64\xf1\xf7\x93\x16\x02\x19\x80'),resp_data=None, connectable=True)
In Web Bluetooth (JavaScript) I just request a device and try to connect to the gatt.
Can anyone help me out?
Thanks in advance!
The JavaScript does work with another bluetooth peripheral. (RN4678)
And in JavaScript I can find the peripheral (ESP32) after filtering, but I can't connect to it.
JavaScirpt:
server = await device.gatt.connect()
The code stops at that point.
MicroPython:
The GATT is defined using:
ble.gatts.register.services()
I'm trying to use my own service, not a SIG defined one. So I advertise b'(x...') which contains the flags, the service and the device name. And it works with the nRF Connect App. I can send and recive data. But it doesn't work with the bluetooth enabled web browser.
Thanks for your help!
(https://i.stack.imgur.com/9Vx5t.jpg)
This is the board that I'm using Arduino Uno with inbuilt wifi. I'm unable to connect it to my wifi network
I tried doing what is mentioned in the link
https://www.trojanc.co.za/2017/11/05/arduino-uno-wifi-network-setup/
But the webpage won't open
Then I also tried uploading the code mentioned in below link to ESP8266 by pushing on 5th ,6th,and 7th dip switch
https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/readme.html
But it still does not connect to the internet
On the terminal it shows
Hard resetting via rts pin
Nothing is visible on serial monitor or arduino IDE
Thanks in advance
There are some switch to control connection between USB, Atmega and ESP8266/Wifi
pin 1 and 2 on : Atmega connect to ESP8266 there is not connection to USB/Computer
pin 3 and 4 on : USB/Computer connect to Atmega, so you can upload a skecth
pin 5 and 6 on : USB/Computer connect to ESP8266/Wifi
make sure you have been setup this switch correctly depend on your need.
I am using Android Things preview 6 image on Raspberry Pi3. Now I have application that can connect to HC-05 when running on Android Phone but same application not able to connect to HC-05 when it is running on Raspberry Pi3 with Android Things.
I can see HC-05 is classic bluetooth device and Wondering as Android things not give popup to enter passkey is making the problem to connect the HC-05 or is there something I am missing
I am getting below error
ConnectThread run: IO Exceptionjava.io.IOException: read failed, socket might closed or timeout, read ret: -1
D/BluetoothSocket: close() this: android.bluetooth.BluetoothSocket#ea69040, channel: -1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream#e5f1b79, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream#173c0bemSocket: android.net.LocalSocket#3f7251f impl:android.net.LocalSocketImpl#284706c fd:java.io.FileDescriptor#c2cf635, mSocketState: INIT
D/BluetoothSocket: close() this: android.bluetooth.BluetoothSocket#4272aca, channel: -1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream#5f2f43b, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream#f7e2758mSocket: android.net.LocalSocket#ec3c0b1 impl:android.net.LocalSocketImpl#7f52996 fd:java.io.FileDescriptor#6129917, mSocketState: INIT
The problem with my HC-05 that it needs pin to pair with Android Things App and as Android Things dont have luxury of user interface we have to set the pin programmatically through app
After few mints of searching I found answer of how to set pairing pin through program from this post programmatically-pairing-with-a-ble-device-on-android-4-4 and it is working perfectly for me. no need to change anything in my app accept added broadcast receiver
Thanks
I am curently looking to find out wheter it is possible to Bluetooth connect an arduino or similar micro controller to the pebble watch using the RN-42 Sparkfun RN-42 adapter
I currently am having difficulty connecting to the pebble, as the board just times out.
Thanks
The RN-42 can, using bluetooth. The following will get you paired, and the watch MAY accept a ping:
SF,1 //factory reset
SP,9999 //takes care of the pairing code
SM,6 //pairing
SA,4
SY,0000 //power
SW,0640 //sniff mode
R,1 //reset so settings are saved/active and pebble should ask to connect
To pass app messages you need to pass some information to the watch, see http://dexwatch.blogspot.com/2015/12/more-on-pebble.html for the full details.