Author Topic: ais dispatcher crc failed  (Read 3367 times)

mlombar3

  • New user
  • Posts: 1
    • View Profile
ais dispatcher crc failed
« on: 16 June, 2015, 05:12:13 pm »
when i run aisdispatcher with my usb dvb-t R820T rtl in tcp mode
the terminal makes me these errors
can anybody help me?



Last login: Tue Jun 16 16:04:36 on ttys000
MacBook-Pro-di-marco:~ mlombar3$ cd /aisdispatcher
MacBook-Pro-di-marco:aisdispatcher mlombar3$ ./aisdispatcher
AIS Dispatcher v1.2
Developed by Astra Paging Ltd (http://www.astrapaging.com)

----------------------------------------------------------------------------------------

Please support the project by sharing your AIS data with AISHub (http://www.aishub.net)!

----------------------------------------------------------------------------------------

Usage:
1. TCP client input:
   aisdispatcher -t -h <host> -p <port> -H <host1:port1>,<host2:port2>,... [-x <timeout>] [-y <timeout>] [-D <ds time>] [-v]
2. UDP input:
   aisdispatcher -u -h <host> -p <port> -H <host1:port1>,<host2:port2>,... [-D <ds time>] [-v]
3. Serial input:
   aisdispatcher -r -d <device> -s <baudrate> -H <host1:port1>,<host2:port2>,... [-D <ds time>] [-v]
4. <stdin> input:
   aisdispatcher -i -H <host1:port1>,<host2:port2>,... [-D <ds time>] [-v]

Options:
   -t    TCP client input mode
   -u    UDP input mode
   -r    Serial input mode
   -i    <stdin> input mode
   -h    TCP server host (in TCP input mode)
      UDP bind host (in UDP input mode 0.0.0.0 means all interfaces)
   -p    TCP server port (in TCP input mode)
      UDP listen port (in UDP input mode)
   -d    Serial device alias (ex. /dev/ttyS0)
   -s    Serial device baud rate
   -H    Destination(s) <host1:port1>,<host2:port2>...
   -x    Reconnect timeout (time interval between TCP connection attempts, 10 seconds by default)
   -y    Data timeout (automatic TCP reconnect if there are no data for the specified time, 300 seconds by default)
   -D    Downsampling time (0 seconds = no downsampling by default. MAX=300)
   -v    Dispatch VDM messages only (dispatch all messages by default)
   -g    Show NMEA dump
   -G    Turn debug on
   -X    Seconds for exporting KML/KMZ (default=0 export is disabled)
   -z    Use ZIP compression (Google KMZ default=yes)
   -P    Time to delete vessels from memory snapshot older than 'N' minutes (default=15 min.)
   -S    Directory for saving KML/KMZ file (default: install_dir/kml_export)
   -W    Image directory url (default: empty using Google Earth default icons)

Examples:
TCP example:    aisdispatcher -t -h data.aishub.net -p 1234 -H 127.0.0.1:5000,192.168.1.5:5001 -x10 -y60
UDP example:    aisdispatcher -u -h 0.0.0.0 -p 5000 -H data.aishub.net:1235 -D30 -v
Serial exmaple: aisdispatcher -r -d /dev/ttyS0 -s 38400 -H 192.168.1.5:5001
STDIN exmaple:  cat nmea.log | aisdispatcher -i -H localhost:1234

MacBook-Pro-di-marco:aisdispatcher mlombar3$ ./aisdispatcher -t -h 127.0.0.1 -p 1234 -H 128.0.0.3:5000 -x10 -y60 -G
Connecting to 127.0.0.1:1234
Connected
CRC failed RTL0
CRC failed ??L???
CRC failed m/!????
CRC failed ?Ig?3???
CRC failed ??
CRC failed ???]1U???
CRC failed ?:???
CRC failed ?
CRC failed ?
CRC failed ?
CRC failed ?
CRC failed ?"??
CRC failed ??
CRC failed ?k?tt?
CRC failed ????\??k?
CRC failed ?
CRC failed ?
CRC failed
CRC failed ???
CRC failed ????[?&
CRC failed ????l?q?
......

lucienve

  • Ensign
  • **
  • Posts: 10
    • View Profile
Re: ais dispatcher crc failed
« Reply #1 on: 29 June, 2015, 02:00:32 am »
Make sure you are setting the baud rate appropriately for your source with the -s command; 38400 is a common rate.