Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Failed to connect the BT PAN (GN/NAP) without connect edison with PC at frist. #19

Description

@shenhaiyun

Terminal 1
root@edison:#rfkill unblock bluetooth
root@edison:
# bluetoothctl
[NEW] Controller 00:11:22:33:55:DDedison [default]
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded

Terminal 2
archermind@archermind-HP-Pro-3330-MT:$./bluetooth_pan_gn_PC.sh
Warning: Permanently added'192.168.2.15' (ECDSA) to the list of known hosts.
mkdir: cannot create directory 'test':File exists
Warning: Permanently added'192.168.2.15' (ECDSA) to the list of known hosts.
bluezutils.py 100% 1567 1.5KB/s 00:00
…........
test-nap 100% 889 0.9KB/s 00:00
test-network 100% 1156 1.1KB/s 00:00
test-pan 100% 1243 1.2KB/s 00:00
test-profile 100% 3243 3.2KB/s 00:00
test-proximity 100% 1891 1.9KB/s 00:00
test-sap-server 100% 3440 3.4KB/s 00:00
test-thermometer 100% 2772 2.7KB/s 00:00
Warning: Permanently added'192.168.2.15' (ECDSA) to the list of known hosts.
Let's turn the DUT in Discoverable Mode
Run the pand service on PC : sudo pand-n --connect 00:11:22:33:55:DD --service GN
Enter a letter and Press enter when it's done !

Terminal 3
archermind@archermind-HP-Pro-3330-MT:$sudo pand -n --connect 00:11:22:33:55:DD --service GN
pand[26930]: Bluetooth PAN daemonversion 4.98
pand[26930]: Connecting to00:11:22:33:55:DD
pand[26930]: Connect to00:11:22:33:55:DD failed. Host is down(112)
archermind@archermind-HP-Pro-3330-MT:
$

We have tried to find some ways to solve this issue.
The first one, we input the “power on” after running the script ,but it is not successful.
The second one, after run the script,we have connected the edison to PC by manually. then run sudo pand -n --connect 00:11:22:33:55:DD --service GN can be worked successfully.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions