Author |
Message |
neocognitron
Rookie
Joined: Fri Feb 01, 2008 1:20 pm Posts: 7 Location: Hammond, LA
|
 Vex Serial Port usage. (SerialTransmitting function)
Ok I am still trying to get a useful signal out of the Vex. According to Vex there is no interface to the I^2C bus available to the user.
That leaves the option of bit banging out on the A/D ports and the serial ports.
The Tx/Rx are going to be tied up with a camera, so I want to give the remaing serial port a try.
Is there an API document showing all available functions/variables and their arguments for RobotC?
The code completion feature showed a function called SerialTransmitting, but did not have an agument list, so I really have no idea of how to use it (or if it would even do what I need).
Any help or questions would be appreciated.
|
Fri Feb 08, 2008 1:23 pm |
|
 |
neocognitron
Rookie
Joined: Fri Feb 01, 2008 1:20 pm Posts: 7 Location: Hammond, LA
|
I just realized that serialTransmitting is a boolean. Yeah, that makes sense, what with the name being that of a condition rather than a procedure. Oh well.
|
Fri Feb 08, 2008 1:48 pm |
|
 |
neocognitron
Rookie
Joined: Fri Feb 01, 2008 1:20 pm Posts: 7 Location: Hammond, LA
|
Another question (if anyone is paying attention). Does RobotC support use either of the Serial ports? If not, is it possible that I can add some code to the user processor firmware and still use RobotC, or do I have to use MPLAB for everything at that point?
|
Mon Feb 11, 2008 3:08 pm |
|
 |
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 620
|
I believe once you start modifying the firmware, you're stuck to MPLAB at that point. I'll take a look at accessing in the serial ports directly.
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
Mon Feb 11, 2008 6:24 pm |
|
 |
neocognitron
Rookie
Joined: Fri Feb 01, 2008 1:20 pm Posts: 7 Location: Hammond, LA
|
Thanks for the response.
I appreciate you looking into this as well. From what I've found on various forums, serial support for communicating from one box to another (or the pc or different microcontrollers) is a something that many people would like to see, but few have been able to get working.
I would imagine you already know where to start for adding serial port access, but just in case . . .
http://www.kevin.org/frc/2005/
the file frc_serial_ports.zip contains a possible solution.
|
Tue Feb 12, 2008 5:36 pm |
|
 |
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 616
|
There has not been a lot of demand for end user control over either of the VEX serial ports. THe ROBOTC firmware internally has buffered interrupt based software device drivers for both of the VEX serial ports. Currently they are used as follows:
1. The port to the programming cable is used for downloading programs and by the run-time debugger.
2. The other port is used for connecting to a CMUCAM camera.
NOTE: The CMUCAM is fully supported in the FRC controller. The last changes to the VEX firmware resulted in overflowing the available flash memory (by 30 bytes) and the CMUCAM support was removed from the VEX firmware. It will be re-included as soon as space is recovered for its support.
|
Fri Feb 15, 2008 5:38 pm |
|
 |
neocognitron
Rookie
Joined: Fri Feb 01, 2008 1:20 pm Posts: 7 Location: Hammond, LA
|
I appreciate you looking into it none the less.
I was able to get the serial port working under user program control in mplab. Of course that means no more RobotC. Part of the whole part of using the vex platform was to have a unified platform/code base for all of our robots.
I think we will still use RobotC for the others, that leaves just this one using mplab and C.
Oh well.
|
Fri Feb 15, 2008 9:07 pm |
|
 |
michael714
Rookie
Joined: Sat Sep 20, 2008 12:02 am Posts: 11
|
 Demand for Vex serial port usage
Hey folks, Just wanted to put my two cents in regarding access to the Vex serial ports. On the NXT, you have a built-in LCD display. On the Vex, you do not. It would be nice to be able to use the serial port (TX and RX in the I/O area) to write out to various serial devices including serial LCD panels. Any efforts along those lines would be greatly appreciated.
|
Tue Oct 21, 2008 12:24 am |
|
 |
neocognitron
Rookie
Joined: Fri Feb 01, 2008 1:20 pm Posts: 7 Location: Hammond, LA
|
 Re: Vex Serial Port usage. (SerialTransmitting function)
Hi, Though obviously RobotC is not the answer (currently) for serial communication from the VEX, I was able to get seriain/out to work using a couple of different libraries. If you want some pointers on that I can perhaps help. I still like to use RobotC for applications that don't require serial. Though I was ultimately not able to get the Vex to communicate reliably with the Atom28, I am using it with Lynxmotion's excellent servo controller http://www.lynxmotion.com/Product.aspx?productID=395&CategoryID=52. As far as using an LCD goes I haven't tried, but I'm sure its possible as long as asynchronous serial is supported by the screen.
|
Tue Oct 21, 2008 11:05 pm |
|
 |
plskeggs
Rookie
Joined: Mon Feb 02, 2009 3:29 pm Posts: 1
|
 Re: Vex Serial Port usage. (SerialTransmitting function)
Looks like the RobotC folks (Dick Swan, Timothy Friez) have not gotten around to doing anything about this lack of access to the Vex's serial port.
What do you say, guys? Can you give us an update on this?
If you can't manage to fit the CMUcam code into the Vex firmware, I would think you could at least make the (now unused) serial port accessible.
|
Mon Feb 02, 2009 3:36 pm |
|
 |
michael714
Rookie
Joined: Sat Sep 20, 2008 12:02 am Posts: 11
|
 Re: Vex Serial Port usage. (SerialTransmitting function)
I second the motion. It would be nice to be able to use the Vex serial communication via RobotC for things like a serial LCD display.
|
Thu Feb 19, 2009 3:40 am |
|
 |
lyncas
Rookie
Joined: Tue Mar 10, 2009 2:43 pm Posts: 21 Location: Houston, TX
|
 Re: Vex Serial Port usage. (SerialTransmitting function)
Would it be possible to just open up the values coming out of the debugging interface? Two features I would like the most are ....
1. SENSOR LOGGING Reading sensor values of the serial port. Then I can save the sensor values to a txt file for data logging .
2. MOTOR CONTROL Set motor PWM values from serial port commands.
|
Tue Mar 10, 2009 2:54 pm |
|
 |
lyncas
Rookie
Joined: Tue Mar 10, 2009 2:43 pm Posts: 21 Location: Houston, TX
|
 Re: Vex Serial Port usage. (SerialTransmitting function)
I was hoping to revive this thread.
Can RobotC at least release documentation on how to read the debug windows (outside of RobotC) ?
If RobotC opens up their serial interface, I think you will finally convince all the remaining MPLAB users to finally convert.
|
Fri Jun 26, 2009 4:31 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Vex Serial Port usage. (SerialTransmitting function)
Maybe you could send a mail to support@robotc.net with this suggestion. You can tell them I think it's a good idea as well  - 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]
|
Sat Jul 30, 2011 5:00 am |
|
|