Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Serial port on CRIO-FRC II (http://www.chiefdelphi.com/forums/showthread.php?t=100844)

cabbagekid2 21-01-2012 20:32

Serial port on CRIO-FRC II
 
We are having trouble opening the RS232 serial port on the new CRIO-FRC II. Using the exact same code, we were able to successfully open the port and use read/writes on the older 8-slot CRIO-FRC version 1. However, with the new 2012 4-slot version we are seeing an error upon initialization:

Using port: ASRL1::INSTR
error code: -1073807246

We have tried the NI serial port VISA module as well as the WPI version, with similar failures. Has anyone else encountered this problem?

Thank you

plnyyanks 21-01-2012 20:38

Re: Serial port on CRIO-FRC II
 
Not really sure what the answer is, but I looked up the error code (you can do that in Help->Explain Error) and got:

Code:

Error -1073807246 occurred at an unidentified location

Possible reason(s):

VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.


RufflesRidge 21-01-2012 20:40

Re: Serial port on CRIO-FRC II
 
Judging by the error text in the post above, I would guess you need to turn Console Out off with the imaging tool.

RyanN 21-01-2012 20:41

Re: Serial port on CRIO-FRC II
 
Do you have your cRIO imaged properly? Have you started a new project for this year?

cabbagekid2 22-01-2012 21:23

Re: Serial port on CRIO-FRC II
 
THanks RufflesRidge! You were right. We used the imaging tool to change the console setting and it worked.

Tommy.Brown 24-01-2012 16:45

Re: Serial port on CRIO-FRC II
 
Question: for connecting a computer to the serial port on the cRIO, does it require a basic serial cord, or a null modem cord?

Joe Ross 24-01-2012 18:01

Re: Serial port on CRIO-FRC II
 
Quote:

Originally Posted by Tommy.Brown (Post 1112742)
Question: for connecting a computer to the serial port on the cRIO, does it require a basic serial cord, or a null modem cord?

Null Modem. However, I haven't connected to the cRIO serial port recently, because netconsole makes me lazy.

Tommy.Brown 24-01-2012 18:48

Re: Serial port on CRIO-FRC II
 
Ok, thank you, we picked up a null modem cable adapter at our local Radio Shack. Does anyone know how to read in values from the serial port on the cRIO? We are using HyperTerminal to emulate a device that will send data to the cRIO via serial port. We know that the HyperTerminal is sending the data, and we know that the data is successfully being transferred down the cable. We are using C++ and we have yet to figure out the logic to reading the values from the buffer with the Read method.

Mark McLeod 24-01-2012 23:30

Re: Serial port on CRIO-FRC II
 
The console setting for serial out is:

9600
- BAUD
8 - Data Bits
None - Parity
1 - Stop Bit
None - Flow Control



Tommy.Brown 25-01-2012 23:31

Re: Serial port on CRIO-FRC II
 
Ok, thank you. After about 5 hours of sitting down and messing around with the serial port code in WindRiver we finally got it working.

Tristan Lall 25-01-2012 23:40

Re: Serial port on CRIO-FRC II
 
Quote:

Originally Posted by Mark McLeod (Post 1113046)
The console setting for serial out is:

9600
- BAUD
8 - Data Bits
None - Parity
1 - Stop Bit
None - Flow Control

9 600 baud over RS-232? I suddenly feel 20 years younger!

Tommy.Brown 26-01-2012 13:41

Re: Serial port on CRIO-FRC II
 
9600 baud is just the default value. The cRIO can handle up to roughly 230,000 baud.


All times are GMT -5. The time now is 20:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi