Cruisers Forum
 


Join CruisersForum Today

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 16-05-2019, 02:26   #1
Registered User
 
pendragon's Avatar

Join Date: Aug 2008
Boat: Van de Stadt 38"
Posts: 105
RTL-SDR stick for AIS reception in win XP

I recently setup a Windows 7 laptop to receive AIS data on CPN, using a rtl-SDR usb stick, which works great.
I use a batch file to start aisdeco2.exe.
The bat looks like this:

@echo off
cmd /c aisdeco2.exe --gain 38.6 --freq-correction 58 --freq 161975000 --freq 162025000 --net 30007 --udp 127.0.0.1:10110
PAUSE
exit

But this does not work on Win XP, as instead of aisdeco2.exe, aisdeco2_xp.exe must be run as a bat file.
I substituted the file names, but that does not work: As follows:

@echo off
cmd /c aisdeco2_xp.exe --gain 38.6 --freq-correction 58 --freq 161975000 --freq 162025000 --net 30007 --udp 127.0.0.1:10110
PAUSE
exit

Executing this bat file, XP comes up with " aisdeco2_xp.exe is not recognized as an internal or external command. Press any key......."
So I am stuck here

The zadig XP drivers and CPN 4.4 are installed
Does anyone have a solution or a correct batch file?
__________________

pendragon is offline   Reply With Quote
Old 16-05-2019, 03:38   #2
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,384
Re: RTL-SDR stick for AIS reception in win XP

The error message is clear. From the working directory where the batch file is being launched the file aisdeco2_xp.exe does not exist. Neither is the file found anywhere in folders listed in the PATH environment variable.

What folder contains the file aisdeco2_xp.exe?

I would also suggest to compare the PATH variable on the Win7 machine to the XP machine. You can see the PATH value by typing:

echo %PATH%

On each computer.
__________________

transmitterdan is online now   Reply With Quote
Old 16-05-2019, 04:09   #3
Registered User
 
pendragon's Avatar

Join Date: Aug 2008
Boat: Van de Stadt 38"
Posts: 105
Re: RTL-SDR stick for AIS reception in win XP

On the Win7 pc the files are in C:\Users\T61Win7Pro\Desktop\Navigation\AIS Black Box\AISdeco2
On the Win7 pc when the usb stick is plugged into the pc
(no VHF antenna connected), on executing the bat file, I get:

2019-05-16 22:51:22.959 INFO AiSDeco2 v.20150415
Found Rafael Micro R820T tuner
Supported Gains (dB): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7
22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
Freq: 161.927 MHz
Freq Correction: 58 ppm
Gain: 38.6 dB
That's working properly

On th XP pc the same files located on C:\AIS\ AIS Black Box\AISdeco2_xp.exe
But here I get " aisdeco2_xp.exe is not recognized as an internal or external command. Press any key......."

This is NOT working

Not sure WHERE to type " echo %PATH% "
pendragon is offline   Reply With Quote
Old 16-05-2019, 05:11   #4
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,384
Re: RTL-SDR stick for AIS reception in win XP

Quote:
Originally Posted by pendragon View Post
Not sure WHERE to type " echo %PATH% "
Type it into a command prompt on both computers and tell us what they are.
transmitterdan is online now   Reply With Quote
Old 16-05-2019, 09:06   #5
Registered User

Join Date: Sep 2015
Location: Hailey, ID
Boat: Gulf 32 & Nimble 20
Posts: 569
Re: RTL-SDR stick for AIS reception in win XP

In your batch file try using the full path to the executable, so instead of:


cmd /c aisdeco2_xp.exe --gain 38.6 --freq-correction 58 --freq 161975000 --freq 162025000 --net 30007 --udp 127.0.0.1:10110


Use:
cmd /c "C:\AIS\ AIS Black Box\AISdeco2_xp.exe" --gain 38.6 --freq-correction 58 --freq 161975000 --freq 162025000 --net 30007 --udp 127.0.0.1:10110


(since there are spaces in the folder name you'll need to wrap the full path file name in quotes).


-- Bass
__________________
Hailey, Idaho & Bellingham, WA
Sailing blog: http://Sailing.PictureOfNectar.com
basssears is offline   Reply With Quote
Old 16-05-2019, 14:13   #6
Registered User
 
pendragon's Avatar

Join Date: Aug 2008
Boat: Van de Stadt 38"
Posts: 105
Re: RTL-SDR stick for AIS reception in win XP

That worked spot-on. Receiving AIS DATA perfectly. Many thanks Bass.

I am just wondering why Windows7 does not need the full path in the batch file, as the AIS folder is located in C:\Users\T61Win7Pro\Desktop\Navigation\ais black box\
The file is:
@echo off
cmd /c aisdeco2.exe --gain 38.6 --freq-correction 58 --freq 161975000 --freq 162025000 --net 30007 --udp 127.0.0.1:10110
PAUSE
exit

Yet it works........
Just wondering....................

Either way many thanks to Transmitterdan and Bass
pendragon is offline   Reply With Quote
Old 16-05-2019, 15:18   #7
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,384
Re: RTL-SDR stick for AIS reception in win XP

The most likely explanation is that the PATH variable is not including the correct folder on one of the machines.
__________________

transmitterdan is online now   Reply With Quote
Reply

Tags
ais, reception

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AIS reception, RTL-SDR vs Vesper XB-8000 JSantos OpenCPN 8 18-11-2016 14:42
Fast cheap AIS using $20 rtl-sdr DVB-T SDR Dongles ! wetduck OpenCPN 166 20-02-2016 12:45



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 19:25.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.