View unanswered posts | View active topics It is currently Wed Jul 30, 2014 5:05 pm






Reply to topic  [ 4 posts ] 
WifiBlock for Lego Mindstorms NXT question ? 
Author Message
Rookie

Joined: Tue Aug 14, 2012 8:40 pm
Posts: 12
Post 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
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3165
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Aug 15, 2012 12:47 am
Profile WWW
Rookie

Joined: Tue Aug 14, 2012 8:40 pm
Posts: 12
Post 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
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3165
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Aug 28, 2012 1:00 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.