Go to advanced search

by Douglas6
Mon Jul 29, 2019 11:32 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

Ok, thank you for that. I was just trying to do exactly that, but I'm having major problems with my home network. So, I'm quite embarrassed to admit this, but I recently discovered that I had a Bluetooth dongle plugged into my Pi, and all my testing was done over the dongle rather than the on-board ...
by Douglas6
Mon Jul 29, 2019 10:34 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

I just noticed something odd. I've never changed the sspmode, as you did. In fact, when I tried, i couldn't: [s]pi@raspberrypi:~ $ sudo hciconfig hci0 sspmode 0 Can't set Simple Pairing mode on hci0: Input/output error (5)[/s] So, there's another odd difference. Could you try setting sspmode back t...
by Douglas6
Mon Jul 29, 2019 9:46 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

I can't see how the processor would make a difference. I frankly expect the Zero to give me the same results as the 3B, but there's only one way to know.
by Douglas6
Mon Jul 29, 2019 9:24 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

Um, I guess I don't own a Pi0W (just a Pi0). I've put one on order, and I'll give it a run-thru when it arrives, by the weekend.
by Douglas6
Mon Jul 29, 2019 5:46 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

Ok. It sounds like the only difference is the Pi0W vs. the Pi3B. I'll try and dig up my Zero and test on that.
by Douglas6
Mon Jul 29, 2019 4:09 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

After installing bluez-test-scripts, the simple-agent script should be found in /usr/share/doc/bluez-test-scripts/examples/. You'll need to gunzip it. Could you try running that script, with Python and not Python3?
by Douglas6
Sun Jul 28, 2019 7:15 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

Yes, that is how I installed the simple-agent script. Remember if are running Stretch and upgraded to BlueZ 5.50, the scripts may no longer match.

I should have pointed out that I'm running on a Pi3B, although I can't think what difference that may make.
by Douglas6
Sun Jul 28, 2019 6:59 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

Ok, here's what I did. Since I'm running Buster, I started out with BlueZ 5.50. Then I installed the bluez-test-scripts and gunzipped simple-agent. I made the following change: def RequestPinCode(self, device): print("RequestPinCode (%s)" % (device)) set_trusted(device) # return ask("Enter PIN Code:...
by Douglas6
Sun Jul 28, 2019 2:49 am
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

Ah. Ok. You have no problem with simple-agent being 'disabled' or not working, regardless of the BlueZ version, you simply can't modify it to do what you want. I'll spend a little time on it tomorrow, although your specification leaves something to be desired.
by Douglas6
Sat Jul 27, 2019 2:06 am
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

Ok, I finally got around to running Buster (which includes BlueZ 5.50). I installed bluez-test-scripts, and gunzipped and ran simple-agent. It seems to perform as expected. I didn't try your code, which seems to be a modified version of something. I'd be interested in knowing why you think simple-ag...
by Douglas6
Fri Jul 26, 2019 8:33 pm
Forum: Advanced users
Topic: Bluetooth pairing using fixed PIN on bluez 5.
Replies: 37
Views: 9366

Re: Bluetooth pairing using fixed PIN on bluez 5.

What seems to be the problem?
by Douglas6
Wed Jul 24, 2019 2:23 am
Forum: Beginners
Topic: Bluetooth Rfcomm and Java RxTx
Replies: 9
Views: 314

Re: Bluetooth Rfcomm and Java RxTx

Not familiar with BlueCove. First, ensure that the devices are paired and trusted. Show us the results of bluetoothctl 'info <bdaddr>' where <bdaddr> is the Bluetooth device address of your remote device. Then try 'sudo rfcomm connect 0 <bdaddr>'. Show us the results. I suggested minicom or rfcomm. ...
by Douglas6
Tue Jul 23, 2019 1:34 pm
Forum: Beginners
Topic: Bluetooth Rfcomm and Java RxTx
Replies: 9
Views: 314

Re: Bluetooth Rfcomm and Java RxTx

Don't use bluetoothctl to connect. Use minicom or rfcomm.
by Douglas6
Tue Jul 23, 2019 11:58 am
Forum: Troubleshooting
Topic: Bluetooth Issue
Replies: 10
Views: 771

Re: Bluetooth Issue

OBEX push:

Code: Select all

sudo apt-get install ussp-push 
OBEX FTP:

Code: Select all

sudo apt-get install obexftp
by Douglas6
Tue Jul 23, 2019 2:11 am
Forum: Beginners
Topic: Bluetooth Rfcomm and Java RxTx
Replies: 9
Views: 314

Re: Bluetooth Rfcomm and Java RxTx

Minicom should attempt the connection on its own. It should connect, if you are paired and trusted. How the device reacts is questionable, and you still remain silent as to the device. Maybe AT commands are required, who knows?
by Douglas6
Mon Jul 22, 2019 6:11 pm
Forum: Beginners
Topic: Bluetooth Rfcomm and Java RxTx
Replies: 9
Views: 314

Re: Bluetooth Rfcomm and Java RxTx

What type of Bluetooth device is it? Most sensor-type devices act as slaves, meaning you would need to initiate the connection from the Raspberry Pi. 'rfcomm listen' simply waits for a connection request, whereas you want to request a connection on the Pi. Try replacing the 'rfcomm listen' with sudu...
by Douglas6
Mon Jul 22, 2019 1:14 pm
Forum: Beginners
Topic: PI3+ B Bluetooth
Replies: 3
Views: 127

Re: PI3+ B Bluetooth

And if it's not in that list, try pairing it first from the Bluetooth icon.
by Douglas6
Fri Jul 19, 2019 12:53 pm
Forum: General discussion
Topic: Bluetooth states No usable services
Replies: 17
Views: 23662

Re: Bluetooth states No usable services

1. Not true. Classic Bluetooth has no central/peripheral concept. And of course you can connect a Pi to a phone for audio streaming, serial communications, file transfer etc.

2. Generally true for serial communications. Other rfcomm commands may be used.
by Douglas6
Thu Jul 18, 2019 3:46 pm
Forum: Advanced users
Topic: RPI4 Bluetooth Chip
Replies: 2
Views: 276

Re: RPI4 Bluetooth Chip

My understanding is that it's the same chip as the Pi3B, but with (slightly) updated firmware.
by Douglas6
Tue Jul 16, 2019 12:44 pm
Forum: Networking and servers
Topic: BLE connection with an android
Replies: 11
Views: 1059

Re: BLE connection with an android

I believe that nRF Connect labels services using the local name included in the advertising packet. I think local name is not working in BlueZ 5.43, so you may be out of luck. If you have upgraded BlueZ or are using Buster, you can try setting the local_name on the Advertisement. I don't know what n...
by Douglas6
Tue Jul 16, 2019 12:00 pm
Forum: Automation, sensing and robotics
Topic: Arduino motor control from Pi 3B+
Replies: 11
Views: 570

Re: Arduino motor control from Pi 3B+

This is where I am stuck I think. I can see the text I send from the Pi but I don't know how to send command, as they just show up as text on the Arduino. I'm also not sure how to integrate the communication on the Pi into a Python script, as I am currently sending the messages from the Terminal wi...
by Douglas6
Tue Jul 16, 2019 12:55 am
Forum: Gaming
Topic: Show if someone want to talk to me
Replies: 4
Views: 319

Re: Show if someone want to talk to me

You want a notification while you are watching TV to go play video games? Perhaps there is an issue here larger than the Pi can resolve? Get some air.
by Douglas6
Tue Jul 16, 2019 12:29 am
Forum: Automation, sensing and robotics
Topic: Programming an adafruit trinket from Rasperrypi
Replies: 2
Views: 215

Re: Programming an adafruit trinket from Rasperrypi

Technically, it should be possible to program a 5v Trinket with a Pi. You would need to use several voltage dividers at critical points, and it's not guaranteed. Given the cost of the Trinket, I would simply purchase a 3v3 version and not incur the additional headaches.
by Douglas6
Mon Jul 15, 2019 10:56 pm
Forum: Automation, sensing and robotics
Topic: Arduino motor control from Pi 3B+
Replies: 11
Views: 570

Re: Arduino motor control from Pi 3B+

If you wish to continue with Bluetooth, you'll need to be more specific about your issue. You say you can send messages from the Pi to the "Arduino serial monitor". That implies to me that you are sending them to the Arduino. So instead of printing them to the Arduino's serial port, you can test the...
by Douglas6
Sat Jul 13, 2019 11:20 pm
Forum: Python
Topic: Initiating and controlling omxplayer using a python app
Replies: 9
Views: 5882

Re: Initiating and controlling omxplayer using a python app

Ctrl-C is the standard way to halt an interactive Python program.

Go to advanced search