thank god I found you. I was stuck in bluetooth communication in my term project since I had no experience on it. I was about to lose my hope but then god sent you to me. Thank you so much sir. This video will save thousands of lives
Hi there ! 😊 Thanks for this great video ! I have a project on which I receive serial data from a DHT11 sensor via an Arduino uno connected to my Raspberry Pi 3. The data is a simple string I obtain trough the Serial.println function on the Arduino program. I need my Raspberry Pi 3 to send that data to my android smartphone via Bluetooth the way you did in this video, *except* it has to be continuous (well, at the very least a few times per second, since I need to plot the evolution of temperature or humidity over time on my Android device). How would you recommend I should proceed please? Will I need a python script for that ? (I am totally new to both raspberry and python, but I can try to work something out). Thanks !!
I would recommend : start by defining a packet size for your data. for example: you can use a two byte packet and use one of the packets for indicating temperature/humidity, the second packet can be used for the value of the parameter you are measuring with Arduino. A byte can store 256 values, if you need to send higher than 256 values then you need to add additional packets in your data exchange. In future iterations, you can also add a checksum byte to ensure data quality.
I have problems setting up the file at the beginning. So in open the file in the terminal and then type the 2 lines in there, right? now I reboot my Pi and nothing changed. Or what du I have to do?
I have not played with Jetson Nano but I may acquire one after reading your comments. What are you planning on using Jetson Nano for? I checked Jetson Nano Nvidia link and found that it supports M.2 Key E connectivity. You will need an additional bluetooth card of M.2 Key E type, if you plan on interacting with Jetson Nano over bluetooth.
@@mandaltechtv5734 yes, actually I have wifi and bluetooth adapter installed. I believe it is of intel which is also shown in Jetson hacks channel. My requirement at the moment is, I need to configure wifi through the flutter app which I'm currently working on over bluetooth. Till now I have been searching how to achieve this and found out that, serial port communication can be done to get the wifi ssid and PWD over bluetooth serial. Once I get the details then, I believe there is some python progs to configure wifi. Any suggestions is highly appreciated sir. Thanks in advance 😀
@@mandaltechtv5734 sir, i actually tried this on my ubuntu laptop and it worked perfectly fine. i am yet to receive my jetson module.. since jetson also runs ubuntu 18.04, will it work the same in that too ??
Obrigado!!! Parabéns por compartilhar o seu conhecimento conosco!!! Funcionou perfeitamente!!! Agora estarei complementando este conhecimento em meu trabalho!!!!
Well if anybody has the same question i used TeraTerm but i was missing to assign a COM port to the Raspberry Pi in Windows device properties under service Tab
How would you write this in thonny python? i got the phone to connect and for the raspberry pi to receive input from phone but i cant get it to go the other way, like send a message from raspberry pi to bluetoooth app
Hello sir, while connecting it to the raspberry pi 4 B it is showing some error as serial bluetooth connection failed:read failed,socket might closed or timeout,read ret:-1. How to fix it .And Is it possible to read the dht22 sensor readings and transfer it from the raspberry pi 4 B using the app
i have this Problem: File "Weitermachen.py", line 33, in server_socket.bind(("",port)) #Auf Port binden und warten File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 178, in bind return self._sock.bind (addrport) _bluetooth.error: (98, 'Address already in use')
@@mandaltechtv5734 Okey thank you for the answer, but what do I have to do? Is this even possible with the raspberry pi? Do I have to edit the /etc/systemd/system/dbus-org.bluez.service file?
@@GamerXD7 At 5:57 minute of the video try: sudo rfcomm watch hci0 3 for the second connection. rfcomm watch will take an optional parameter to specify the channel, which will default to '1'
Using this method, can I run any python script that I have? I am trying to find a way to send to an android the results of a python script in the Raspberry Pi4 that I made that uses the OpenCV lib
Every time i try to connect with the terminal i get a connection failed socket might be closed or timeout? Ive tried hciconfig hci0 up and used the rfkill list but nothing works?
@@sumantamandal3762 I have the same issue, I'm using raspberry pi4 Model B and I get "Connection failed: read failed, socket might closed or timeout, read red: -1" in the bluetooth terminal on my phone
@@sumantamandal3762 i did that and got connected to my pc, but then how to send data from Rpi? In the same script after os.system..... i tried writing: ser = serial.Serial('/dev/rfcomm0') ser.write(b'Hello PC') But i get the following error can't bind rfcomm socket address already in use
@@mandaltechtv5734 thanks for your fast reply, now i don't have the error but don't get the Hello message on my PC, just successful connection msg, any suggestion?