nrf | Nrf is RTMP splitting Frontend
kandi X-RAY | nrf Summary
kandi X-RAY | nrf Summary
Nrf is RTMP splitting Frontend
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nrf
nrf Key Features
nrf Examples and Code Snippets
Community Discussions
Trending Discussions on nrf
QUESTION
Right now I am developing web which has ability to connect thermal printer. I am using angular framework, and I successfully connect the thermal printer with USB using library ng-thermal-printer
. But I want to my web also being able to connect thermal printer via web bluetooth which is BLE (Bluetooth Low Energy). As far as I know, BLE has specification in term of GATT and has services and characteristics in it.
The progress I did so far, I can connect and send a value to the thermal printer device in a Service and a Characteristic, let's say Service with UUID AS and Characteristics with UUID AC, using my android phone with the help of application named nRF Connect. Targeting Service AS and send hexadecimal value at charateristic AC make me successfully print something on the thermal paper.
But there is a problem. After knowing the right service and characteristic. I implemented it in my project. But, my chrome browser console showed error:
- Origin is not allowed to access any service... and it told me to add optionalServices when requestiDevice()
- After I added Service AS in property optionalServices, the console showed error DOMException: Connection failed for unknown reason. The errors showed both in chrome PC and chrome android.
NB:
- I have enabled Experimental Web Platform features on chrome
- I have enabled Use the new permissions backend for Web Bluetooth on chrome
- I have enabled Allow invalid certificates for resources loaded from localhost. on chrome
- I have enabled Enable new USB backend on chrome
- I have used https.
Additional question. is bluetooth connection that application nRF Connect used different from BLE? if so, why it displays services and characteristics?
...ANSWER
Answered 2021-Jun-14 at 07:34I'd recommend you try sending those hex values directly from the about:bluetooth-internals
page and see if you can reproduce the connection error from there as well. See https://web.dev/bluetooth/#tips
If so, check out https://www.chromium.org/developers/how-tos/file-web-bluetooth-bugs to learn how to properly file a chromium bug so that the team can fix the underlying issue.
If not, could you share your JS code so that we can help you diagnose what could be going wrong in your code?
QUESTION
I am using Web Bluetooth to connect to a device and read the name and battery level. I got it working but the device I want to connect with is "Unknown or unsupported" but I have no idea why. On requestDevice() I only get my Iphone and a lot of unknown devices.
When I check the bluetooth devices on chrome://bluetooth-internals
I see a few known devices but not the one I am looking for. I have to guess the right device based on the latest RSSI. This is not user friendly.
Is there a way to fix this? Or can someone explain why almost all the devices are unknown or unsupported.
I am using a Mac. (Incase this matters)
UPDATE @François Beaufort
A screenshot of the nRF Connect app. In the app the device has a name. I just saw that the device had a name in bluetooth-internals
too, but it seems like it doesn't advertise its name always.
And it says Device type: Google
but it isn't a device from Google.
ANSWER
Answered 2021-May-21 at 08:59The name you're seeing in the bluetooth browser chooser is the human-readable name of the bluetooth device. A bluetooth device may have two different name types: one that the bluetooth device advertises and another that the bluetooth device publishes in its database as its Bluetooth low energy Generic Access Profile (GAP) device name. If a bluetooth device has both types of names, you'll get the GAP device name.
If you're seeing "Unknown or Unsupported Device (12:34:56:78:9A:BC)"
, it means the bluetooth device didn't advertise its name. In order to reduce the noise in the bluetooth chooser, I'd recommend using other filters such as "services"
if you notice your bluetooth device advertises some. See full developer documentation at https://web.dev/bluetooth/#services-filter
QUESTION
I am working with nrf52 and I made a custom service for 17 bytes data array and I want to send it but it gives fatal error while in data update (sending) function and resets the program.
Here's my custom service data update function:
...ANSWER
Answered 2021-Mar-29 at 22:13Shouldn't err_code = ble_cus_mydata_update(&m_cus, *mydata_value , m_conn_handle);
be err_code = ble_cus_mydata_update(&m_cus, mydata_value , m_conn_handle);
?
QUESTION
We want Android to automatically connect to our custom made BLE peripheral.
Our peripheral should regularly (but infrequently) advertise and attempt to Indicate some time-sensitive sensor data to the phone. Thus we want the phone to be ready to connect at any time.
Generally, you can pair a smart watch with an Android, and Android will then automatically connect to the smart watch whenever it is in range. So we believe our use case should be feasible.
I read a lot of answers that advise to set the "autoconnect" parameter to true when connecting. I have tried that and the reconnections don't persist through a reboot or even after disabling and re-enabling Bluetooth on Android. This answer by Brian says I should scan in the background, but Android made this unrealistic. If I use a foreground service, my users will hate the app. If I use a background service, I may miss the peripheral's attempts to connect during Android's Doze and the code becomes error prone.
Ideally, I want to do something like what Emil said in his answer here. Please read the follow up question and response.
However, we can't see our app through Android's Bluetooth settings. We can only connect to the peripheral and pair with it using our app (or nrf Connect). In desperation, I tried modifying the peripheral's advertising flags. Then I could see it in Android's Bluetooth settings. But when I try to pair using Android's settings, the attempt fails because the peripheral is not in "pairing mode".
We are building both the app and the peripheral, so we can change both. I want to know if our use case is possible and what we need to do to get it working. We are using the STM32WB for our peripheral.
...ANSWER
Answered 2021-Apr-19 at 18:07The best approach is to make sure your peripheral can be bonded. Once you have bonded with it you can ALWAYS use autoconnect because Android stores info about bonded devices and you don't have to scan for it anymore. Hence you avoid the issues with scanning in the background.
Although that resolves the need for scanning, you still need to deal with your app being killed once it is in the background. Using a Foreground Service is still the best solution to my knowledge. I don't think you users will hate your app for it...
QUESTION
I'm a bit new to the BLE environment, my code works just fine, buy I can't manage to get some sort of response,
I'll show you the code, and I'll tell you more about my objective
...ANSWER
Answered 2021-Jan-07 at 08:50For Write Requests, the BLE standard only defines that an error code can be returned. Nothing else. The error code must also be one of the allowed ones. You could send a Notification with some error text if you want, or place the last error message in a characteristic that can be read.
QUESTION
I (like others) have multiple disconnects between a RPi4 central(client) and ESP32 BLE peripheral(server). Using the "nRF Connect" app on a android phone, the connection to the ESP32 is robust. However, RPi4 - ESP32 BLE communication is VERY unstable. This finding implies the fault is with the RPi and/or code. The initial BLE connection occurs faithfully but the connection inevitably drops after a random number of successful reads (usually 1-50 reads). I am using BluePy 1.3.0 with a new Raspbian image on a RPI4. I attached skeleton code and the error message produced after a random number of successful Reads.
...ANSWER
Answered 2020-Dec-19 at 15:34There are a large number of things it could be but there a couple areas that I would investigate.
Firstly there is a bit churn going on with Bluetooth firmware on the RPi at the moment as you can see from this thread: https://github.com/RPi-Distro/firmware-nonfree/issues/8
So I would check that you are up to date with with those.
BluePy I believe has a bluepy-helper
module which is based on Bluez version 5.47 which is behind what the RPi is using now. Might be worth trying a different library to see if the issue persists.
Here is an example of reading your characteristic with the BlueZ D-Bus API directly using pydbus for the python D-Bus bindings:
QUESTION
We have a BLE device we are working on that outputs data via the device's name. The device is functioning properly and can be seen changing names properly using an app like nRF Connect. However, we are having a difficult time doing the same in our own Android app. We can detect the devices fine, but they will almost never move past the original names they were given.
The code I started with has a loop that is started in onResume() that scans using a BluetoothLeScanner and the startScan() function.
...ANSWER
Answered 2020-Dec-02 at 14:16I think you might simply have a problem with caching on android. See this answer here for a possible solution: https://stackoverflow.com/a/50745997/7473793
QUESTION
I'm using the Flutter Blue library to build an app to connect to an IoT device. I was able to get the connection and the discovery of services to work.
I want to send a command which is originally written in Java (NRF library).
...ANSWER
Answered 2020-Nov-28 at 03:37I believe you are looking for Uint8List. Here is the equivalent to the java code you posted:
QUESTION
My setup is as follows:
- BLE Peripheral in Raspberry Pi 3
- nRF tool in Android Phone
- My App in the same Android Phone (uses react-native-ble-manager)
When I connect to the Raspberry Pi using nRF tool, it connects successfully. But, when I connect using my own Android App it fails.
In the Raspberry Pi, I ran sudo btmon command to examine the failure log which is shown below:
...ANSWER
Answered 2020-Nov-24 at 20:00Your event log shows that you're connecting using Bluetooth Classic. If you want to use BLE, use a connectGatt
variant where you can select LE as transport parameter.
QUESTION
I'm trying to understand how to encode some data for transfer over BLE (bluetooth low energy). Specifically, I'm interested in this particular line:
Which comes from the snippet:
...ANSWER
Answered 2020-Oct-26 at 08:57As shown in the tests, the straight forward way to do the conversion in Python is with to_bytes
and from_bytes
functionality
Using your data it would be for the bytes to an int direction:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nrf
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page