Go to advanced search

by Douglas6
Tue May 22, 2018 11:52 pm
Forum: Beginners
Topic: Install Phyton?
Replies: 4
Views: 204

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: 204

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: 86

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: 94

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: 577

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: 577

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: 163

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: 163

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: 163

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: 163

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: 639

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: 211

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: 211

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: 211

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: 211

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: 639

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: 639

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: 639

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")'.
by Douglas6
Tue May 15, 2018 10:55 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 639

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

Try this. Replace the current line with:

Code: Select all

p = btle.Peripheral("00:0E:0B:0F:0F:B9", "random") 
Since the board appears to be BLE /classic, we may have to try the classic side if we can't figure this out.
by Douglas6
Tue May 15, 2018 10:32 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 639

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

Also, I don't have that enable_uart=1 flag. Never needed it and I'm not entirely sure what it does. Try without it.
by Douglas6
Tue May 15, 2018 10:23 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 639

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

Make sure the phone is not connected while testing on the Pi. It appears to be hanging (or was) on the p = btle.Peripheral("00:0E:0B:0F:0F:B9") line, which is odd that it doesn't report an error. I'm not sure why it would do that. That code was written for Python3, that could be a difference, tho I ...
by Douglas6
Tue May 15, 2018 10:08 pm
Forum: General discussion
Topic: Pi 3 Serial Issues
Replies: 26
Views: 36700

Re: Pi 3 Serial Issues

Dgordon42, thanks for all your help. I'm working with marciokoko in another thread.
by Douglas6
Tue May 15, 2018 10:05 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 639

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

Try it without connecting in bluetoothctl (do nothing in bluetoothctl.) It"s not necessary, and may be interfering. You might want to reboot first to clean things up.
by Douglas6
Tue May 15, 2018 9:11 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 639

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

Yup. And a couple of minutes of Google search for the others. build-essential you may already have.
by Douglas6
Tue May 15, 2018 6:50 pm
Forum: Beginners
Topic: Is bluetooth on rpi3 compatible with BLE hm10 modules?
Replies: 31
Views: 639

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

Try running this first:

Code: Select all

sudo apt-get install build-essential libglib2.0-dev libdbus-1-dev

Go to advanced search