Skip to content
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

ERROR: no response. #2

Open
ibnbd opened this issue Aug 6, 2019 · 5 comments
Open

ERROR: no response. #2

ibnbd opened this issue Aug 6, 2019 · 5 comments

Comments

@ibnbd
Copy link

ibnbd commented Aug 6, 2019

When tried to install I got this error

root@GL-S1300:~# opkg install bletool
Unknown package 'bletool'.
Collected errors:
 * opkg_install_cmd: Cannot install package bletool.

Then I used Plug-ins panel and found gl-bletool installed gl-bletool and got the bellow errors.

root@GL-S1300:~# bletool discovery_type 1 1
ERROR: no response.
root@GL-S1300:~# bletool discovery 1 1 0
ERROR: no response.

I am using S1300 and I have many bluetooth devices in my house.

@ibnbd ibnbd changed the title Unknown package 'bletool' ERROR: no response. Aug 6, 2019
@ibnbd
Copy link
Author

ibnbd commented Aug 6, 2019

root@GL-S1300:~# bletool on
root@GL-S1300:~# bletool status
BLE module OFF.

@ibnbd
Copy link
Author

ibnbd commented Aug 8, 2019

root@GL-S1300:~# opkg install gl-bletool_3.0.3_ipq806x.ipk
Installing gl-bletool (3.0.3) to root...
Configuring gl-bletool.
sh: write error: Device or resource busy

/sys/class/gpio/export has no values.

@YaoSir can you please take a look

@ibnbd
Copy link
Author

ibnbd commented Aug 8, 2019

I used gl-inet/imagebuilder and modified the images.json file. Where I replaced gl-ble-daemon gl-ble-api with gl-bletool. After installing the you firmware. This is the output

root@GL-S1300:~# bletool on
Error opening serial port /dev/ttyS0 - No such file or directory(2).
Non-blocking serial port init failure

@YaoSir
Copy link
Contributor

YaoSir commented Aug 9, 2019

What's your images.json, can you show me that?
It seems some other application takes the port "/dev/ttyS0". So the bletool cannot open and use this port.
Note that the ble module communicate with the router SOC through port "dev/ttyS0", you shouldn't take this port by other program.

@ibnbd
Copy link
Author

ibnbd commented Aug 9, 2019

@YaoSir there were two different versions of gl-bletool, guess gl-bletool were conflicting. It's not working, I will be out this weekend. Maybe next week I will try to play with this again. Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants