Go to advanced search

by Douglas6
Thu Nov 23, 2017 2:51 pm
Forum: Add-ons
Topic: RPie3 audio speakers with monito without audio
Replies: 1
Views: 26

Re: RPie3 audio speakers with monito without audio

Yes, that should work. If you have problems, I believe you can force audio to the onboard jack with raspi-config.
by Douglas6
Thu Nov 23, 2017 2:44 pm
Forum: General discussion
Topic: Is there any possible to implement Bluetooth Mesh Network in Raspberry Pi?
Replies: 1
Views: 48

Re: Is there any possible to implement Bluetooth Mesh Network in Raspberry Pi?

Hardware support for Bluetooth mesh networks isn't available until Bluetooth 5.0, and there's little or no support for 5.0 in Debian/Raspbian. You'd need to write the infrastructure yourself, a pretty daunting task I'm thinking.


(Happy 4k to me)
by Douglas6
Thu Nov 23, 2017 3:39 am
Forum: Advanced users
Topic: Generating Sounds
Replies: 4
Views: 115

Re: Generating Sounds

A certain percentage of those 22 readings are robots. Another percentage are people that have no experience producing sound on a Linux computer. It is something of a niche interest. Give it a little more time than 6 or 7 hours, and you may yet get a substantive response.
by Douglas6
Wed Nov 22, 2017 3:02 pm
Forum: Graphics, sound and multimedia
Topic: Several problems with my project
Replies: 2
Views: 70

Re: Several problems with my project

