AMIJ DSCDMA Command Port (COM17) Driver



Port, which would be the program controlling PowerSDR. In the example below, Virtual Port Pair 0 (com7/17) is used for CAT. Com7 is the comport used by the controlling program (a logger, PC-ALE, MixW, etc) and Com17 is configured as the comport in PowerSDR. Since Com7 is the sending port and Com17 is the receiving port, you would want to. Virtual Serial Port Driver Instructions - 64 bit Windows 7 Dec 6, 2009 ©2009 SoftWx, Inc. 1) Download com0com driver. Note that com0com is an open source driver project, and is not a product of SoftWx, nor is there any affiliation between SoftWx and the author of com0com. Load IDBase v125162 Ok! Operation: HW Report v2.19 HWreport: Mode: eMMC 1. Make sure device is powered off. Power off, if need. Wait 20 seconds after. Var.experiment.serialport.write(chr(1)) Here is where I ran into the error: SerialException: Attempting to use a port that is not open If I remove the line 'var.experiment.cleanupfunctions.append(var.serialport.close)' and place it as inline script at the end of the experiment, then the whole experiment will run but will give the error.

This example shows you how to read the data from a GPS receiver connected to a computer, and parse the National Marine Electronics Association(NMEA) data.

Drivers

NMEA Data from GPS Receiver

National Marine Electronics Association (NMEA) format is a specification that defines how data is transmitted between various marine electronic devices. Most of the GPS receiver output data in the NMEA format.

The data is transmitted in a sequence called a sentence. Each sentence is independent of the other sentences from the receiver. Sentences contain information such as latitude, longitude, speed, and time as ASCII characters. The data in a sentence are comma separated. The data is output on the serial port of the receiver at an interval called the Update Rate.

NMEA Sentence Format

Port

The parser implemented in this example can be used to parse RMC, CGA, GSA, and VTG sentences. The message format for each of these sentences are explained below. The message formats are based on the protocol specification mentioned in the u-blox 6 Receiver Description.

RMC Message Format

GGA Message Format

GPVTG Message Format

GSA Message Format

Hardware Setup

Required Hardware

  • Ublox NEO-6M GPS Module

  • Serial to USB signal converters like FTDI (If the GPS module cannot be directly connected to computer using USB)

If a USB connector is available on the GPS receiver, connect the GPS module directly to the computer via USB Cable and install the required drivers. Otherwise, use serial to USB converters, to convert the serial transmissions to USB signals.

Create Serial Port Object

AMIJ DSCDMA Command Port (COM17) Driver

Create a gpsReceiver object and associate it with the serial port on which GPS module is connected. The serial data from the GPS module follows 9600 8N1 format.

GPS outputs data in multiple sentences which follows NMEA format. The read method of the gpsReceiver class returns frames of raw GPS data. The start of each frame is assumed as an RMC sentence and the end of a frame is assumed to be the start of the next RMC sentence. The number of frames returned can be specified as an argument to the read function. By default, the function returns one frame of NMEA data. Make sure the Ublox-6M module is configured to its default state, where the Baud Rate is 9600, Update Rate is 1 hz and the module outputs the messages corresponding to RMC, GSA, GGA, and VTG IDs.

For multiple number of frames, specify the number of NMEA frames as an argument in the read function.

Parse GPS Data

The HelperParseGPSData function in the example folder can be used to parse the GPS Data. The implemented parser is capable of decoding RMC, GGA, GSA, and VTG Sentences. The parser function returns a structure whose fields correspond to the data decoded from the corresponding sentence. If the receiver does not output a value, the corresponding checksum field in the structure will be empty. The ChecksumValidity field determines the validity of the received data.

The below code can be used to parse for RMC, GGA, GSA, and VTG sentences.

Amij Ds Cdma Command Port (com17) Driver Download

If there are multiple NMEA sentences available in the input raw GPS Data, an array of structures is returned as output. The size of the array will be the number of available NMEA sentences corresponding to the message IDs.

If an NMEA sentence corresponding to a message ID is not available in the input data, the output structure corresponding to that message ID will return null fields except for MessageID field in the structure. These outputs can be suppressed using tilde operator.

The flush method of the object can be used to flush the input buffers associated with the gpsReceiver object.

Amij Ds Cdma Command Port (com17) Drivers

Clean Up

When the connection is no longer required, disconnect and delete the object.

To get help on parser function, use

DSCDMA

To get help on gpsReceiver object, use