Go to advanced search

by LetHopeItsSnowing
Fri May 12, 2017 1:36 pm
Forum: Beginners
Topic: Bluetooth Pairing of two Raspberry Pis
Replies: 7
Views: 3866

Re: Bluetooth Pairing of two Raspberry Pis

Douglas6 wrote:To be clear, the Pis will not be able to connect unless the SPP is started, at boot time as described in the link above, or programmatically, using Blue Dot.
You don't need to register SPP to get Blue Dot to work. The bluedot python library registers the SPP at run time when it starts.
by LetHopeItsSnowing
Thu May 11, 2017 8:25 am
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v4
Replies: 48
Views: 28125

Re: 2.8" TFT + Touch Shield Board v4

texy wrote:I've not done anything with these displays for at least a year, but does this help :
https://www.jeffgeerling.com/blog/2016/ ... controller

Texy
I will give it a go.
by LetHopeItsSnowing
Mon May 08, 2017 12:15 pm
Forum: AIY Projects
Topic: British English
Replies: 8
Views: 1333

Re: British English

Hi, I tried enabling en-GB as the language setting. With cloud_speech enabled I got no response at all, and with it disabled it's still the US voice. So no joy - but thanks for the suggestion. I get the feeling those settings are more to do with the recognition than the voice engine. Can you do it ...
by LetHopeItsSnowing
Mon May 08, 2017 12:11 pm
Forum: AIY Projects
Topic: Best questions to ask AIY. ..
Replies: 25
Views: 3552

Re: Best questions to ask AIY. ..

Sing me a song
by LetHopeItsSnowing
Sat Apr 29, 2017 5:02 pm
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v4
Replies: 48
Views: 28125

Re: 2.8" TFT + Touch Shield Board v4

I'm trying to get an original tft screen (written on it is "Pi TFT28 Shield via (c) Texy 2013) working with a Pi3 and the latest raspbian and I have had mixed success. I'm using Raspbian 2017-02-16. I used dtoverlay=hy28a,rotate=90 as its an older screen. When I tried to calibrate the touch screen, ...
by LetHopeItsSnowing
Sat Apr 29, 2017 2:28 am
Forum: Python
Topic: Bluetooth programming
Replies: 8
Views: 7642

Re: Bluetooth programming

There is an example of how to use the bluedot Python Bluetooth Server class in the link I posted.

http://bluedot.readthedocs.io/en/latest/btcommapi.html
by LetHopeItsSnowing
Fri Apr 28, 2017 2:53 pm
Forum: Python
Topic: Bluetooth programming
Replies: 8
Views: 7642

Re: Bluetooth programming

Douglas6 wrote:Nice work, Martin. Glad to see you got it working.
I did thank you. I now know way more than I ever wanted to about Bluetooth sockets, bluez and dbus!
by LetHopeItsSnowing
Fri Apr 28, 2017 2:10 pm
Forum: Python
Topic: Bluetooth programming
Replies: 8
Views: 7642

Re: Bluetooth programming

You might be interested in a project of mine. Its called Blue Dot. "Blue Dot allows you to control your Raspberry Pi projects wirelessly - its a bluetooth remote and zero boiler plate (super simple to use :) Python library." It might give you some pointers. You can see the documentation here http://...
by LetHopeItsSnowing
Fri Apr 28, 2017 10:26 am
Forum: Python
Topic: [Solve] Python : TCP IP Server
Replies: 6
Views: 1053

Re: Python : TCP IP Server

could the client be the problem ? :cry: I dont know, it might be. If you aren't receiving the data at the server, this would be the first place I would look. From looking at the client code, the Connect method is used to send all the messages and it is opening and closing the socket everytime its s...
by LetHopeItsSnowing
Thu Apr 27, 2017 12:57 pm
Forum: Python
Topic: [Solve] Python : TCP IP Server
Replies: 6
Views: 1053

Re: Python : TCP IP Server

I cant answer your questions, but I do have a few comments / pointers. What are you using as the client? Your server could be receiving more than 1 byte at a time, i.e. your message could contain "AR" not just "A", you should probably check check byte returned not just the whole message. Have a look...
by LetHopeItsSnowing
Tue Apr 25, 2017 1:53 pm
Forum: Beginners
Topic: How to install Python onto my Raspberry Pi-3
Replies: 3
Views: 24761

Re: How to install Python onto my Raspberry Pi-3

Hi Roger, What distribution (operating system) are you using? Rasbian? Ubuntu Mate? If you are running Raspbian (not the Lite version), Python is pre-installed. If you aren't running Raspbian, I would strongly recommend as a new user of Raspberry Pi to switch to it. To install python though, you can...
by LetHopeItsSnowing
Mon Mar 27, 2017 4:05 pm
Forum: Python
Topic: Error installing dbus-python
Replies: 1
Views: 3342

Re: Error installing dbus-python

Not to worry...

I have been pointed in the right direction. For others who find yourself in this situation, dbus-python is now obsolete, you should be using pydbus:

Code: Select all

sudo pip3 install pydbus
by LetHopeItsSnowing
Mon Mar 27, 2017 8:44 am
Forum: Python
Topic: Error installing dbus-python
Replies: 1
Views: 3342

Error installing dbus-python

Im build a python package which uses the dbus-python package, but I'm having problems installing it from pip. sudo pip3 install dbus-python3 Errors with: checking for DBUS... no configure: error: Package requirements (dbus-1 >= 1.6) were not met: No package 'dbus-1' found Consider adjusting the PKG_...
by LetHopeItsSnowing
Wed Mar 08, 2017 12:07 pm
Forum: General discussion
Topic: Bluetooth Python script.
Replies: 29
Views: 30135

