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






Reply to topic  [ 14 posts ] 
Vex Serial Port usage. (SerialTransmitting function) 
Author Message
Rookie

Joined: Fri Feb 01, 2008 1:20 pm
Posts: 7
Location: Hammond, LA
Post 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
Profile
Rookie

Joined: Fri Feb 01, 2008 1:20 pm
Posts: 7
Location: Hammond, LA
Post 
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
Profile
Rookie

Joined: Fri Feb 01, 2008 1:20 pm
Posts: 7
Location: Hammond, LA
Post 
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
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 601
Post 
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
Profile
Rookie

Joined: Fri Feb 01, 2008 1:20 pm
Posts: 7
Location: Hammond, LA
Post 
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
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 614
Post 
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
Profile
Rookie

Joined: Fri Feb 01, 2008 1:20 pm
Posts: 7
Location: Hammond, LA
Post 
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
Profile
Rookie

Joined: Sat Sep 20, 2008 12:02 am
Posts: 11
Post 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
Profile
Rookie

Joined: Fri Feb 01, 2008 1:20 pm
Posts: 7
Location: Hammond, LA
Post 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
Profile
Rookie

Joined: Mon Feb 02, 2009 3:29 pm
Posts: 1
Post 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
Profile
Rookie

Joined: Sat Sep 20, 2008 12:02 am
Posts: 11
Post 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
Profile
Rookie

Joined: Tue Mar 10, 2009 2:43 pm
Posts: 21
Location: Houston, TX
Post 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
Profile WWW
Rookie

Joined: Tue Mar 10, 2009 2:43 pm
Posts: 21
Location: Houston, TX
Post 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
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3165
Location: Rotterdam, The Netherlands
Post 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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 14 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.