Smart Config - Over the air setup with iOS or Android

A 40 Pin Dip packaged development board enabling you to create internet connected products

Smart Config - Over the air setup with iOS or Android

Postby Carl-SolderSplash » Wed Oct 30, 2013 11:11 pm

A nice feature of the CC3000 module is the ability to configure the connection with out an interface, this is done by trigger the Smart Config mode of the CC3000. You can find an iOS app on the App Store and an Android version on the TI wiki http://processors.wiki.ti.com/index.php ... _Downloads

If your using the LPCXpresso example issue the command
Code: Select all
cc3000 smart
this tells the module to start listening on your smartphone give the app the key for the selected wifi network and press the start button. After 20-30 seconds you should see that the module receives the smart config packet and starts to connect to your selected access point.
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby andrewdlindsay » Tue Jan 28, 2014 9:38 pm

Has anyone actually got the SmartConfig app to work with the WiFiDipCortex?
I've used it successfully with the Adafruit CC3000 breakout module, but not the WiFiDIPCortex using the USB Kitchen sink demo using mbed.

Also, has anyone actually got the Java Applet version working? This has not worked at all for me and is something i'd like to see working as it would have advantages over the android and ios version for rapid deployment of multiple devices.

thanks

Andrew
andrewdlindsay
 
Posts: 17
Joined: Tue Jan 28, 2014 9:29 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby Carl-SolderSplash » Tue Jan 28, 2014 11:21 pm

Hi,

I use it with every board during test, mostly via Android and occasionally via iOS. I also have reports from other users that have used it with out an issue.

Haven't yet used the PC Java app. Can have a look, unfortunatly TI are a little secretive about exactly how SmartConfig works.

I did read somewhere that some access points with MIMO might not like smartconfig, but haven't seen anything confirmed by TI.

EDIT : http://processors.wiki.ti.com/index.php ... ava_Applet
Actually it says there that you cant use MIMO

The Mbed kitchen sink soft connect is triggered slightly differently to the LPCXpresso version above, you need to select option 1 then option 5, the module is then set to listen for soft connect messages, it will wait here until it gets one.

I assume you have used the adafruit version with the same access point?
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby andrewdlindsay » Tue Feb 04, 2014 10:40 pm

OK, finally got around to trying this again, turned on all the debug options in cc3000.h, connected my trusty ftdi cable to pins 19 and 20, loaded the USB kitchen sink demo on mbed.

It works fine with the manual connect, no problems here.

The smartconfig seems to do something but doesnt finish, debug log:

Code: Select all
[CC3000 : HCI TX] Command Sent : 0x0004
[CC3000 : HCI RX] Event Received : 0x0004 - Connect Policy
[CC3000 : HCI TX] Command Sent : 0x0004
[CC3000 : HCI RX] Event Received : 0x0004 - Connect Policy
[CC3000 : HCI TX] Command Sent : 0x0002
[CC3000 : HCI RX] Event Received : 0x0002 - Disconnect
[CC3000] Callback : HCI_EVNT_WLAN_UNSOL_DHCP - Disconnecting
[CC3000] Callback : HCI_EVNT_WLAN_UNSOL_DISCONNECT
[CC3000 : HCI TX] Command Sent : 0x000C
[CC3000 : HCI RX] Event Received : 0x000C - Config Set Prefix
[CC3000 : HCI TX] Command Sent : 0x000A
[CC3000 : HCI RX] Event Received : 0x000A - Config Start
[CC3000] Waiting for smartconfig to be completed
[CC3000] Callback : HCI_EVNT_WLAN_ASYNC_SIMPLE_CONFIG_DONE
[CC3000] Smartconfig finished
[CC3000 : HCI TX] Command Sent : 0x0004
[CC3000 : HCI RX] Event Received : 0x0004 - Connect Policy
[CC3000 : HCI TX] Command Sent : 0x4000
[CC3000 : HCI RX] Event Received : 0x4000
[CC3000 : HCI TX] Command Sent : 0x400B
[CC3000 : HCI RX] Event Received : 0x400B
[CC3000 : HCI TX] Command Sent : 0x0008
[CC3000 : HCI RX] Event Received : 0x0008 - Event Mask
[CC3000] Callback : HCI_EVNT_WLAN_UNSOL_CONNECT
[CC3000] Callback : HCI_EVNT_WLAN_UNSOL_DHCP 192.168.1.53


I've previously used the same access point and android tablet (nexus 7) to setup the smartconfig profile so have seen what the full process looks like.

Cheers

Andrew
andrewdlindsay
 
Posts: 17
Joined: Tue Jan 28, 2014 9:29 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby Carl-SolderSplash » Wed Feb 05, 2014 10:34 am

I've just grabbed a Wifi Dip and flashed it with the USB Kitchen sink demo with the debug enabled as well, here is my log of a successful connection :

Code: Select all
[CC3000 : HCI TX] Command Sent : 0x0004
[CC3000 : HCI RX] Event Received : 0x0004 - Connect Policy
[CC3000 : HCI TX] Command Sent : 0x0004
[CC3000 : HCI RX] Event Received : 0x0004 - Connect Policy
[CC3000 : HCI TX] Command Sent : 0x000C
[CC3000 : HCI RX] Event Received : 0x000C - Config Set Prefix
[CC3000 : HCI TX] Command Sent : 0x000A
[CC3000 : HCI RX] Event Received : 0x000A - Config Start
[CC3000] Waiting for smartconfig to be completed
[CC3000] Callback : HCI_EVNT_WLAN_ASYNC_SIMPLE_CONFIG_DONE
[CC3000] Smartconfig finished
[CC3000 : HCI TX] Command Sent : 0x0004
[CC3000 : HCI RX] Event Received : 0x0004 - Connect Policy
[CC3000 : HCI TX] Command Sent : 0x4000
[CC3000 : HCI RX] Event Received : 0x4000
[CC3000 : HCI TX] Command Sent : 0x400B
[CC3000 : HCI RX] Event Received : 0x400B
[CC3000 : HCI TX] Command Sent : 0x0008
[CC3000 : HCI RX] Event Received : 0x0008 - Event Mask
[CC3000] Callback : HCI_EVNT_WLAN_UNSOL_CONNECT
[CC3000] Callback : HCI_EVNT_WLAN_UNSOL_DHCP 192.168.123.154

Your log shows the smart config message is received and it connecting at the end, does it not report the connection via the USB CDC when you ask for the status?
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby andrewdlindsay » Wed Feb 05, 2014 12:38 pm

Strange. Thanks for confirming everything is looking good on the comms side, at the point of the last message the console on the WiFiDIPCortex returns to the menu without showing a valid connection. My android tablet also fails to show a completed message.

I'm going to try this again on the Adafruit board I have and see if there is any noticable difference in the messages going back and forth. It might even be time to try AirSnort or similar.
Thanks for confirming things are looking correct.

Cheers

Andrew
andrewdlindsay
 
Posts: 17
Joined: Tue Jan 28, 2014 9:29 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby Carl-SolderSplash » Wed Feb 05, 2014 12:42 pm

So after it returns to the menu, if you press "7" for status what does it show?
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby andrewdlindsay » Wed Feb 05, 2014 1:24 pm

Good question, didnt try that but noticed the 'Not Connected' in the header on the menu.

thanks

Andrew
andrewdlindsay
 
Posts: 17
Joined: Tue Jan 28, 2014 9:29 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby Carl-SolderSplash » Wed Feb 05, 2014 1:36 pm

ahh yeah, then header prints before the connection fully connects, hit enter a few more times and the IP should appear
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: Smart Config - Over the air setup with iOS or Android

Postby andrewdlindsay » Wed Feb 05, 2014 1:48 pm

Doh!
andrewdlindsay
 
Posts: 17
Joined: Tue Jan 28, 2014 9:29 pm

Next

Return to WiFi DipCortex

Who is online

Users browsing this forum: No registered users and 4 guests

cron