Notice: Undefined index: pagedesc in /var/www/www-neu/php/inc/functions.inc.php on line 1955
Binary Protocol Programming Example Code

Binary Protocol Programming Example Code


DOS
Borland C 3.1
(serial only)

Windows
VC6 / VS2008
(serial and socket I/O)

Software  Software
gpsxmple-2.7-dos_win.zip
April 4, 2017
529k bytes





Linux
gcc
(serial and socket I/O)

QNX 6.x
gcc
(socket I/O only)

Software  Software
gpsxmple-2.7-unix.tar.gz
April 4, 2017
416k bytes

This example program with C source demonstrates how external Meinberg devices can be accessed using a binary communication protocol, either via a serial RS-232 port, or via a network socket connection.

The protocol has originally been used with Meinberg GPS receivers only, so large parts of the code or comments refer to "GPS". Actually, however, most external devices support this protocol.

The example code is distributed in 2 archives: a .zip archive for Windows and DOS, and a .tar.gz archive for Unix-like systems. The sample program code in both archives of the same version is identical. However, the source code files use end-of-line characters according to the target operating systems, i.e. carriage return plus line feed for DOS and Windows, and line feed only for Unix-like systems.

The package contains a libray directory called mbglib which contains the source code of some API functions, and an example program in the base directory which demonstrates how to use those API functions.

Also, each of the archives contains subdirectories providing some build environment files according to the supported target operating system.

The files below the mbglib directory should be left untouched in order to simplify future maintenance of your own applications by just upgrading those files. If you think there are changes required in those files, or if there are any questions or suggestions, please don't hesitate to contact support@meinberg.de.

Depending on the target operating system, the example program works either via serial port (the default) or via a network socket connection, presumed that the connected target device supports this.

Please note that this binary protocol is not required for Meinberg bus level devices (PCI cards, some USB devices, etc.) that can be accessed directly via the internal data bus and are handled by the Meinberg driver software packages, and e.g. accessing PCI cards via the PCI bus is not supported by this binary protocol. Anyway, many PCI cards support this protocol via their serial port COM0 that is accessible via the 9 pin connector in the slot cover.

Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact Meinberg Mail Contact