|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inventor Install with Vista64 Laptop??? | Ziaholic | Inventor | 9 | 11-01-2009 23:52 |
| Control a vex with a laptop? | antiNeo | Programming | 17 | 24-06-2008 12:51 |
| Help: IFI loader not communicating with control unit | red_alert_13 | Programming | 9 | 20-01-2006 17:30 |
| Problem with communicating with STAMP through serial port | Skabana159 | Technical Discussion | 2 | 06-02-2003 21:10 |