Skip to content

Commit 5ec26ef

Browse files
authored
Merge pull request #7 from Ddoiron-cidco/master
clean repo and update docs
2 parents 47c3774 + be0b96f commit 5ec26ef

File tree

8 files changed

+34
-293
lines changed

8 files changed

+34
-293
lines changed

BOM.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Raspberry pi 3B+
2-
https://canada.newark.com/raspberry-pi/rpi3-modbp/sbc-arm-cortex-a53-1gb-sdram/dp/49AC7637
3-
Environ 50$ CAD
2+
https://www.waveshare.com/product/raspberry-pi/boards-kits/raspberry-pi-3/raspberry-pi-3-model-b-plus.htm
3+
4+
FT232RL USB TO RS232/485/TTL Interface Converter, Industrial Isolation
5+
https://www.waveshare.com/usb-to-rs232-485-ttl.htm?sku=15817
46

5-
RS422 / RS485 Shield for Raspberry Pi
6-
https://www.hwhardsoft.de/english/webshop/shields/#cc-m-product-11173736397
7-
Environ 60$ CAD
87

Makefile

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,48 @@
11
# README for nmeaSIMULATOR.py
22
## Sonar simulator NMEA-0183
33

4-
*implementation of PyPi : nmeasim https://pypi.org/project/nmeasim/#description*
4+
55

66
### foncitonnalities :
77

88
Generate nmea-0183 string of types :
9-
- Geospatial (GGA, GLL, RMC, VTG, ZDA) - simulated using a consistent location/velocity model, time using machine time (not NTP, unless the machine happens to be NTP synchronised).
10-
- Satellites (GSA, GSV) - faked with random azimuth/elevation.
119
- Depth of water (SDDPT)
1210

1311
### HOW TO MAKE IT WORK:
1412

1513
On a Raspberry pi :
16-
First, setting the baud rate at 4800 : stty -F /dev/ttyUSB0 4800
17-
Then, in /SonarSimulator/src python3 nmeaSIMULATOR.py 1
1814

15+
1. Install ubuntu server on as sdcard with the user ubuntu
16+
17+
2. Connect the usb serial adapter on the Raspberry
18+
19+
3. apply the power on the raspberry
20+
21+
4. validate if the serial adapter is detected by the OS
22+
ls /dev/ttyU*
23+
you should see ttyUSB0
24+
25+
5. clone the repository in /home/ubuntu
26+
27+
6. Validate and modify the setting for the serial port and baudrate in the autolaunch.sh
28+
nano /home/ubuntu/SonarSimulator/autolaunch.sh
29+
python /home/ubuntu/SonarSimulator/Script/sonar_simulator_DPT.py /dev/ttyUSB0 9600
30+
the 2 last argument are the serial port and the baudrate
31+
ex:
32+
python /home/ubuntu/SonarSimulator/Script/sonar_simulator_DPT.py /dev/ttyUSB1 9600
33+
python /home/ubuntu/SonarSimulator/Script/sonar_simulator_DPT.py /dev/ttyAMA0 115200
34+
35+
7. go in the install directory and run the installation script
36+
cd /home/ubuntu/SonarSimulator/Install
37+
./install.sh
1938

20-
### install requirements for nmeaSim
21-
install_requires =
39+
The script is installed as a service.
40+
If you do some modification in the autolaunch.sh file you have to relaunch the service.
41+
sudo systemctl restart nmea
2242

23-
pyserial
43+
to show the status of the service : sudo systemctl status nmea
44+
to start the service : sudo systemctl start nmea
45+
to stop the service : sudo systemctl stop nmea
2446

25-
geographiclib
2647

27-
importlib.metadata; python_version<'3.8'
2848

-1.68 KB
Binary file not shown.
-1.4 KB
Binary file not shown.

install_sonar_simulator.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/nmeaSimulator.py

Lines changed: 0 additions & 106 deletions
This file was deleted.

src/simulate-sonar.cpp

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)