Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Spark Core (TI CC3000) Porting for Super WiFI Mini?

CW2 Ziggurat29

  • Please log in to reply
256 replies to this topic

#221 piwi

piwi

    Advanced Member

  • Members
  • PipPipPip
  • 114 posts
  • LocationGermany

Posted 24 September 2013 - 07:30 PM

with a smart config via an iPad4 ...

Example App:driver version 5.14.7.13MAC 08:00:28:01:6F:DBSP: 0.6.1.2401Smart config DONEDONEIP:192.168.39.18

and look ma without any resistors ....

The thread '<No Name>' (0x2) has exited with code 0 (0x0).CC3000 Internet Time ExampleSending - Simple Link StartSend 4000 startingResponse Received -- Simple Link Start ConfirmedSetting Event MaskSend 0008 startingResponse Received -- Event Mask confirmedRequesting SP VersionSend 0207 startingResponse Received -- SP Version is 0.6.1.24Requesting Buffer SizeSend 400B startingResponse Received -- Buffer Available: 6, Size: 1500Configuring DHCPSend 2001 starting

Direct wiring a CC3000 Boost to a cerbuino with 4.3 ... sorry but my n+ does not do 4.3 ....

 

why the DHCP does not work .... no clou but there is always something ...



#222 piwi

piwi

    Advanced Member

  • Members
  • PipPipPip
  • 114 posts
  • LocationGermany

Posted 24 September 2013 - 08:30 PM

and the next step ... DHCP works but still no connection to the network .... hmm ... I'll keep on trying ... 

CC3000 Internet Time ExampleSending - Simple Link StartSend 4000 startingResponse Received -- Simple Link Start ConfirmedSetting Event MaskSend 0008 startingResponse Received -- Event Mask confirmedRequesting SP VersionSend 0207 startingResponse Received -- SP Version is 0.6.1.24Requesting Buffer SizeSend 400B startingResponse Received -- Buffer Available: 6, Size: 1500Configuring DHCPSend 2001 startingResponse Received -- DHCP Configured. The thread '<No Name>' (0x3) has exited with code 0 (0x0).Resetting Connection before setting Policy. Send 0002 startingConnection Disconnect.Setting Connection Policy.Send 0004 startingResponse Received -- Connection Policy SetAttempting Connection to AK16Send 0001 starting

this is done within a seconds notice ...



#223 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 25 September 2013 - 05:33 AM

Hi piwi,

I have decided to save myself a bit of frustration and wait until Valkyrie-MT posts a new CodePlex version. I have been running the August 20 version on a Netduino Plus 2 for about 2 weeks now. It is just connected to my main router with WPA2/aes security and I ping it ocasionaly. I volunteered to sacrifice one of my CC3000 modules to test the managed Patch Programmer and Valkyrie-MT sent me a copy by PM (not for distribution). It ran just fine to update a WRL-CC3000V2 to V1.11. The following is the body of an email sent to Valkyrie-MT reporting my results:

Awesome, looks like you got it nailed!! I used an Embedded Adventures WRL-CC3000V2 module with firmware 1.10, configured CC3000WifiPatchProgrammer for MF 4.2 and ran it with VS2012 Express. The output is as follows:Start Run 1 (forgot to specify my access point, Run 1)------------------------------------------------------CC3000 Wifi Patch ProgrammerStarting up CC3000...Sending - Simple Link StartResponse Received -- Simple Link Start ConfirmedSetting Event MaskResponse Received -- Event Mask confirmedRequesting SP VersionResponse Received -- SP Version is 0.6.1.10Warning: This firmware version is old and will not work correctly with most UDP and TCP communications operations.  Requesting Buffer SizeResponse Received -- Buffer Available: 6, Size: 1500Configuring DHCPResponse Received -- DHCP Configured. The thread '<No Name>' (0x5) has exited with code 0 (0x0).Shutting down CC3000...Starting up CC3000...Sending - Simple Link Start (2)Response Received -- Simple Link Start ConfirmedHandling Response for OpCode: 0201, Payload: 0401020100Handling Response for OpCode: 0201, Payload: 0401020100Handling Response for OpCode: 0201, Payload: 0401020100FAT: 4C530000F301A0015100A0019303001093130010932300209343002093631000A1631000F3634000B3634000316400043368000200000000000000000000000000000000Your MAC address is: 08002856E5D6WRITE IT DOWN!!!!!!!!!!!!!!!!!!  If this patch fails, you may need to restore it manually!  If you lose your MAC address, it is gone forever!Radio Stuff: 03000101101000272727272727272727272727272723252525252525252525232323230000000000000000000000000000000000000000005050505050505050505050505050505050505050505050505050505050505050505050017780501F22252527501F22252527501F222525271E2D01020202020011111511150F0EFF****  PATCHING FIRMWARE NOW *****   -- PLEASE WAIT!Writing File 4The program '[1] Micro Framework application: Managed' has exited with code 0 (0x0).N.B. I stopped the debugger so I think I missed the following output. I will try to capture the full output with a Boost.  The program obviously ran to completion, however.Writing File 5******* FIRMWARE UPDATE COMPLETE *******Rebooting with new firmware (fingers crossed)Shutting down CC3000...Starting up CC3000...Sending - Simple Link StartResponse Received -- Simple Link Start ConfirmedSetting Event MaskResponse Received -- Event Mask confirmedRequesting SP VersionResponse Received -- SP Version is 0.6.1.19Requesting Buffer SizeResponse Received -- Buffer Available: 6, Size: 1500Configuring DHCPResponse Received -- DHCP Configured. The thread '<No Name>' (0x5) has exited with code 0 (0x0).WOO HOO, Firmware successfully patched!The thread '<No Name>' (0x1) has exited with code 0 (0x0).Done.Waiting for debug commands...The program '[39] Micro Framework application: Managed' has exited with code 0 (0x0).End Run 1--------- Run 2 with my access point--------------------------CC3000 Wifi Patch ProgrammerStarting up CC3000...Sending - Simple Link StartResponse Received -- Simple Link Start ConfirmedSetting Event MaskResponse Received -- Event Mask confirmedRequesting SP VersionResponse Received -- SP Version is 0.6.1.19Requesting Buffer SizeResponse Received -- Buffer Available: 6, Size: 1500Configuring DHCPResponse Received -- DHCP Configured. The thread '<No Name>' (0x5) has exited with code 0 (0x0).A first chance exception of type 'System.Exception' occurred in Networking.WifiAdapter.dllAn unhandled exception of type 'System.Exception' occurred in Networking.WifiAdapter.dllAdditional information: Firmware is already up to date.The program '[2] Micro Framework application: Managed' has exited with code 0 (0x0).End Run 2--------- Run 3 Using CodePlex Program----------------------------CC3000 Example ApplicationSending - Simple Link StartResponse Received -- Simple Link Start ConfirmedSetting Event MaskResponse Received -- Event Mask confirmedRequesting SP VersionResponse Received -- SP Version is 0.6.1.19  <---Requesting Buffer SizeResponse Received -- Buffer Available: 6, Size: 56325 <-- ?????Configuring DHCPResponse Received -- DHCP Configured. The thread '<No Name>' (0x4) has exited with code 0 (0x0).Resetting Connection before setting Policy. Response Received -- Connection Disconnect.Setting Connection Policy.Response Received -- Connection Policy SetAttempting Connection to tplinkWLAN Connection Established!  Waiting for IP assignment from router... IP Address Acquired => 192.168.0.166Requesting Network Connection details...Woot!  We are now connected to Wifi!Network Name: tplinkIP address: 192.168.0.166MacAddress: 08002856E5D6Gateway: 192.168.0.1DNS Server: 192.168.0.1Opening UDP SocketResponse Received -- Socket Command: 040110050000000000Socket ID is 0Count: 1Handling Response for OpCode: 100F, Payload: 040F1009000000000022000000Count: 2Handling Response for OpCode: 100F, Payload: 040F1009000000000022000000The program '[21] Micro Framework application: Managed' has exited with code 0 (0x0).          [Ping, OK, arp -a , OK (correct MAC)]End Run 3 Using CodePlex Program--------------------------------Run 4 with my VB Start CCC300 program (VB Express 2010)-------------------------------------------------------CC3000 Buffers    Number of buffers: 6    Buffer size:       1500CC3000 Service Pack Version     SPVersion: 6.1.19DoneEnd Run 4 with my VB Start CCC300 program-----------------------------------------

The Patch Programmer version seemed more stable and robust than the Aug. 20 CodePlex code. He now has Smart Configuration working so I am going to wait for the next public iteration before doing anymore testing. I was about to try updating to V1.11.1, but then it dawned on me that I don't have the  embedded patch data. I assume that you used a TI host for the updating.

 



#224 piwi

piwi

    Advanced Member

  • Members
  • PipPipPip
  • 114 posts
  • LocationGermany

Posted 25 September 2013 - 09:29 AM

@Baxter, yep an update on codeplex might squeeze out some minor things that now and than cause some unexpected and surprising effects, until than I have to stick with what I've got and yes I patched the CC3000 boot with the stellaris and executed a smart config with it as well.

 

At the moment the cc3000 just does not connect to my secured AP, only unsecured will work ????

 

Any idea how I can get the secured one working ?

 

My idea, smart configuring the secured AP via stellaris and the iPad sending the beacon but no idea if this works. Can't do at the moment since I'm not there where the devices are .... I'll keep updating when I'll have the result though ...

 

Ha, you said you update the WRL-CC3000V2 succesfully. I've got a couple of those laying around ! That's good news, it worked. Can you let me know with what HW you got that working, a clear picture with the wiring would be nice.



#225 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 25 September 2013 - 08:05 PM

@piwi: Well, I just re-ran the program with:

// var ap = new AccessPoint() { Ssid = "tplink", Key = "", Security = WifiSecurityType.Open }; var ap = new AccessPoint() { Ssid = "ret13x", Key = "XXXXXXXX", Security = WifiSecurityType.WPA2 };

 

Before I updated the firmware to V1.11, it would only connect with the open security, tplink SSID. I would look into your router settings. It must be blocking somehow. My router is an ASUS RT-N56U. It takes every WiFi device as a client that wants to connect on SSID = ret13x with the correct key. Also, check this post, http://e2e.ti.com/su...25.aspx#1016525

Since the CC3000 is a G device your router may be having trouble with N only settings if the network SSID is bound to this mode. If you can connect with open security, you may be connecting as a guest if your router has this function. My tplink is hooked up to the LAN with a fixed IP address (192.168.0.254). Its SSID is "tplink" with no security. The router sees this as a client so it just has the function of a guest SSID.

 

My connections from a Netduino Plus 2 to the WRL-CC3000V2 are (they should be the same for the Plus):

Netduino Plus 2       WRL-CC3000V2----------------------------------D4                    CSD5                    END6                    IRQD11                   DIN (MOSI)D12                   DOUT(MISO)D13                   CLKGND                   GND3.3v external power connected to WRL-CC3000 VCCExternal power GND connected to common Plus 2/Wrl-CC3000 GNDExternal 4.7k pullup resistor connected to IRQ line and 3.3V (needed or not?)
Output with ret13x SSID and WRL-CC3000V2----------------------------------------CC3000 Example ApplicationSending - Simple Link StartResponse Received -- Simple Link Start ConfirmedSetting Event MaskResponse Received -- Event Mask confirmedRequesting SP VersionResponse Received -- SP Version is 0.6.1.19Requesting Buffer SizeResponse Received -- Buffer Available: 6, Size: 56325Configuring DHCPResponse Received -- DHCP Configured. The thread '<No Name>' (0x4) has exited with code 0 (0x0).Resetting Connection before setting Policy. Response Received -- Connection Disconnect.Setting Connection Policy.Response Received -- Connection Policy SetAttempting Connection to ret13xWLAN Connection Established!  Waiting for IP assignment from router... IP Address Acquired => 192.168.0.166Requesting Network Connection details...Woot!  We are now connected to Wifi!Network Name: ret13xIP address: 192.168.0.166MacAddress: 08002856E5D6Gateway: 192.168.0.1DNS Server: 192.168.0.1Opening UDP SocketResponse Received -- Socket Command: 040110050000000000Socket ID is 0----------- commented out the repeated UDP send in the code ---------


#226 sixfortyfour

sixfortyfour

    New Member

  • Members
  • Pip
  • 4 posts

Posted 02 October 2013 - 11:13 AM

@Baxter - looking for some help. I have an Embedded Adventures CC3000. I can get your CC3000_Startup code working on a netduino 1 (reporting SP Version 6.1.10) but not with a netduino plus 2. I get IRQ errors with Valkyrie's code.

I don't have much electronics knowledge, any pointers to where I may be going wrong with the Embedded Adventures module would be greatly appreciated.



#227 sixfortyfour

sixfortyfour

    New Member

  • Members
  • Pip
  • 4 posts

Posted 11 October 2013 - 03:50 PM

@Baxter - subsequent my previous post, I've managed to get the Embedded Adventures CC3000 working consistently using your CC3000_Startup on a Netduino 2 Plus using 3.3V external power but I'm still having problems with Valkyrie's code and IRQ. I think I have the wiring as per your post #225, would it be possible to have a picture or Fritzing just to confirm? Also as per above, any pointers to where I may be going wrong with the Embedded Adventures module would be greatly appreciated :).



#228 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 11 October 2013 - 06:32 PM

Hi sixfortyfour, I don't use Fritzing so I cannot offer much help with a diagram and a picture would not help given the ratsnest of wires. If the startup program is working it means that your wiring is is correct with the WRL-CC3000V2 and your IRQ line is OK. The connections are the same for both the Startup and Valkyrie's code. Also, how do you know it is a problem with the IRQ line, are you seeing this with a logic analyzer? It seems to me that you have a software problem.

On the Netduino Plus 2, I am running,

 

