Go to advanced search

by loginek0
Tue May 05, 2020 11:37 am
Forum: Advanced users
Topic: Incorrect reading frames Bluetooth altbeacon
Replies: 0
Views: 55

Incorrect reading frames Bluetooth altbeacon

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...
by loginek0
Fri Oct 26, 2018 9:03 pm
Forum: Advanced users
Topic: Problem connecting to BLE 4.0 - disconnect after 2 seconds
Replies: 6
Views: 2506

Re: Problem connecting to BLE 4.0 - disconnect after 2 seconds

Code: Select all

dpkg --status bluez | grep '^Version:'
Version: 5.43-2+rpt2+deb9u2
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!
by loginek0
Fri Oct 26, 2018 7:06 am
Forum: Advanced users
Topic: Problem connecting to BLE 4.0 - disconnect after 2 seconds
Replies: 6
Views: 2506

Re: Problem connecting to BLE 4.0 - disconnect after 2 seconds

Device it: Bluetooth Temperature Data Logger.

Code: Select all

sudo hcitool lecc --random AA:FD:1D:03:FF:15
Connection handle 64
by loginek0
Thu Oct 25, 2018 8:09 pm
Forum: Advanced users
Topic: Problem connecting to BLE 4.0 - disconnect after 2 seconds
Replies: 6
Views: 2506

Re: Problem connecting to BLE 4.0 - disconnect after 2 seconds

Return: Error: connect error: Connection refused (111) Logs with sudo hcidump -t: sudo hcidump -t HCI sniffer - Bluetooth packet analyzer ver 5.43 device: hci0 snap_len: 1500 filter: 0xffffffff 2018-10-25 19:49:31.511045 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 type 0x00 (passive) ...
by loginek0
Thu Oct 25, 2018 12:16 pm
Forum: Advanced users
Topic: Problem connecting to BLE 4.0 - disconnect after 2 seconds
Replies: 6
Views: 2506

Problem connecting to BLE 4.0 - disconnect after 2 seconds

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...
by loginek0
Mon Mar 12, 2018 7:08 pm
Forum: Troubleshooting
Topic: How to update SANE in raspberry to new version?
Replies: 4
Views: 1290

Re: How to update SANE in raspberry to new version?

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/...
by loginek0
Mon Mar 12, 2018 12:03 pm
Forum: Troubleshooting
Topic: How to update SANE in raspberry to new version?
Replies: 4
Views: 1290

Re: How to update SANE in raspberry to new version?

Ok, how can I download the latest version from Ubuntu Mate repo? I am currently using the raspbian raspberry system.
by loginek0
Mon Mar 12, 2018 11:55 am
Forum: Troubleshooting
Topic: How to update SANE in raspberry to new version?
Replies: 4
Views: 1290

How to update SANE in raspberry to new version?

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?
by loginek0
Sun Jul 19, 2015 9:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: FT232RL It does not work correctly if it is connected before
Replies: 3
Views: 2888

Re: FT232RL It does not work correctly if it is connected be

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...
by loginek0
Sun Jul 19, 2015 9:48 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: FT232RL It does not work correctly if it is connected before
Replies: 3
Views: 2888

FT232RL It does not work correctly if it is connected before

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...
by loginek0
Sat Jul 18, 2015 9:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial FT232 not receive 8bytes
Replies: 8
Views: 2019

Re: Serial FT232 not receive 8bytes

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 ...
by loginek0
Sat Jul 18, 2015 9:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial FT232 not receive 8bytes
Replies: 8
Views: 2019

Re: Serial FT232 not receive 8bytes

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...
by loginek0
Sat Jul 18, 2015 8:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial FT232 not receive 8bytes
Replies: 8
Views: 2019

Re: Serial FT232 not receive 8bytes

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'...
by loginek0
Sat Jul 18, 2015 8:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial FT232 not receive 8bytes
Replies: 8
Views: 2019

Re: Serial FT232 not receive 8bytes

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...
by loginek0
Fri Jul 17, 2015 7:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial FT232 not receive 8bytes
Replies: 8
Views: 2019

Serial FT232 not receive 8bytes

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...
by loginek0
Fri Mar 13, 2015 7:24 am
Forum: Media centres
Topic: omxplayer change the video file using the keyboard
Replies: 1
Views: 907

omxplayer change the video file using the keyboard

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...

Go to advanced search