0

Alljoyn Onboarding and Alljoyn-On

asked 2014-11-18 08:25:48 -0700

congthienvn gravatar image

updated 2014-11-18 08:27:15 -0700

Hi All,

I am building up Onboarding on these two models:

  1. OpenWRT - Onboardee (onboarding-deamon) <--> Android - Onboarder (Alljoyn-On App)
  2. Ubuntu PC- Onboardee (onboarding-deamon) <--> Android - Onboarder (Alljoyn-On App)

Both have not fully brought up.

On 1., I started SoftAP by #hostapd /etc/hostapd.conf on Onboardee site, then start alljoyn-deamon, onboarding-deamon. The Alljoyn-On app could join SoftAP, discovered the unconfigured device. But after input password, I saw log on Onboardee:

===================

wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0xff9ff0 key_idx=0 set_tx=1 seq_len=0 key_len=0 addr=1c:62:b8:86:d6:69

wlan0: STA 1c:62:b8:86:d6:69 IEEE 802.1X: unauthorizing port

WPA: 1c:62:b8:86:d6:69 WPA_PTK_GROUP entering state IDLE

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state AUTHENTICATION

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state AUTHENTICATION2

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state INITPSK

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state PTKSTART

wlan0: STA 1c:62:b8:86:d6:69 WPA: sending 1/4 msg of 4-Way Handshake

WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)

nl80211: Event message available

nl80211: Ignored unknown event (cmd=19)

IEEE 802.1X: 1c:62:b8:86:d6:69 TX status - version=2 type=3 length=95 - ack=1

IEEE 802.1X: 121 bytes from 1c:62:b8:86:d6:69

IEEE 802.1X: version=1 type=3 length=117

wlan0: STA 1c:62:b8:86:d6:69 WPA: received EAPOL-Key frame (2/4 Pairwise)

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state PTKCALCNEGOTIATING

WPA: PTK derivation - A1=00:05:b4:0b:66:e6 A2=1c:62:b8:86:d6:69

WPA: PMK - hexdump(len=32): [REMOVED]

WPA: PTK - hexdump(len=48): [REMOVED]

wlan0: STA 1c:62:b8:86:d6:69 WPA: invalid MIC in msg 2/4 of 4-Way Handshake

wlan0: STA 1c:62:b8:86:d6:69 WPA: EAPOL-Key timeout

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state PTKSTART

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state DISCONNECT

hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 1c:62:b8:86:d6:69 reason 2

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state DISCONNECTED

WPA: 1c:62:b8:86:d6:69 WPA_PTK entering state INITIALIZE

wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0xff9ff0 key_idx=0 set_tx=1 seq_len=0 key_len=0

addr=1c:62:b8:86:d6:69

wlan0: STA 1c:62:b8:86:d6:69 IEEE 802.1X: unauthorizing port

wlan0: STA 1c:62:b8:86:d6:69 IEEE 802.11: deauthenticated due to local deauth request

nl80211: Event message available

nl80211: Ignored unknown event (cmd=20)

mgmt::proberesp cb

mgmt::proberesp cb

===================

I guess key message is:

wlan0: STA 1c:62:b8:86:d6:69 WPA: EAPOL-Key timeout

And seems that the SoftAP mode is still running and the Onboardee failed to join Personal AP.

On 2. the Onboardee also can not join Personal AP.

Expectation: SoftAP ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-13 12:24:15 -0700

bspencer gravatar image

It looks like on your system you have not setup the appropriate commands that need to be run when onboarding the device. IE you need to enter the correct commands to be executed inside the OnboardingService.conf file:

 ...
  <scan_file>/tmp/wifi_scan_results</scan_file>
  <error_file>/tmp/state/alljoyn-onboarding-lasterror</error_file>
  <state_file>/tmp/state/alljoyn-onboarding</state_file>
  <connect_cmd>/etc/init.d/alljoyn-onboarding connect</connect_cmd>
  <offboard_cmd>/etc/init.d/alljoyn-onboarding offboard</offboard_cmd>
  <configure_cmd>/etc/init.d/alljoyn-onboarding configure %s %s %s</configure_cmd>
  <scan_cmd>/usr/sbin/wifi_scan</scan_cmd>
 ...

Once you have these commands correct, then you should be able to have the experience you want of the device disconnecting and connecting to the supplied AP credentials.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-11-18 08:25:48 -0700

Seen: 363 times

Last updated: Jan 13 '15