CC3000 UDP sending/casting packet's to x.x.x.255

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Xinfinite
 
Posts: 5
Joined: Wed Feb 27, 2013 11:48 am

CC3000 UDP sending/casting packet's to x.x.x.255

Post by Xinfinite »

Hi,

I have a project which is working for several months now using the Arduino EthernetShield.
I'm converting this project to WiFi using the Adafruit CC3000 board.
After several hours of searching I'm desperate so please any help is welcome!

Question:

How can I write UDP packets to my 172.30.1.0/24 network?
I can't find an example!

Regards,
Jaap

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: CC3000 UDP sending/casting packet's to x.x.x.255

Post by adafruit_support_rick »

Xinfinite wrote:How can I write UDP packets to my 172.30.1.0/24 network?
Are you trying to broadcast packets to the network? Are you sure it's a /24 network? What is your subnet mask?

It would help if you could post your code.

Xinfinite
 
Posts: 5
Joined: Wed Feb 27, 2013 11:48 am

Re: CC3000 UDP sending/casting packet's to x.x.x.255

Post by Xinfinite »

Well, I found already a solution...

I'm using the library written by Jia Huang.
She has an example of exactly what I want.
I only changed some pin id's in one of the source files so that it's working with your board.

https://github.com/jiahuang/CC3000
https://github.com/jiahuang/CC3000/tree/master/examples/udp

User avatar
ecdowney
 
Posts: 48
Joined: Fri Oct 14, 2011 8:40 am

Re: CC3000 UDP sending/casting packet's to x.x.x.255

Post by ecdowney »

What exactly did you change? Here is what I have changed and it still not working with Adafruit CC3000 shield:

Change CC3000_nIRQ in host_spi.cpp from 2 to 3

Change all calls to attachInterrupt so they use interrupt 1 instead of 0

Still it gets stuck in wlan_start waiting forever for while(tSLInformation.ReadWlanInterruptPin() != 0)

Thanks.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”