|
Page 1 of 1
|
[ 4 posts ] |
|
WifiBlock for Lego Mindstorms NXT question ?
| Author |
Message |
|
kevin.info
Rookie
Joined: Tue Aug 14, 2012 8:40 pm Posts: 10
|
 WifiBlock for Lego Mindstorms NXT question ?
Hi I just purchase an WifiBlock for Lego Mindstorms NXT. Can anyone let me how to to do the following two thing.
1. How to use robotc to read the information from web.
2. How to pass the variable from web interface "ASP.Net web interface" to robotc.
Thx kevin
|
| Tue Aug 14, 2012 8:53 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2904 Location: Rotterdam, The Netherlands
|
 Re: WifiBlock for Lego Mindstorms NXT question ?
You should consider reading the examples I have created for the driver in my Driver Suite. Take a look at HRWB-test1.c and HRWB-test2.c. You can download the Suite from the link in my signature.
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Wed Aug 15, 2012 12:47 am |
|
 |
|
kevin.info
Rookie
Joined: Tue Aug 14, 2012 8:40 pm Posts: 10
|
 Re: WifiBlock for Lego Mindstorms NXT question ?
Hi Mightor Hi how are you. Thanks for your help. I try HRWB-test1.c. and it was very useful.
But don’t know why it seems like didn’t connect to my modem at all and also got following error message when I complier.
*Warning*:No indices specified for array variable 'IP' *Warning*:No indices specified for array variable 'gateway' *Warning*:No indices specified for array variable 'netmask'
I try following step and try to fix it but still have no luck yet. Can you let me know how to fix it.
1. Change wireless security to WPA and change the password to (AndroidAP 12). 2. Check there 192.168.1.110 is free to use. 3. Check the subnet is correct. (255.255.255.0) 4. Check the default gateway is correct. (192.168.1.254) 5. Check the wifi ssid is correct (AndroidAP) The only code i changed is #define WIFIBLOCK_IP "192.168.1.110" #define WIFIBLOCK_MASK "255.255.255.0" #define WIFIBLOCK_GW "192.168.1.254 #define WIFIBLOCK_SSID "AndroidAP" #define WIFIBLOCK_KEY " AndroidAP 12"
#define DO_WIFI_CONFIG 1
Thx Kevin
|
| Mon Aug 27, 2012 8:35 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2904 Location: Rotterdam, The Netherlands
|
 Re: WifiBlock for Lego Mindstorms NXT question ?
They're not errors, they're warnings and perfectly harmless.
Are you sure both your WiFiBlock and your phone have been configured to use the same encryption? Does it work with NXT-G? Are you using Infrastructure Mode or Ad-Hoc?
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Tue Aug 28, 2012 1:00 am |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|