Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR5000 Serial Input


Devin Oct 25, 2011 08:27 PM

I am trying to record data to a CR5000 from a device that outputs the following kind of serial message:

Byte#....Description.......HEX VALUE

1........INTRO MESSAGE.....80
2........INTRO MESSAGE.....F1
3........INTRO MESSAGE.....98
4........INTRO MESSAGE.....1E
5........INTRO MESSAGE.....61
6........ID..........................01
7........Sensor #1 Value.....FF
8........Sensor #2 Value.....7B
9........Sensor #3 Value.....81
.
.
35.......Sensor #29 Value....5D

The only option I see is the SerialInput function, but this requires having a starting string and a termination character. These hexadecimal values aren't characters, however... Is there a workaround or another way of doing this that I don't know about or is it not possible?

* Last updated by: Devin on 10/25/2011 @ 2:32 PM *


aps Oct 26, 2011 09:34 AM

We are in the process of releasing a new operating system for the CR5000 that has the serial I/O functions of the newer loggers in it. Those instructions should let you process that type of message. Please contact your sales office for the latest prerelease copy.

That OS includes the string processing functions of the other loggers and includes support for the SDM-SIO1. The only serial port supported for serial comms on the logger is the RS232 port but you can add SDM-SIO1s to give more ports.


R35 Jan 13, 2012 12:40 PM

Hello,
are there any news about the release of the new OS for the CR 5000 especially with the I/O function features?
Cheers


GTProdMgr Jan 13, 2012 08:56 PM

The Std6 OS versions have been approved internally. We are working to get them posted up to the website for download within a week or two.


Devin Jan 13, 2012 11:16 PM

This is wonderful news. Will I be able to use Com Ports (C1,C2,etc - like CR1000) or only dedicated RS-232 port? Thanks!


GTProdMgr Jan 14, 2012 12:53 AM

You will not be able to do serial communications via the control ports (C1, C2, etc.), nor will the RS-232 port do anything differently than it did in the past (still limited to the SerialInput instruction). However, if you purchase an SDM-SIO1 device and connect it to a CR5000 running the Std6 OS, then you will be able to use SerialOpen, SerialIn, SerialOut, SerialClose, and a few other Serial commands much the same way you do with a CR1000/CR3000 and its RS-232 or COMx ports.

When you use the SerialOpen command you specify 32+ the SDM address of the SDM-SIO1 for your port number and then the serial communications are routed through the SDM-SIO1 as a port.

From the CR5000 CRBasic Editor Help: The SDM-SIO1 acts like a virtual serial port to a CRBasic datalogger. The datalogger's serial functions can be used to control the device. Some have special functions when used with the SDM-SIO1, as outlined below. Refer to the SDM-SIO1 user's manual for complete information.


GTProdMgr Jan 14, 2012 12:56 AM

I should add that the same also applies to the CR9000X with OS Std6. An SDM-SIO1 can be used in the same way to perform Serial Input and Output.


GTProdMgr Jan 24, 2012 01:12 AM

The Std6 firmware (OS) versions for the CR5000 and
CR9000X are now available on our website for download.

http://www.campbellsci.com/downloads

The main changes are listed below. Note the SerialInput
change for the CR5000.

CR5000 Revisions:
-----------------
1. Support for the SDM-SIO1 device has been implemented. This enables the following
instructions to be used for serial communications while this device is connected to
the CR5000:

SerialClose
SerialFlush
SerialIn
SerialInBlock
SerialInChk
SerialInRecord
SerialOpen
SerialOut
SerialOutBlock

See details in the SerialOpen CRBasic Help topic for more information about how this is
accomplished. The SerialBrk instruction is not applicable to the SDM-SIO1 and therefore
not implemented. The SerialInput instruction has been removed. Serial communications via
the RS-232 port or via Control ports (C1,C2, etc.) of the CR5000 are not supported.
Communications with AVW200 series devices can be achieved when using the SDM-SIO1 device
and the program instructions listed above.

2. Support for the use of the SC115 device has been added. When the SC115 is connected to
the CR5000, a file device with the name "USB" will show in File Control.

3. CS I/O communications are now possible with the following devices:

SC32A
SC32B
COM220
NL100
NL200
RF401
RF450
MD485
SC-USB
SC115
DSP4


Contact customer support for details about which baud rates and other configuration details
are required for each device. SDC8 is not supported in the CR5000's CS I/O implementation.
You must use SDC7 for SDC channel support. The CR1000KD is not supported on the CR5000.

4. Variable Names up to 39 characters in length are now supported

5. Table Names up to 20 characters in length are now supported

CR9000X Revisions:
------------------
1. Support for the SDM-SIO1 device has been implemented. This enables the following
instructions to be used for serial communications while this device is connected to
the CR9000X:

SerialClose
SerialFlush
SerialIn
SerialInBlock
SerialInChk
SerialInRecord
SerialOpen
SerialOut
SerialOutBlock

See details in the SerialOpen CRBasic Help topic for more information about how this is
accomplished. The SerialBrk instruction is not applicable to the SDM-SIO1 and therefore
not implemented. Serial communications via the RS-232 port of the CR9032 are not supported.

2. Support for the use of the SC115 device has been added. When the SC115 is connected to
the CR9000X, a file device with the name "USB" will show in File Control.

3. The GPS and GPSTS instructions have been added. See the CRBasic Help topic for each
instruction to get more details about how they are used.

4. Variable Names up to 39 characters in length are now supported

5. Table Names up to 20 characters in length are now supported

Log in or register to post/reply in the forum.