Go to advanced search

by Douglas6
Wed Jul 04, 2018 11:47 pm
Forum: Networking and servers
Topic: [Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3
Replies: 14
Views: 329

Re: Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3

I'm a little confused. You seem to be running the 'server code' on the Pi, but your 'server error' is clearly a Windows error.

Can't help much with Windows code. One guess is that you've installed a Linux-compiled Python library on the Windows PC. And why not use the standard PyBluez fork?
by Douglas6
Tue Jul 03, 2018 7:11 pm
Forum: Networking and servers
Topic: [Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3
Replies: 14
Views: 329

Re: Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3

Yes and yes. On my Pi3, both the Bluetooth device address and WiFi MAC address begin with B8:27:EB, which an online lookup tells me is registered to the Raspberry Pi Foundation. To be honest, the difference between Bluetooth device addresses (BD_ADDR or bdaddr) and MAC addresses may be just conventi...
by Douglas6
Tue Jul 03, 2018 4:11 pm
Forum: Networking and servers
Topic: [Solved] Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3
Replies: 14
Views: 329

Re: Send/Receive a byte frame with Bluetooth between PC and Raspberry PI 3

Good call on the 'MAC' address! Strictly speaking, it's not a MAC address either, it's a 'Bluetooth device address', but that is raising pedantry to an unnecessary level.
by Douglas6
Tue Jul 03, 2018 4:02 pm
Forum: Troubleshooting
Topic: Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)
Replies: 5
Views: 147

Re: Raspberry PI3 Bluetooth COM Port (rfcomm.conf file does not exist)

I am not sure if the rfcomm.conf is used anymore. Whether it exists has no effect on whether SPP is running or not. What does sudo

Code: Select all

sdptool browse local 
tell you?
What device are you trying to connect to, and how are you trying to connect? Of course, the devices must be paired and trusted first.
by Douglas6
Mon Jul 02, 2018 4:36 pm
Forum: General discussion
Topic: How to connect Bluetooth
Replies: 1
Views: 61

Re: How to connect Bluetooth

Most importantly, probably, is a much more detailed explanation of "does not go well". Are you getting error messages? What are you expecting, and what are you receiving? After having added the SPP, what is the result of

Code: Select all

sudo sdptool browse local 
Try removing and re-pairing the device.
by Douglas6
Mon Jun 25, 2018 4:44 pm
Forum: Français
Topic: Problème bluetooth
Replies: 3
Views: 130

Re: Problème bluetooth

With the most recent version of Stretch Raspbian, PulseAudio is no longer used for Bluetooth audio streaming. From what I've read on this forum, installing PulseAudio on Stretch WILL break things.
by Douglas6
Mon Jun 25, 2018 4:13 pm
Forum: Beginners
Topic: Reading response from BLE device on rpi3
Replies: 12
Views: 322

Re: Reading response from BLE device on rpi3

I am not familiar with the BLE device in question, so please take my comments as, well, comments. Some BLE devices (in particular HM-10 style serial devices) communicate not by responding to characteristic read requests, but by sending notifications (if you are unfamiliar with these BLE concepts, pl...
by Douglas6
Tue May 22, 2018 11:52 pm
Forum: Beginners
Topic: Install Phyton?
Replies: 4
Views: 231

Re: Install Phyton?

Phyton is the Suel god of Nature, Beauty, and Farming.
Well, I guess that would explain it. A specialized agricultural protocol. I didn't realize so many people were interested in cultivation.
by Douglas6
Tue May 22, 2018 11:17 pm
Forum: Beginners
Topic: Install Phyton?
Replies: 4
Views: 231

Install Phyton?

I have often seen Phyton mentioned on this forum as a potentially brand new and well-established programming alternative. Can somebody explain to me, how to install Phyton?
by Douglas6
Tue May 22, 2018 8:10 pm
Forum: Troubleshooting
Topic: Bluetooth on newly installed Pi 3 (Raspbian Stretch) not working
Replies: 1
Views: 100

Re: Bluetooth on newly installed Pi 3 (Raspbian Stretch) not working

Did you right-click on the audio icon, and select your Bluetooth speaker?
by Douglas6
Mon May 21, 2018 11:44 am
Forum: Beginners
Topic: Bluetooth: messaging between android/iphone and raspberry pi 3 model b
Replies: 2
Views: 109

Re: Bluetooth: messaging between android/iphone and raspberry pi 3 model b

It sounds like what you want to do is possible, although your description is sketchy. You can install the BlueZ tools utilities, and modify simple-agent to act as a pairing agent. You can make the Pi permanently discoverable by any device, although that is, of course, not recommended. You can then t...
by Douglas6
Mon May 21, 2018 12:15 am
Forum: Troubleshooting
Topic: Unable to connect to BLE device
Replies: 10
Views: 687

Re: Unable to connect to BLE device

Well, I would try removing the "random" bit, just to be sure. I would also double-check the primary services of the board, to see if the same service (UUID) is also available on the new board.
by Douglas6
Sun May 20, 2018 6:16 pm
Forum: Troubleshooting
Topic: Unable to connect to BLE device
Replies: 10
Views: 687

Re: Unable to connect to BLE device

You had mentioned previously that you were able to write to the relay board's characteristic. What has changed since then? The board appears to have two interfaces; a BLE one (0B) and a classic (BR/EDR) one (0E). You would use totally different techniques on each to communicate. Since you are having...
by Douglas6
Sat May 19, 2018 11:47 pm
Forum: Troubleshooting
Topic: Python BLE script doesnt work
Replies: 7
Views: 184

Re: Python BLE script doesnt work

That's the great thing about being a maker; you can do things just the way you want.
by Douglas6
Sat May 19, 2018 8:55 pm
Forum: Troubleshooting
Topic: Python BLE script doesnt work
Replies: 7
Views: 184

Re: Python BLE script doesnt work

Well, you wouldn't open a file, write 'h', close the file, open it again, append 'e', close the file, open it again, append 'l', close the file, open it again, append 'l', close the file, open it again, append 'o', close the file, open it again, append a space, close the file, open it again, append ...
by Douglas6
Sat May 19, 2018 7:57 pm
Forum: Troubleshooting
Topic: Python BLE script doesnt work
Replies: 7
Views: 184

Re: Python BLE script doesnt work

That's another way to go. Not the right way, but another way.
by Douglas6
Sat May 19, 2018 7:55 pm
Forum: Troubleshooting
Topic: Python BLE script doesnt work
Replies: 7
Views: 184

Re: Python BLE script doesnt work

Yes, the disconnect should be done once, and the last thing you do before exiting the script.
by Douglas6
Fri May 18, 2018 9:55 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 773

Re: Is bluetooth on rpi3 compatible with BLE hm10 modules?

Again, on the Pi side, there is no serial0 or any other serial device involved. The HM-10 style device will send notifications that the Pi's BLE device can read. There is some sample code further down in that thread which I originally linked to. Basically you need to attach a 'delegate' call-back fu...
by Douglas6
Wed May 16, 2018 2:32 am
Forum: Beginners
Topic: How to connect bluetooth headset?
Replies: 8
Views: 269

Re: How to connect bluetooth headset?

No, I just hang out on this forum. I am, however, insanely available.
by Douglas6
Wed May 16, 2018 2:10 am
Forum: Beginners
Topic: How to connect bluetooth headset?
Replies: 8
Views: 269

Re: How to connect bluetooth headset?

Aplay doesn't do mp3 files. You could try mpg321 or something else. I think you'll need to set BlueALSA as the default ALSA device. Omxplayer requires you to use the '-o alsa' option, but you'll need to set BlueALSA as the default device. There are instructions for that on the BlueALSA web page. Kod...
by Douglas6
Wed May 16, 2018 1:35 am
Forum: Beginners
Topic: How to connect bluetooth headset?
Replies: 8
Views: 269

Re: How to connect bluetooth headset?

There isn't much out there for using Bluetooth audio streaming from the command line. Basically, install BlueALSA, pair (once) and connect using bluetoothctl, and hopefully your headset will auto-connect subsequently.

Post here if you have questions.
by Douglas6
Wed May 16, 2018 1:08 am
Forum: Beginners
Topic: How to connect bluetooth headset?
Replies: 8
Views: 269

Re: How to connect bluetooth headset?

PulseAudio was used by previous versions of Raspbian, but was never pre-installed. The current recommended approach uses BlueALSA, but that is not included in the Lite version, I believe. So install BlueALSA, and find a recent tutorial for using Bluetooth audio streaming on a Pi. Note that you can u...
by Douglas6
Wed May 16, 2018 12:29 am
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 773

Re: Is bluetooth on rpi3 compatible with BLE hm10 modules?

OK, so what is 'sort of'? Sounds like a rousing success to me.
by Douglas6
Tue May 15, 2018 11:26 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 773

Re: Is bluetooth on rpi3 compatible with BLE hm10 modules?

I'm wondering if the blue LED indicates a comm error, perhaps caused by an extraneous line-feed character? Do you have a link for the device?

I suspect the red LED will stop blinking (briefly) if you put a sleep of several seconds in the script after the Peripheral line.
by Douglas6
Tue May 15, 2018 11:15 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 773

Re: Is bluetooth on rpi3 compatible with BLE hm10 modules?

Ah, OK, that was it. Now we're running into Python2/3 problems. Bluepy in Python 2 takes a string instead of bytes, so use
'c.write("e\n")' or 'c.write("e")'.

Go to advanced search