-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pairing error: crypto.js:60: TypeError: Cannot read property 'length' of undefined #23
Comments
I think I faced something similar and workaround-ed it somehow |
Some problem here when using btlejuice. |
Yes, I got same problem sometimes. |
This repo is dead. Use software thats based on the dbus-api for bluetooth. All other will not work as expected. |
I don't agree. It's true that the other projects are badly maintained but bluetoothd is a mess for services. The connections are unstable and requires experimental flags plus custom dbus permissions to do simple stuff like customize advertisments. I did give up on bleno but I forked pybleno and got it working: https://github.com/akvadrako/pybleno. |
This error is triggered because the crypto function 'swap' does not handle undefined inputs. However, the root cause seems to be that somehow the characteristics are being defined as needing encryption. I'm seeing my iPhone try to pair with my peripheral, which only happens if permissions are specified to be encryted. Trying to figure out why that's happening... |
Suddenly same problem here. |
Same here. didn't have this issue last year when I was using this tool on the same devices. Any workaround? |
Please take into account the prerequisites mentioned in the Readme.md. I have implemented the following solution for Raspberry Pi OS. 1. Installing Required PackagesFirst, install the necessary Bluetooth libraries and tools: sudo apt-get update
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libusb-1.0-0-dev 2. Installing Node.jsNode.js needs to be installed on your system if it is not already. You can use the following commands with the NodeSource package to install it: curl -sL https://deb.nodesource.com/setup_current.x | sudo bash -
sudo apt-get install -y nodejs If the sudo ln -s /usr/bin/nodejs /usr/bin/node 3. Stopping and Disabling the Bluetooth ServiceUse the following commands to stop and disable the Bluetooth service: For System V: To stop once: sudo service bluetooth stop To prevent Bluetooth from starting on reboot: sudo update-rc.d bluetooth remove For systemd: To stop once: sudo systemctl stop bluetooth To prevent Bluetooth from starting on reboot: sudo systemctl disable bluetooth 4. Note on noble and blenoIf you are using both You can follow these steps to perform the configurations mentioned. If you get stuck anywhere or need further assistance, do not hesitate to reach out to me. Learning about the System Boot and Service Management MechanismSystem V and systemd are two different system boot and service management mechanisms. Which one you will use depends on the Linux distribution and version you are working on. One of these management systems generally comes as a default in modern Linux distributions.
To determine which system manager you should use, run the following command in the terminal: ps --no-headers -o comm 1 |
I am trying to run the echo example with the latest version of bleno, but when I attempt to pair it crashes:
bleno 0.5.1-3
nodejs v14.15.0
Linux 5.4.72 armv7l
The text was updated successfully, but these errors were encountered: