Go to advanced search

by Douglas6
Wed Apr 25, 2018 3:15 pm
Forum: Advanced users
Topic: bluetooth fanout
Replies: 4
Views: 112

Re: bluetooth fanout

I really can't think of any reason you couldn't do this. Master/slave has nothing to do with it; the Pi of course can act as both. The main drawback, I think would be unusable latency, if you're talking about movies or video. I would begin with Raspbian Stretch, and get familiar with BlueALSA. There...
by Douglas6
Mon Apr 23, 2018 11:24 pm
Forum: Troubleshooting
Topic: SOLVED Serial read from a bluethooth (rfcomm) connection
Replies: 21
Views: 444

Re: SOLVED Serial read from a bluethooth (rfcomm) connection

I'd be interested in knowing why you think the 'hciconfig 0 piscan' command is needed, especially if the devices are already paired. What that does is to put the Pi into discoverable mode, permanently, which is surely a bad security decision. I don't recommend it. I saw another recent post include i...
by Douglas6
Sat Apr 21, 2018 11:12 pm
Forum: Troubleshooting
Topic: import OBD error
Replies: 5
Views: 132

Re: import OBD error

You may also experience problems with the lack of SPP on newer releases of Raspbian. If so, see if this helps: viewtopic.php?p=947185#p947185
by Douglas6
Sat Apr 21, 2018 1:38 pm
Forum: Troubleshooting
Topic: import OBD error
Replies: 5
Views: 132

Re: import OBD error

If you successfully installed obd with pip, it won't be available for Python3. Try 'pip3 install obd' if you're using Python3.
by Douglas6
Fri Apr 20, 2018 3:43 pm
Forum: Python
Topic: PyBluez and continuous data transfer
Replies: 2
Views: 74

Re: PyBluez and continuous data transfer

Put a 'while True:' loop around the 'sock.send()' function?
by Douglas6
Thu Apr 19, 2018 10:29 pm
Forum: Off topic discussion
Topic: Multimeter calibration
Replies: 5
Views: 601

Re: Multimeter calibration

And, of course, make sure the batteries are fresh.
by Douglas6
Thu Apr 19, 2018 7:38 pm
Forum: Python
Topic: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center
Replies: 17
Views: 223

Re: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center

OK, it appears you have successfully connected the two devices. From this point it must be a problem in the code in either the Pi or Arduino sides. Can you add some print statements on the Arduino to see if it receiving data?
by Douglas6
Thu Apr 19, 2018 7:27 pm
Forum: Python
Topic: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center
Replies: 17
Views: 223

Re: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center

OK, so you ARE running rfcomm. That must continue running in it's own window while your program runs. If the result of the 'rfcomm connect' gives an error, try un-pairing and re-pairing the devices, now that you have SPP running.
by Douglas6
Thu Apr 19, 2018 7:21 pm
Forum: Python
Topic: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center
Replies: 17
Views: 223

Re: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center

OK, assuming you are paired OK. In a separate terminal window, open bluetoothctl. It should list the Bluetooth device address of your HC-06. If not try the 'paired-devices' command. Copy the device address. Then exit out of bluetoothctl, and enter sudo rfcomm connect 0 <bdaddr> Replace <bdaddr> with...
by Douglas6
Thu Apr 19, 2018 6:59 pm
Forum: Python
Topic: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center
Replies: 17
Views: 223

Re: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center

I'm not familiar with that book, but I would think it would mention SPP and rfcomm, since they are required for any Bluetooth serial communications project. It may be that, many years ago, these features were enabled by default (I don't recall), but with newer distributions of Raspbian, they must be...
by Douglas6
Thu Apr 19, 2018 3:03 pm
Forum: Python
Topic: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center
Replies: 17
Views: 223

Re: Simon Monk's Maker's Guide to the Zombie Apocalypse...problems with bluetooth control center

I'm assuming you have the HC-06 connected to an Arduino, and you are using the onboard Bluetooth on the Pi.
1. Have you added the SPP on the Pi?
2. Are you running rfcomm in a different process from your Python script on the Pi?
by Douglas6
Tue Apr 17, 2018 7:51 pm
Forum: Troubleshooting
Topic: Problem connecting two BT devices to a Pi3
Replies: 3
Views: 108

Re: Problem connecting two BT devices to a Pi3

That's interesting. I would have thought it would be '0' and '1'. Those BlueZ rascals. Although if rfcomm can't determine a valid device number, it defaults to hci0, so maybe '1' and '2' ends up being hci1 and hci0?
by Douglas6
Tue Apr 17, 2018 7:25 pm
Forum: Troubleshooting
Topic: Minicom not available on Stretch
Replies: 1
Views: 55