- Everytime the Pi starts, I am prompted to accept the bluetooth connection to the footswitch. This is not normal. What footswitch? Is there software running on the Pi, or is it an HID device? In bluetoothctl, what does 'info <bdaddr>' show (where <bdaddr> is the Bluetooth device address of the swi...
by Douglas6
Tue Nov 21, 2017 8:18 pm
Forum: General discussion
Topic: Raspberry pi 2 Bluetooth
Replies: 3
Views: 130

Re: Raspberry pi 2 Bluetooth

Spend about $10 and get a brand name (4.x) dongle. The super-cheap Asian knock-offs can be problematic.
by Douglas6
Mon Nov 20, 2017 2:23 am
Forum: General discussion
Topic: pi 3 Bluetooth Controller
Replies: 2
Views: 119

Re: pi 3 Bluetooth Controller

run lsusb > usb.txt in a Terminal and post the results. You would then have that file in the Home/(username) folder, then attach it or paste output to a new post. Um, it's a Bluetooth device. Not a USB device. lsusb is completely inappropriate. It sounds to me that the OS cannot find your local Blu...
by Douglas6
Sun Nov 19, 2017 2:46 pm
Forum: General discussion
Topic: BLE communication between Arduino and Pi 3
Replies: 1
Views: 97

Re: BLE communication between Arduino and Pi 3

Lot's of ways to do that, depending on the hardware attached to the Arduino and the Pi. Easiest way is to use BLE serial modules, like the HM-10 or HC-08 on both ends. Then program with classic serial communications software.
by Douglas6
Thu Nov 16, 2017 11:48 pm
Forum: Graphics, sound and multimedia
Topic: Is There Screenshot software for Raspbian [NOT SCROT]
Replies: 4
Views: 166

Re: Is There Screenshot software for Raspbian [NOT SCROT]

Sounds like a job for a post-processing tool (as klricks said). I can't stand gimp (I was raised on Photoshop), but it is very capable and freely available on the Raspberry Pi.
by Douglas6
Wed Nov 15, 2017 11:16 pm
Forum: Python
Topic: how to convert an integer to byte(s) in python?
Replies: 11
Views: 356

Re: how to convert an integer to byte(s) in python?

I believe you can also covert an integer (<256) to single byte (well, a character) with 'chr(int)'.
by Douglas6
Wed Nov 15, 2017 10:00 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi bluetooth Automation
Replies: 10
Views: 608

Re: Raspberry Pi bluetooth Automation

I must admit to being confused by your experiences. Your first post mentioned connecting to these (still unspecified) devices, and 'playing some test tones', which led me to think they were A2DP (audio) devices. Now it seems that trying to connect via SPP (serial communications) makes a difference. ...
by Douglas6
Wed Nov 15, 2017 5:36 pm
Forum: General discussion
Topic: 'official' way to play .wav file?
Replies: 9
Views: 375

Re: 'official' way to play .wav file?

aplay
!
by Douglas6
Tue Nov 14, 2017 8:47 pm
Forum: General discussion
Topic: Raspberry PI fails to connect to Bluetooth LE device thru Python script
Replies: 9
Views: 212

Re: Raspberry PI fails to connect to Bluetooth LE device thru Python script

If you're having trouble with pexpect and gatttool, you might try a Python wrapper for gatttool, such as pygatt.

I don't believe the Bluetooth 4.2 spec allows for multiple simultaneous connections. I believe you will need to connect to multiple devices sequentially.
by Douglas6
Tue Nov 14, 2017 8:07 pm
Forum: General discussion
Topic: Raspberry PI fails to connect to Bluetooth LE device thru Python script
Replies: 9
Views: 212

Re: Raspberry PI fails to connect to Bluetooth LE device thru Python script

This works for me using my TI SensorTag (which does not use a random address type): import pexpect BDADDR = "34:B1:F7:D5:16:5E" child = pexpect.spawn("sudo gatttool -b " + BDADDR + " --interactive") child.expect("\[LE\]>") print("Spawned gatttool") child.sendline("connect") child.expect("Connection ...
by Douglas6
Tue Nov 14, 2017 6:27 pm
Forum: General discussion
Topic: Raspberry PI fails to connect to Bluetooth LE device thru Python script
Replies: 9
Views: 212

Re: Raspberry PI fails to connect to Bluetooth LE device thru Python script

I'm pretty sure that

Code: Select all

child.sendline('\[CON\].*>')
should be something like

Code: Select all

child.expect('\[CON\].*>')
I don't recall off hand the regex syntax that pexpect uses. Or, for that matter, what gatttool is sending. I'll try and play with my TI SensorTag today.
by Douglas6
Tue Nov 14, 2017 2:10 pm
Forum: General discussion
Topic: Raspberry PI fails to connect to Bluetooth LE device thru Python script
Replies: 9
Views: 212

Re: Raspberry PI fails to connect to Bluetooth LE device thru Python script

I'll try to play around with this (there's some odd stuff you seem to be trying to write to gatttool), but most obviously, you are not using the address type flag (-t random) in the Python code, which would prevent you from connecting. If there are typos in the Python code you posted, please correct...
by Douglas6
Tue Nov 14, 2017 2:02 pm
Forum: Troubleshooting
Topic: Bluetooth keyboard no longer able to type after 10 seconds of inactivity
Replies: 1
Views: 38

Re: Bluetooth keyboard no longer able to type after 10 seconds of inactivity

My only suggestion is to do

Code: Select all

sudo apt-get update
sudo apt-get upgrade
There have been some improvements made recently to the Bluetooth firmware and BlueZ stack.
by Douglas6
Sun Nov 12, 2017 10:34 pm
Forum: General discussion
Topic: Proximity fob
Replies: 3
Views: 145

Re: Proximity fob

Bluetooth BLE fobs (or tags), similar to the one you linked to are very popular these days. Choose one that can be configured as a beacon. If it were me, I'd look for one with a replaceable battery. You'd need to do some BLE programming on the Pi to scan for them, but it's not difficult. I'm not sur...
by Douglas6
Fri Nov 10, 2017 11:36 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi bluetooth Automation
Replies: 10
Views: 608

Re: Raspberry Pi bluetooth Automation

Sorry, stupid question, although It's happened before. I really can't think of any reason a 'scan on' command would have any effect on connecting. Unless it just takes some time for the remote device to start accepting connections. What kind of device is it? What are the results of an 'info <bdaddr>...
by Douglas6
Fri Nov 10, 2017 11:28 pm
Forum: Off topic discussion
Topic: What I expect from new RPi. This would be great!
Replies: 5
Views: 473

Re: What I expect from new RPi. This would be great!

It"s possible. End of discussion.
by Douglas6
Fri Nov 10, 2017 6:55 pm
Forum: General discussion
Topic: Python Bluetooth Programming on Raspberry Pi 3
Replies: 1
Views: 98

Re: Python Bluetooth Programming on Raspberry Pi 3

What tutorial is that?
by Douglas6
Thu Nov 09, 2017 6:48 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi bluetooth Automation
Replies: 10
Views: 608

Re: Raspberry Pi bluetooth Automation

You did replace '<bdaddr>' with the actual Bluetooth device address of the device you're trying to connect to, right?
by Douglas6
Thu Nov 09, 2017 1:37 pm
Forum: Python
Topic: Write to BLE Charactristic
Replies: 3
Views: 212

Re: Write to BLE Charactristic

The code I linked to is for writing to a characteristic (as in the subject of your post), though it could be used for reading as well. I've since posted code for reading notifications: viewtopic.php?f=28&t=193923#p1232385
by Douglas6
Thu Nov 09, 2017 12:35 am
Forum: Troubleshooting
Topic: HC-08 module - Can't connect RFCOMM Socket : Host is down
Replies: 9
Views: 491

Re: HC-08 module - Can't connect RFCOMM Socket : Host is down

OK, I know this is disreputably late, but I finally got around to writing some Python 3 code for reading from an HM-10 / HC-08 (connected to an Arduino). Tested with an HM-10. import bluepy.btle as btle class ReadDelegate(btle.DefaultDelegate): def handleNotification(self, cHandle, data): print(data...
by Douglas6
Wed Nov 08, 2017 7:02 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi Bluetooth camera
Replies: 3
Views: 282

Re: Raspberry Pi Bluetooth camera

There does exist a Bluetooth Network Access Profile (NAP), although I haven't played with it in years. You won't find a lot about it on the web. You might want to start with the BlueZ test-network script: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-network. Using WiFi will be m...

Go to advanced search