1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00
sdrangel/plugins/channeltx/modais
2022-03-02 23:07:15 +01:00
..
aismod.cpp Message pipes rework: settings pipes change in other plugins 2022-03-02 23:07:15 +01:00
aismod.h Message pipes rework: settings pipes change in other plugins 2022-03-02 23:07:15 +01:00
aismodbaseband.cpp AIS and Packet modulators API: put back optional data in the action structure 2021-11-21 07:48:39 +01:00
aismodbaseband.h GLScope redesign: ScopeVis is not created in the GUI anymore 2021-05-31 15:56:45 +02:00
aismodgui.cpp Make rollup state a serializable object so that it can be dumped in JSON format for the API. Prerequisite tp #1050 2022-01-09 05:27:12 +01:00
aismodgui.h Make rollup state a serializable object so that it can be dumped in JSON format for the API. Prerequisite tp #1050 2022-01-09 05:27:12 +01:00
aismodgui.ui AIS mod: make it effectively work in server mode with remote control. AIS demod: added baud rate in settings API 2021-11-12 00:12:02 +01:00
aismodplugin.cpp Make rollup state a serializable object so that it can be dumped in JSON format for the API. Prerequisite tp #1050 2022-01-09 05:27:12 +01:00
aismodplugin.h
aismodrepeatdialog.cpp
aismodrepeatdialog.h
aismodrepeatdialog.ui
aismodsettings.cpp Make rollup state a serializable object so that it can be dumped in JSON format for the API. Prerequisite tp #1050 2022-01-09 05:27:12 +01:00
aismodsettings.h Make rollup state a serializable object so that it can be dumped in JSON format for the API. Prerequisite tp #1050 2022-01-09 05:27:12 +01:00
aismodsource.cpp Message pipes rework (2) 2022-02-25 23:47:53 +01:00
aismodsource.h AIS mod: make it effectively work in server mode with remote control. AIS demod: added baud rate in settings API 2021-11-12 00:12:02 +01:00
aismodtxsettingsdialog.cpp
aismodtxsettingsdialog.h
aismodtxsettingsdialog.ui
aismodwebapiadapter.cpp
aismodwebapiadapter.h
CMakeLists.txt Install debug symbols on Windows for debug builds 2022-02-06 12:56:58 +00:00
readme.md AIS and Packet modulators API: put back optional data in the action structure 2021-11-21 07:48:39 +01:00

AIS modulator plugin

Introduction

This plugin can be used to transmit AIS (Automatic Identification System) messages using GMSK/FM modulation. AIS is used to track ships and other marine vessels at sea.

You need an AIS license to transmit on the AIS VHF frequencies (161.975MHz and 162.025MHz). This plugin should not therefore be used on those frequencies unless the transmitter and receiver are directly connected via coax. If you have an amateur license, you should be able to transmit AIS within amateur bands.

Interface

AIS Modulator plugin GUI

1: Frequency shift from center frequency of transmission

Use the wheels to adjust the frequency shift in Hz from the center frequency of transmission. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position. Wheels are moved with the mousewheel while pointing at the wheel or by selecting the wheel with the left mouse click and using the keyboard arrows. Pressing shift simultaneously moves digit by 5 and pressing control moves it by 2.

2: Channel power

Average total power in dB relative to a +/- 1.0 amplitude signal generated in the pass band.

3: Channel mute

Use this button to toggle mute for this channel.

4: Mode

Allows setting of RF bandwidth, FM deviation and BT values according to the chosen mode, which can be Narrow (BW=12.5kHz, Dev=2.4k, BT=0.3) or Wide (BW=25kHz, Dev=4.8k, BT=0.4). The latest specification for AIS, ITU-R M.1371-5, only specifies Wide operation.

5: RF Bandwidth

This specifies the bandwidth of a LPF that is applied to the output signal to limit the RF bandwidth. Typically this should be 25kHz.

6: FM Deviation

This specifies the maximum frequency deviation. Typically this should be 4.8kHz, giving a modulation index of 0.5 at 9,600 baud.

7: BT Bandwidth

Bandwidth-time product for the Gaussian filter, used for GMSK modulation. This should typically be 0.4.

8: Gain

Adjusts the gain in dB from -60 to 0dB. The gain should be set to ensure the level meter remains below 100%.

9: Level meter in %

  • top bar (beige): average value
  • bottom bar (brown): instantaneous peak value
  • tip vertical bar (bright red): peak hold value

10: UDP

When checked, a UDP port is opened to receive messages from other features or applications that will be transmitted. These messages do not need to contain the CRC, as it is appended automatically.

11: UDP address

IP address of the interface open the UDP port on, to receive messages to be transmitted.

12: UDP port

UDP port number to receive messages to be transmitted on.

13: Encode

When pressed, the message field will be set to a hex encoded string that represents the message determined by the following controls.

14: Message Type

Select a message type:

  • Scheduled postion report
  • Assigned position report
  • Special position report
  • Base station report

15: MMSI

Enter a 9 digit Maritime Mobile Service Identity, which uniquely identifies a vessel.

16: Status

For position reports, specify the status of the vessel.

17: Latitude

Specifiy the latitude of the vessel or station in decimal degrees, North positive.

18: Longitude

Specifiy the longitude of the vessel or station in decimal degrees, East positive.

19: Insert position

Sets the latitude and longitude fields to the values specified under Preferences > My position.

20: Course

For position reports, specify the vessel's course in degrees. This is the direction in which the vessel is moving.

21: Speed

For position reports, specify the vessel's speed in knots.

22: Heading

For position reports, specify the vessel's heading. This is the direction the vessel is pointing towards.

23: Message

The AIS message send. This should be a hex encoded string.

24: Repeat

Check this button to repeatedly transmit a message. Right click to open the dialog to adjust the delay between retransmission and number of times the message should be repeated.

25: TX

Transmits the message. Right click to open a dialog to adjust transmission details allowing parameters different from standard values.

API

Full details of the API can be found in the Swagger documentation. Below are a few examples.

To transmit the current data just send a "tx" action:

curl -X POST "http://127.0.0.1:8091/sdrangel/deviceset/1/channel/0/actions" -d '{"channelType": "AISMod",  "direction": 1, "AISModActions": { "tx": 1}}'

To transmit a message from the command line:

curl -X POST "http://127.0.0.1:8091/sdrangel/deviceset/1/channel/0/actions" -d '{"channelType": "AISMod",  "direction": 1, "AISModActions": { "tx": 1, "data": "000000000000000000000000000000000" }}'

To set the FM deviation:

curl -X PATCH "http://127.0.0.1:8091/sdrangel/deviceset/1/channel/0/settings" -d '{"channelType": "AISMod", "direction": 1, "AISModSettings": {"fmDeviation": 4800}}'