Re: Minicom not available on Stretch

Code: Select all

sudo apt-get update
sudo apt-get install minicom
by Douglas6
Tue Apr 17, 2018 6:42 pm
Forum: Troubleshooting
Topic: Problem connecting two BT devices to a Pi3
Replies: 3
Views: 108

Re: Problem connecting two BT devices to a Pi3

What error are you getting? You could try

Code: Select all

sudo rfcomm connect 1 XX:XX:XX:XX:XX:XX
by Douglas6
Mon Apr 16, 2018 11:27 pm
Forum: General discussion
Topic: what the differeance between these os?
Replies: 7
Views: 384

Re: what the differeance between these os?

ShiftPlusOne wrote:
Mon Apr 16, 2018 5:06 pm
mostafa salah wrote:
Mon Apr 16, 2018 5:05 pm
Screenshot from 2018-04-16 18-58-44.png

What will i lose if i use the lite version ?
The Desktop/GUI.
A number of other things as well. Use the full version until you are comfortable with Raspbian. It really doesn't hurt.
by Douglas6
Mon Apr 16, 2018 10:37 pm
Forum: Troubleshooting
Topic: SOLVED Serial read from a bluethooth (rfcomm) connection
Replies: 21
Views: 444

Re: Serial read from a bluethooth (rfcomm) connection

A few points to clear up confusion. For two devices to communicate via SPP (that's Serial Port Profile, the Bluetooth implementation of the serial protocol), they must both be running SPP. There is only one SPP. 'Sdptool browse <bdaddr>' will show discovered profiles running on a remote device; 'sdp...
by Douglas6
Sun Apr 15, 2018 6:20 pm
Forum: Troubleshooting
Topic: i can't find blutetooth configuration file
Replies: 1
Views: 46

Re: i can't find blutetooth configuration file

Is BlueZ included in the Lite distribution? Maybe not. With BlueZ installed, it should be there. Here's mine: sudo cat /var/lib/bluetooth/B8\:27\:EB\:32\:7A\:73/config name raspberry-3B You'll need sudo, and don't forget to escape the colons. That tutorial seems to be rather old. The config file isn...
by Douglas6
Sun Apr 15, 2018 9:41 am
Forum: Troubleshooting
Topic: SOLVED Serial read from a bluethooth (rfcomm) connection
Replies: 21
Views: 444

Re: Serial read from a bluethooth (rfcomm) connection

Rfcomm creates a virtual serial device (/dev/rfcommx) indistinguishable from a hardware serial device. This has always been the case. There is no 'Bluetooth serial protocol', and no 'protocol question'. It's simply that a serial device is not exactly like a file.
by Douglas6
Sun Apr 15, 2018 9:28 am
Forum: Beginners
Topic: Bluetooth Connection Failed - Pi 3
Replies: 4
Views: 115

Re: Bluetooth Connection Failed - Pi 3

Connecting to what? And for what purpose; streaming audio (from? To?), HID, file transfer, networking, serial communication, BLE?
by Douglas6
Sat Apr 14, 2018 11:01 pm
Forum: Troubleshooting
Topic: SOLVED Serial read from a bluethooth (rfcomm) connection
Replies: 21
Views: 444

Re: Serial read from a bluethooth (rfcomm) connection

Yeah, I really don't know Perl. My guess is that by treating the Serial device as a file system file, it won't consume contents. You wouldn't want a file reading program to destroy the file it is reading. I have no idea what '<$in_fid>' does. A quick Google search suggests that the Device::SerialPor...
by Douglas6
Fri Apr 13, 2018 9:40 pm
Forum: Troubleshooting
Topic: SOLVED Serial read from a bluethooth (rfcomm) connection
Replies: 21
Views: 444

Re: Serial read from a bluethooth (rfcomm) connection

Sorry, I know nothing of Perl. PySerial's read() function definitely does consume the read data from the buffer.
by Douglas6
Fri Apr 13, 2018 2:38 pm
Forum: Troubleshooting
Topic: SOLVED Serial read from a bluethooth (rfcomm) connection
Replies: 21
Views: 444

Re: Serial read from a bluethooth (rfcomm) connection

What are you using to read the data? I've never had a problem with minicom or picocom, or using the PySerial library in Python.
by Douglas6
Fri Apr 13, 2018 2:23 pm
Forum: General discussion
Topic: Raspberry Pi3 Bluetooth
Replies: 2
Views: 82

Re: Raspberry Pi3 Bluetooth

Bluetooth, by definition, supports both transmit and receive capabilities.

Go to advanced search