|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Communicating with a laptop
Okay, so, now that all of team 1058's competitons are over, we are playing around with some coding. We plan on making our robot driven via a wireless 360 controller. Currently we have it working via a Laptop, passeing data to an arduino, then to the digital/analog IO on teh DS, however, this is inefficient, and slow. Is ther a way i can directly communicate from a laptop to the DS (or maybe even to the robot with wifi???".
I'm not 100% sure, but cant i send an array of bytes through a digital port from a serial port on the laptop (wit the proper hard ware of course)?? How do I do that? Can i use teh second ethernet port, and send data that way? |
|
#2
|
||||
|
||||
|
Re: Communicating with a laptop
To have the laptop control the robot directly, take a look at [Dave Flowerday]'s virtual driver station software.
For information on sending serial data through the DS's digital inputs, check out this prior discussion. --Ryan |
|
#3
|
||||
|
||||
|
Re: Communicating with a laptop
Also keep in mind that there is a full network stack in vxWorks, so you can communicate over the network too using traditional socket programming. We put a lightweight webserver on our bot so we can control it by accessing a webpage.
![]() |
|
#4
|
||||
|
||||
|
Re: Communicating with a laptop
So using the socket programming in vxWorks you can set up a socket on your laptop and a socket on your laptop and communicate with the two?
What about the user data packet already sent back to the robot from the DS? Is there any way to access that? |
|
#5
|
||||
|
||||
|
Re: Communicating with a laptop
Quote:
Quote:
|
|
#6
|
||||
|
||||
|
Re: Communicating with a laptop
I'm not a huge fan of LabVIEW... I'm kind of a C++ guy. Would sending data back using the DS be legal in competition?
|
|
#7
|
|||||
|
|||||
|
Re: Communicating with a laptop
It was legal last year. That's exactly what the Dashboard packets are for.
|
|
#8
|
||||
|
||||
|
Re: Communicating with a laptop
Sorry, I misspoke. How could a laptop get access to the DS packets going back to the robot so that the laptop can communicate to the robot without using LabVIEW?
|
|
#9
|
|||||
|
|||||
|
Re: Communicating with a laptop
I misunderstood the question anyway. Sending arbitrary data to the robot is not supported by the Dashboard protocol; it's one-way UDP from the robot only.
|
|
#10
|
||||
|
||||
|
Re: Communicating with a laptop
Thanks for clearing up the confusion. And using sockets during competition would probably be illegal. That's unfortunate... I was hoping for two-way communication. Oh well... at least we can have it for debugging.
|
|
#11
|
||||||
|
||||||
|
Re: Communicating with a laptop
Last year, I did not find any rule that made it illegal to use your own socket interface to communicate from the dashboard to the robot. It would be very easy for FIRST to firewall off unnecessary ports (I don't know if they did or not). There was a few questions on the Q/A about what ports were open, but there was never an adequate answer.
|
|
#12
|
||||
|
||||
|
Re: Communicating with a laptop
So we shouldn't completely rule it out then, but try to get a better answer to whether FIRST will allow us to use sockets?
Also, if it wouldn't be too inconvenient, would you kindly give me a link to the networking API for VxWorks? I'm browsing around in the library documentation but dont' know where to look. EDIT: Is this what I'm looking for? http://www.slac.stanford.edu/exp/gla...ckLib.html#top Last edited by slavik262 : 12-11-2009 at 10:35 AM. |
|
#13
|
||||
|
||||
|
Re: Communicating with a laptop
yes, that is the docs.
see http://www.chiefdelphi.com/forums/sh...ad.php?t=72874 and download the link on the 4th post for a small library using sockLib the man documentation is also in C:\WindRiver\vxworks-6.3\man\cat1\sockLib.1 and C:\WindRiver\vxworks-6.3\man\cat2\functionname.2 |
|
#14
|
||||
|
||||
|
Re: Communicating with a laptop
Sorry to bump this, but where is the Q & A where we can ask about using sockets? Will it be on the FRC website once competitions start up?
|
|
#15
|
||||
|
||||
|
Re: Communicating with a laptop
FIRST forums for official answers
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inventor Install with Vista64 Laptop??? | Ziaholic | Inventor | 9 | 01-11-2009 11:52 PM |
| Control a vex with a laptop? | antiNeo | Programming | 17 | 06-24-2008 12:51 PM |
| Help: IFI loader not communicating with control unit | red_alert_13 | Programming | 9 | 01-20-2006 05:30 PM |
| Problem with communicating with STAMP through serial port | Skabana159 | Technical Discussion | 2 | 02-06-2003 09:10 PM |