Hello !
I am a student on IT doing academic
research and
work on a maritime
security project. The goal of the
project is to spoof a vessel and also build a honeypot.
Now, what I am stuck on for about two weeks is simulating the NMEA2000 port, and sending the data through VIRTUAL
PORTS to a
destination such as
OpenCPN or even OpenSkipper so it can be read.
I have tried countless simulators that were for free online but the most comprehensive guide that I found was the one from OpenSkipper which I followed step by step with no success. On the
GPS side it seems to be receivng some values that are redeable when I stear but overall like knots or other aspects are not being able to be read.
I have read the
documentation from the OpenSkipper github link:
https://github.com/OpenSkipper/OpenSkipper.
If it helps, this is example of PUTTY output with
NMEA simulation and virtual
ports.
HTML Code:
Arian Atapour • 6 hours ago
Update :
I have tried Putty and I get this from NMEA simulator:
{"cmd":"GetInfo", "CheckKey":"016008DAC2FA0AFC361D7DFF251B2028"}▒▒▒▒d9▒▒NMEA2000 simulator GPS1.17.1.3121.17.0.02097151▒▒▒▒d▒▒▒▒▒x▒%▒▒▒▒e9▒▒NMEA2000 simulator Log1.17.1.3121.17.0.02097150▒▒▒▒e▒▒▒▒▒x▒+▒▒▒▒f9▒▒NMEA2000 simulator Wind meter1.17.1.3121.17.0.02097149▒▒▒f▒▒▒▒▒▒▒▒▒▒▒▒g!9▒▒NMEA2000 simulator outside envir1.17.1.3121.17.0.02097148▒▒▒▒g"▒▒▒▒▒▒▒▒▒▒▒▒h%9▒▒NMEA2000 simulator engine1.17.1.3121.17.0.02097147U▒▒▒h&▒▒▒▒▒d▒▒▒▒▒i)9▒▒NMEA2000 simulator fluid level1.17.1.3121.17.0.02097146{▒▒▒i*▒▒▒▒▒▒▒▒
I will also post here the raw document text for those who are not into coding.
Raw instructions:
Testing OpenSkipper with NMEA simulator
You can test OpenSkipper with NMEA simulator. NMEA simulator can send simulated data to COM port. So you need linked COM port pair for testing. This can be done with 2 real COM ports linked with null
modem cable or great null
modem emulator com0com. Here are instructions for installing all necessary applications without need for any physical COM port for testing.
Download latest com0com
http://sourceforge.net/projects/com0...atest/download
Unzip package.
If you have Windows 8/8.1 do first extra procedures on "Disable driver signature enforcement for Windows8" at the end of the page.
Run installalation setup.exe
On
installation, untick COM#-COM# selection.
At end of
installation choose "Launch Setup" or Start "All Programs"-com0com-Setup.
Now you should see "Virtual Port Pair 0" CNCA0-CNCB0
Check for both CNCA0 and CNCB0 "enable buffer overrun"
Rename CNCA0 -> COMN2KIN and CNCB0 -> COM27 and press Apply.
Download latest NMEA simulator
http://kave.fi/Apps/NMEA-Simulator/NMEA-Simulator.zip
Unzip package and start NMEA_Simulator.exe
Goto Tools-Options...
On "NMEA2000 Port" choose from list COMN2KIN and press OK
Tick "Run"-checkbox on middle low.
Download latest OpenSkipper
http://www.kave.fi/Apps/OpenSkipper/OpenSkipper.zip Note that official version will be on
http://sourceforge.net/projects/openskipper/files/, update may be sometimes delayed.
Unzip package and start OpenSkipper.exe
With default package settings you will get error about missing COM ports. Just pass them with OK.
Choose View-"Data Streams..."-"NMEA 2000 (Actisence NGT-1-USB)".
Choose port COM27 for Main NMEA2000 stream, if it is not already selected.
If stream stated is not "Connected", press Connect.
Now if everything went right, you should see data on OpenSkipper from NMEA simulator. You can e.g. slide throddle up and turn
rudder a bit, then your
boat start to move and slowly turn. You can see values changing on OpenSkipper displays.
You can test OpenSkipper Web server by enabling it:
First change web server port to 2222 by going to OpenSkipper File-"Settings..." and fill 2222 to "WWW port:" and press OK.
Next goto View-"Web Server...".
If you want to try web pages from any computer within your network, uncheck "Local host only".
Check "Enable Web Server". Open
skipper may complain about setting server rights.
Now on same computer open browser and set address to 127.0.0.1:2222
Next you can start to define diplays for OpenSkipper for your own needs. You can also create an other COM port pair on com0com setup and rename them e.g. COMIN-COMOUT (OpenSkipper can only see port names starting with COM) and then use that pair for NMEA0183 data on simulator and OpenSkipper. So in principle you can simulate your own yacht data by configuring related data to simulator and OpenSkipper.
Have fun, but when you go out to the sea, remember to turn OpenSkipper to use real data instead of simulated data!
You can use NMEA simulator for personal use for free. For
commercial use, please contact author (see Help-About on NMEA simulator) to support development.
There is no warranty, so use all applications with your own risk.
Timo Lappalainen/10.12.2016
Disable driver signature enforcement for Windows8
Before you can install unsigned drivers like com0com, you have to disable driver signature enforcement. There is video how to do it on
and textual solution on
http://answers.microsoft.com/en-us/w...4-87c7451af222
Below are simple textual instructions.
Goto System settings (Hover mouse upper right corner and choose settings)
Click
Power
Hold the shift key while clicking on Restart
Select Troubleshoot > Advanced Options > Startup Settings > Restart
After Restart select option 7.
Now you can run your driver setup program.
In the end, I truly don't want to trim my
research project by not doing this part so I am open to any solutions

Thanks !