Skip to content

Instantly share code, notes, and snippets.

@matthijskooijman
Created March 26, 2014 23:33
Show Gist options
  • Save matthijskooijman/9796208 to your computer and use it in GitHub Desktop.
Save matthijskooijman/9796208 to your computer and use it in GitHub Desktop.
Gainspan UDP Server demo
>>= ATV0
<<| Read async header: <ESC>A701
<<| Read async data: 7
<<= 0
>>= ATE0
<<= 0
>>= AT+BDATA=1
<<= 0
>>= AT+ASYNCMSGFMT=1
<<= 0
>>= AT+NCMAUTO=0,0,0,1
<<= 0
>>= AT+NDHCP=1,"pinoccio"
<<= 0
>>= AT+WSEC=12
<<= 2
>>= AT+WWPA="XXXX"
<<= 0
>>= AT+WA="Jodocus",,0,1
<<= 1
Association failed, retrying...
>>= AT+WA="Jodocus",,0,1
<<| Skipped uninteresting long line
<<| Skipped uninteresting long line
<<= 0
Associated to Jodocus
>>= AT+NSTAT=?
<<= MAC=20:f8:5e:a1:4a:68
MAC=20:f8:5e:a1:4a:68
<<= WSTATE=CONNECTED MODE=AP
WSTATE=CONNECTED MODE=AP
<<= BSSID=00:18:84:88:2e:70 SSID="Jodocus" CHANNEL=11 SECURITY=WPA2-PERSONAL
BSSID=00:18:84:88:2e:70 SSID="Jodocus" CHANNEL=11 SECURITY=WPA2-PERSONAL
<<= RSSI=-57
RSSI=-57
<<= IP addr=192.168.1.245 SubNet=255.255.255.0 Gateway=192.168.1.252
IP addr=192.168.1.245 SubNet=255.255.255.0 Gateway=192.168.1.252
<<= DNS1=192.168.1.252 DNS2=0.0.0.0
DNS1=192.168.1.252 DNS2=0.0.0.0
<<= Rx Count=12 Tx Count=208
Rx Count=12 Tx Count=208
<<= 0
>>= AT+NSUDP=42424
<<= 7 0
<<= 0
<<| Read async header: <ESC>y0192.168.1.175 40289 0004
<<| Read bulk UDP server data frame for cid 0 from 192.168.1.175:40289 containing 4 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment