Not getting 31 bytes of BLE device Name in Android - bluetooth

BLE is not showing full 31 bytes of advertisement name(device name)
in Android while fetching getname() from BLE device.
It showing only 26 bytes of data. Please help me, I am new to this BLE Development.

Related

Windows 7 64 bit bluetooth discoverable setting not save and not find any bluetooth device

I am trying to connect My laptop windows 7 64 bit to any android device or Bluetooth headphone its not find device.BT driver is updated.in Bluetooth discovery setting i tick and apply but not save it is hanging out.

Broadcast device name while advertising iBeacon - Raspberry Pi OS

I have a Raspberry Py OS based on Debian Stretch broadcasting an iBeacon with my UUID and Major/Minor. Through an APP built by our team, I was able to identify it by the UUID and read its Major/Minor.
Now, I'll have to read this same iBeacon through Chrome Browser. However, I am not being able to broadcast with the iBeacon a meaningful name to help the user to find the device,
it only shows to me "Unknown or unsupported device"
As far as I could understand from iBeacon and AltBeacon, it isn't possible to send extra data in addition to UUID and Major/Minor. Is this correct? Is it possible to advertise this information within the beacon frame?
Command used to advertise the beacon.
sudo hciconfig hci0 leadv 3
sudo hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 06 1A FF 4C 00 02 15 <<UUID>> <<Major/Minor>> C8 00
Consulting the Specification of the Bluetooth System I tried to change several name or ID features, none of them worked, such as:
sudo hcitool -i hci0 cmd 0x03 0x0013 <<Local Name>>
sudo hcitool -i hci0 cmd 0x03 0x0014
I would like to ask the community if it is possible to advertise this name while using beacons or if I should start using a GATT server to perform it.
Thank you all in advance.
Yes, it is possible for Linux to advertise both the local name and the iBeacon manufacturer advertisement. The way you are setting it up is correct, so it's unclear why you aren't seeing it in the Chrome web browser.
One thing to know is that the local name is not advertised in the same packet along with the iBeacon data that you show in your question. (There simply isn't room in the main advertising packet.) Instead, the local name is put in what is called a scan response packet. This is an additional packet that a Bluetooth LE Peripheral will send out in response to an active scan request packet from the Bluetooth LE Central (e.g. your Chrome device). It may be that Chrome does not send out scan request packets, which is why it won't read the local name.
You can confirm this by using a different device (like an Android or iOS phone using the Nordic nRF Connect Bluetooth test app) to see if they read the local name during a scan.
If you find that this these other devices do read the local name, then your next step would be to try to configure Chrome to do an active scan so it requests the scan response packets. It's unclear how or if this is possible.

Bluetooth BLE Beacon, Advertise

when starting with this Bluetooth low Energy (BLE) development, i come across some questions:
with my development board, I can send out advertisement beacons, they are recognized by Windows 7 (Bluetooth, Add Device). The demo application on the board sends out beacons which are in length <31 bytes. In this data there is included the data for length, an ID byte and a string.
But how is Windows able to identify the Bluetooth device address (BD) and the name of my device? This data is not included in the advertisement beacon, but I cannot find any document which describes how this data is transported.
So the relevant data is:
the Beacon .. the BD address .. the device name
The Bluetooth MAC address is sent in the header of any packet a BLE device transmits. This is added at the hardware layer, so you probably do not realize it is happening.
Similarly, when a BLE device is configured with a local name, it is transmitted by the chip automatically in a separate advertisement packet. Since this packet also had a header with the MAC address, the receiving chip uses this address to align the received name/MAC with any other packet received for that MAC.
This is how the Windows device knows the name and MAC for your received advertisements.

GSM modem not attached as ttyUSB on Tomato firmware

Want to connect gsm modem (Huawei E160G) to router ASUS RT-N18U under Advanced Tomato firmware. But dont know what usb device specify in dongle configuration file dongle.conf. Which use Asterisk for connection to modem.
Modem recognized on my laptop with CentOS as three devices in /dev/ttyUSB0-2. But when i plug this modem into router ttyUSB* devices are not recognized.
After attaching, see in /var/log/message
May 27 10:23:00 unknown kern.info kernel: usb 2-2: new high speed USB device using ehci_hcd and address 4
May 27 10:23:00 unknown user.debug hotplug[5829]: Attached USB device 2-2:1.0 [INTERFACE=255/255/255 PRODUCT=12d1/1001/0]
May 27 10:23:00 unknown user.debug hotplug[5835]: Attached USB device 2-2:1.1 [INTERFACE=255/255/255 PRODUCT=12d1/1001/0]
May 27 10:23:00 unknown user.debug hotplug[5836]: Attached USB device 2-2:1.2 [INTERFACE=255/255/255 PRODUCT=12d1/1001/0]
See the new characted device in /dev:
crw-rw-rw- 1 root root 189, 131 May 27 10:23 usbdev2.4
But it is the one and asterisk cant connect to it.
[May 27 07:33:06] WARNING[6233]: chan_dongle.c:235 opentty: tcgetattr() failed for /dev/usbdev2.4: Inappropriate ioctl for device
What the is problem?
I think the drivers are missing. On my laptop, where modem work ok i see in cat /proc/bus/usb/devices Driver=option, but on router output cat /proc/bus/usb/devices show that the Driver=(none) but it is on the
/lib/modules/2.6.36.4brcmarm/kernel/drivers/usb/option.ko
The solution is enable on WAN mode 3g/modem then /dev/ttyUSB devices became available. But i dont want to use internet from 3g modem. I configured 2 WAN interfaces. First use for real WAN (PPPoE) and second for 3g which will be unusable as inet gateway. 3g can be enbale only by manual (see settings in web).
There is the way for have gsm modem available after rebooting or even after shutdown the router.
Thank for all)

Understanding RSSI inacurracy on RaspberryPi

I'm experimenting with iBeacon tracking on a RaspberryPi and have a problem with the accuracy of the retrieved RSSI. I use the following hardware:
- RaspberryPi (newest version)
- IOGear Bluetooth 4.0 USB Micro Adapter
- BEACONinside Beacon (Model: B0001-A)
I tested iBeacon advertisment scanning using the official BEACONinside Android app and the retrieved RSSI is intuitively very accurate. Then I tested advertisment scanning using aforementioned hardware on a RaspberryPi and the retrieved RSSI is very inaccurate. Does anybody have an idea what the reason for this inacurracy could be? Possible origins for the problem are in my optinion the Bluetooth adpater, which differs from the one in my Android phone. Another reason could be the library for Bluetooth scanning (on the RaspberryPi, I'm using bluez). What do you think?
RSSI is generally effected by surrounding environments so it should be
averaged for couple of seconds to get accurate value

Resources