Re: Bluetooth Python script.

http://git.kernel.org/cgit/bluetooth/bluez.git/tree/test/test-profile?h=5.23 I saw this, and used it... It ran and didn't fall over, although some info would be helpful re how to call it. It didnt solve the root issue I was having which was that when using pybluez, unless you add the SP profile usi...
by LetHopeItsSnowing
Tue Mar 07, 2017 10:43 pm
Forum: General discussion
Topic: Bluetooth Python script.
Replies: 29
Views: 30135

Re: Bluetooth Python script.

So, Im not sure if i am making progress, but I can now call bluez through d-bus and not get an errors, so I'm considering that a success! import dbus bus = dbus.SystemBus() profilemanager1 = dbus.Interface(bus.get_object("org.bluez", "/org/bluez"), "org.bluez.ProfileManager1") print(profilemanager1)...
by LetHopeItsSnowing
Tue Mar 07, 2017 4:26 pm
Forum: Python
Topic: Raspberry Pi SPI
Replies: 2
Views: 812

Re: Raspberry Pi SPI

How about using gpiozero, there is support for the mcp3208 and the implementation is much simpler. https://gpiozero.readthedocs.io/en/v1.2.0/api_spi.html#gpiozero.MCP3208 Something like: from gpiozero import MCP3208 adc = MCP3208(channel=0) print(adc.value) Have a look at the measure temperature rec...
by LetHopeItsSnowing
Tue Mar 07, 2017 3:59 pm
Forum: General discussion
Topic: Bluetooth Python script.
Replies: 29
Views: 30135

Re: Bluetooth Python script.

Thanks a lot for the information, this is a big help.

This looks interesting - a python script for adding the Serial Port profile to bluez (albeit v4.98)
https://www.apt-browse.org/browse/ubunt ... le-service
by LetHopeItsSnowing
Tue Mar 07, 2017 8:14 am
Forum: General discussion
Topic: Bluetooth Python script.
Replies: 29
Views: 30135

Re: Bluetooth Python script.

It should be possible to add Bluetooth profiles programmatically, without using the sdptool utility. It involves sending a service record (in XML or binary format) to a BlueZ D-Bus interface. Do you have any background / information / links re how this might be achieved? My google skills are clearl...
by LetHopeItsSnowing
Tue Mar 07, 2017 8:05 am
Forum: General discussion
Topic: Bluetooth Python script.
Replies: 29
Views: 30135

Re: Bluetooth Python script.

Douglas6 wrote:Using sdptool is just much easier. My question is why they decided to remove it from BlueZ 5 in the first place.
I have the same question, it just seems very odd.
by LetHopeItsSnowing
Mon Mar 06, 2017 11:08 pm
Forum: Raspbian
Topic: Bluetooth add serial port profile
Replies: 1
Views: 1122

Bluetooth add serial port profile

I have also asked this question here ( https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=133263&p=1125673#p1125673 ) I am trying to create a small easy to use bluetooth library and in order to do so I need to enable SP (serial port) profiles in bluetooth. The simple way of doing this is to use...
by LetHopeItsSnowing
Mon Mar 06, 2017 10:52 pm
Forum: General discussion
Topic: Bluetooth Python script.
Replies: 29
Views: 30135

Re: Bluetooth Python script.

Is this really the only way to get SP enabled? Plenty of googling has left me coming up short - it seems really strange that there isnt an way of enabling SP without putting bluetoothd into compatibility mode. Im trying to create a simple to use bluetooth module and this is a barrier to making the s...
by LetHopeItsSnowing
Fri Mar 03, 2017 1:08 pm
Forum: Python
Topic: Gpiozero code for time button held
Replies: 2
Views: 1529

Re: Gpiozero code for time button held

You dont say what your eventual aim is, but you may have been able to simplify your code using gpiozero's Button when_held function: https://gpiozero.readthedocs.io/en/v1.3.1/api_input.html#gpiozero.Button.when_held This allow you to run a function when the button has been held down for a certain le...
by LetHopeItsSnowing
Wed Mar 01, 2017 1:59 pm
Forum: Python
Topic: Multiple concurrent GPIO actcions
Replies: 7
Views: 2530

Re: Multiple concurrent GPIO actcions

I would suggest a move to gpiozero (https://gpiozero.readthedocs.io/en/v1.3.1/) where a number of your requirements are already catered for. Something like this would create 2 leds blinking at different rates. from gpiozero import LED led1 = LED(pin1) led2 = LED(pin2) led1.blink(time1on, time1off) l...
by LetHopeItsSnowing
Wed Mar 01, 2017 1:54 pm
Forum: Python
Topic: Minecraft API updates?
Replies: 11
Views: 2469

Re: Minecraft API updates?

birv2 wrote:Is there a Python API for it?
Is there a Python API for Minetest?

Yes https://github.com/arpruss/raspberryjammod-minetest
by LetHopeItsSnowing
Mon Feb 27, 2017 2:58 pm
Forum: Python
Topic: Minecraft API updates?
Replies: 11
Views: 2469

Re: Minecraft API updates?

It would be a fabulous to have an update to Minecraft: Pi edition.

Im not holding my breath though, I just dont see any interest from Mojang to update it and the chances of seeing an open source version look slim.

Have you had a look at MineTest as an open source alternative?

Martin

Go to advanced search