After about a year and a half break, I updated Raspberry. It is used for remote reading of AltBeacon frames. I use the noble library for this, but it is probably not a problem. The problem is that from time to time (e.g. every half hour or every hour) an incorrect reading comes, which I cannot verif...
However, I found a solution. You had to change the timeouts in include/net/bluetooth/hci.h and recompile the kernel. After that - the problem was solved. Thanks for the help!
Hello, I have a problem with connecting to a specific bluetooth device (temperature sensor). The device is correctly detected: sudo hcitool lescan LE Scan ... AA:FD:1D:03:FF:15 (unknown) AA:FD:1D:03:FF:15 Tr48 I am trying to connect with him (to download available services): gatttool -t random -b aa...
OK thanks! What if I wanted to install it on the raspbian system? I do not want ubuntu. Edit: I've tried these commands from the new raspbian installation: sudo apt-get install sane sudo scanimage -V scanimage (sane-backends) 1.0.25; backend version 1.0.25 wget http://www.sane-project.org/snapshots/...
In the latest raspbian, after entering "sudo apt-get install sane", the version sane 1.0.25 is installed. I need to have version 1.0.27, which already supports my scanner. How can I install the latest version?
Thanks a lot for your answer! 1) What group does the USB serial port belong to? ls -l /dev/ttyU* crw-rw---T 1 root dialout 188, 0 Jan 1 1970 /dev/ttyUSB0 groups root 2) What is your code doing? Sometimes you have to read some spurious data from the serial port before the real stuff shows up. My conv...
I have a problem with the converter FTDI. If it is connected to the USB port and run the Raspberry Pi - converter work, but returns incorrect data (although the speed and the parameters are set well). When I connect the converter by hand into the USB port while the system Raspbian - converter return...
I was able to find a solution because of you! It turned out that the reason is ... that the device had been connected before starting the Raspberry Pi! If they Disconnect and reconnect only when the Raspberry Pi starts - values are returned well! Maybe someone knows the cause of this? And how can I ...
Given that urandom seems to be working I'm not sure why opening it in a python program is causing the program to block. weird... You're not doing a 'read()' by any chance? that will read as much data as the device has available which, in the case of urandom, is approximately infinite... Perhaps I a...
Could you try $ hd < /dev/urandom | head just to see what happens? The following screen with responses: http://mateok.ovh/random.jpg These values are different each time after execution of this command. The converter can probably work even faster, but it the cable has too much capacitance then you'...
Thanks for your reply. I've tried to read the data using a hex: str1.encode print("hex") But, unfortunately, still are reimbursed a maximum of only 4 values: 'ff', 'fd', 'fc', 'fe'. I took advantage of your way - unfortunately still the same (they are only returned values: 0b11111100, 0b11111101, 0b...
I FT232 module connected to the Raspberry Pi (with USB cable). I want to receive 8bytes (1 byte). On Windows, Terminal draws me correctly beats (eg. 00001011). In the following python script: #!/usr/bin/python import serial import binascii ser = serial.Serial('/dev/ttyUSB0', 115200, timeout=1) while...
I use the Raspberry Pi and the player omxplayer. I would like to RaspbperyPi play movies in a loop from the specified folder. With this I have no problem. Here my code: #!/bin/sh VIDEOPATH="/mnt/storage/videos" SERVICE="omxplayer" while true; do if ps ax | grep -v grep | grep $SERVICE > /dev/null th...