View unanswered posts | View active topics It is currently Tue Sep 30, 2014 4:03 pm






Reply to topic  [ 8 posts ] 
RobotC connecting to NXT through Samantha 
Author Message
Rookie

Joined: Wed Jan 09, 2013 7:25 pm
Posts: 20
Post RobotC connecting to NXT through Samantha
I am trying to better understand a chronic issue that we have with connecting to our NXT via Samantha with RobotC.

I have a wireless network all setup that is optimized for the Samantha, 802.11b only, and some other tweaks. Samantha connects to it perfectly, gets an IP and all is well. I can open the FCS and also connect right up.

But, when I open RobotC, and set the configuration - I may have to scan 3, 5, 20 times before I can get it to connect to the Samantha. It works one day, not the next. I close and open RobotC. I make sure the IP address is set and connected to the correct AP prior to opening RobotC, I reboot. Everything I can think of without knowing how the discovery process works (other than the RobotC computer has to be on the same subnet as the Samantha).

One thing that I notice is that the scan period is set to 30 seconds, but fails instantly. One try, about 1 second. This might be a symptom of something else happening which is a key to understanding and unraveling what is going on.

1) I would like to understand what is happening during the discovery process. (to see if there is something I can do to 'help' discovery be more successful)
2) I have some laptops that always have problems and others that don't (I assume there is some relation to #1).

I worked in corporate IT for 10 years and now test and develop windows solutions. So, I am not clueless about all the layers.
I am just looking for some guidance.


Wed Oct 23, 2013 12:05 pm
Profile
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post Re: RobotC connecting to NXT through Samantha
Interesting thing is, if you tell it to scan for Bluetooth (or any of the options which include that) it always takes the full time allotted.

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Wed Oct 23, 2013 9:39 pm
Profile
Rookie

Joined: Wed Jan 09, 2013 7:25 pm
Posts: 20
Post Re: RobotC connecting to NXT through Samantha
I have one student who runs windows in parallels (on a Mac) who we can only seem to get connected over wireless once in a blue moon.

The behavior is the same, the wireless search happens over a count of one regardless of the time searching that is set - essentially it appears to be one try at doing something and then it fails.

It would be helpful to understand what is not working.


Tue Oct 29, 2013 11:35 pm
Profile
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post Re: RobotC connecting to NXT through Samantha
I think it does that anyway. Whenever we scan, it takes a few seconds, regardless of whether or not it finds NXT brick(s) or not.

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Wed Oct 30, 2013 11:09 am
Profile
Rookie

Joined: Wed Jan 09, 2013 7:25 pm
Posts: 20
Post Re: RobotC connecting to NXT through Samantha
If I only choose USB and WiFi it completes almost instantly, no consideration of the time spend drop down.
If I choose Bluetooth it sits and scans for about 30 seconds, no matter the selection of the drop down.

All I know is that the behavior does not follow the GUI at this point.


Wed Oct 30, 2013 11:46 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 604
Post Re: RobotC connecting to NXT through Samantha
I'll have to give this another pass on my end and see if I can replicated the reported issue.

ROBOTC uses the upgraded Fantom DLL (National Instrument's developed driver for communicating with the NXT) to do all Wifi,Bluetooth and USB communication. The fact that it's returning almost instantly seems like it's either a) Erring out because of a version mismatch or b) Fantom thinks it doesn't have access to the network to look for Wifi devices (firewall, Symantec, or other could be blocking it)

Unfortunately it's kind of black magic for us to debug because we only have release version of the Fantom DLL and a header file... no source code to see what it's actually doing.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Wed Oct 30, 2013 11:53 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 604
Post Re: RobotC connecting to NXT through Samantha
Sent directly via e-mail, but posting here for general public:

One thing I would recommend is enabling debug tracing in ROBOTC to maybe help diagnose the issue:
1. Set Menu Level to "Super User" (Window - Menu Level - Super User)
2. Open Detailed Preferences - http://i.imgur.com/FNuSoly.png
3. In the "Internal" tab, set the radio button for "Message Tracing" to "Character Level"

Now try to connect via Samantha and send us the debug trace that is generated. This will help us investigate the issue.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Wed Oct 30, 2013 12:41 pm
Profile
Rookie

Joined: Tue Jan 21, 2014 3:34 pm
Posts: 1
Location: Newport News, Virginia
Post Re: RobotC connecting to NXT through Samantha
I know it has been a few months since this post, but I was wondering if any resolutions were found. I have a similar problem with RobotC suddenly refusing to acknowledge that the Samantha module is talking to the NXT. When I point a web browser to the Samantha module IP address, I get back a page with lots of information including that the NXT brick is connected and even what files are on it and what the battery voltage is. The blue "NXT" light on the Samantha is also on. I am able to control the robot via the FCS using wireless just fine. I have tried uninstalling and reinstalling RobotC (v3.62) and it still keeps saying the NXT is not connected and I should try powering it on.

I should note that I did think I was having a similar problem with the quick timeout, but from what it looks like now it is actually talking to the Samantha module and gets back a response very quickly. At least I see the Samantha IP address show up in the WiFi window. It just seems to think the NXT isn't connected. I'm responding to this post because I'm suspicious my problem is related to the one originally described. Any advice?

_________________
-David


Wed Jan 22, 2014 8:36 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 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.