ClrInfo.targetFrameworkVersion: 4.2.0.0 SolutionReleaseInfo.solutionVersion:   4.2.2.1 SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.2.2.1) by Secret Labs LLC SoftwareVersion.BuildDate:   Jan 26 2013

 

and for Valkyrie's code, cc3000-29055.zip. I would suggest that you download his latest code and update to the latest CC3000 firmware with PatchProgrammer.cs. I am running VS2012 and I needed to re-target to MF 4.2 in both the WiFiCC3000 DLL and WiFiExampleApp Projects. I did an update on the WRL-CC3000V2 with cc3000-29055.zip and it reports SP Version 0.6.1.24. Most of the Example Apps in this latest code work with a few minor problems.

 

Valkyrie-MT's code drop:

http://cc3000.codepl...eControl/latest



#229 sixfortyfour

sixfortyfour

    New Member

  • Members
  • Pip
  • 4 posts

Posted 15 October 2013 - 08:12 PM

Thanks Baxter, sorry for the slow reply, busy weekend and the CC3000 isn't the easiet to step through. To be honest I'm not sure I'm getting IRQ errors, was my first stab in the dark as I wasn't sure about the pull up resistor.

 

The Embedded Adventures CC3000 fails at the following line (1160 in CC3000Driver) (!response.BytesEqual(ExpectedSimpleLinkResponse)) with the following error message:

 

"SPI response to Simple Link Start was invalid, check SPI connection to CC3000. Response was 04040404"

 

Sometimes 04040404 is replaced with FFFFFFFF. I'm using the latest code drop running:

 

ClrInfo.targetFrameworkVersion: 4.2.0.0 SolutionReleaseInfo.solutionVersion:   4.2.2.2 SolutionReleaseInfo.solutionVendorInfo: Netduino Plus 2 (v4.2.2.2) by Secret Labs LLC SoftwareVersion.BuildDate:   Jan 26 2013



#230 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 15 October 2013 - 11:16 PM

The error you are getting is a CC3000 response to an unknown command. I think it may be due the wrong SPI clock idle state. I recall problems with SPI mode 1 and solutionVersion: 4.2.2.2. Why don't you try to reflash to solutionVersion: 4.2.2.1.  4.2.2.1 seems to have vanished on the forum, but I saved a copy,

https://www.dropbox....e5bzo/RtAsWyV0S-



#231 sixfortyfour

sixfortyfour

    New Member

  • Members
  • Pip
  • 4 posts

Posted 16 October 2013 - 08:41 PM

WOO HOO, Firmware successfully patched!

 

Reflashing to 4.2.2.1 worked a treat. Thanks for all your help, very much appreciated :)



#232 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 25 October 2013 - 04:28 PM

watching with great interest.



#233 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 26 October 2013 - 03:55 AM

@iced98lx

Great interest with respect to the CC3000 or the SPI problem? This topic seems to have gone dead for the CC3000, but it is still active on the GHI Forum. If it is the SPI clock problem between Firmware 4.2.2.2 and 4.2.2.1, I posted a question about it, but no replies.



#234 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 29 October 2013 - 07:26 PM

Both, but mostly the CC3000. Do you have a link to the GHI forum topic in question?



#235 piwi

piwi

    Advanced Member

  • Members
  • PipPipPip
  • 114 posts
  • LocationGermany

Posted 29 October 2013 - 09:14 PM

Both, but mostly the CC3000. Do you have a link to the GHI forum topic in question?

 

try https://www.ghielect...h.wqs8ypHN.dpuf



#236 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 11 November 2013 - 01:19 AM

Thx!



#237 piwi

piwi

    Advanced Member

  • Members
  • PipPipPip
  • 114 posts
  • LocationGermany

Posted 11 November 2013 - 07:11 PM

or this one as well https://www.ghielect.../topic?id=13347



#238 nobita

nobita

    New Member

  • Members
  • Pip
  • 1 posts

Posted 30 November 2013 - 02:19 AM

finally, any body have done basic example wifi for cc3000boost + msp430g2553??

I still have hang when excute "01" command from hyperterminal. I am a new menber for arm. thank for help



#239 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 14 January 2014 - 07:53 PM

Revisited ... It looks like Valkyrie-MT is making good progress with this,

 

http://cc3000.codepl...list/changesets

 

@nobita

I just gave up using the msp430g2553 after Valkyrie-MT got the patch programmer working.



#240 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 17 January 2014 - 01:43 AM

Great work guys! If of interest to anyone at this point, as part of another project, I somehow ended up making a simple breakout board for another pretty darn cheap, yet powerful wifi module. It too has built-in a tcp/ip stack (but with a much more simplified interface) and I made the PCB so that it supports both the UART and SPI versions with on-board ceramic antenna or uFL socket for connecting an external antenna of your own choosing. Please let me know, should anyone be interested and I'll make a post about it.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.