D-PRS Rx-iGate by Raspberry Pi 2, still a $35 solution

 

aprs_cover

 

This article introduces forward D-star transceiver’s GPS beacon to aprs.fi map by Raspberry Pi Ver2.0 .

 

Rx-only D-PRS iGate

A mixed solution by D-star and APRS call D-PRS system.

The digit communication of amateur radio rapid growth recently, especially there are some cheap DMR radio available from China manufacturers these years.

cover380

 

I had bought a DMR for testing. Price is cheap and function is simple; press and talk, nothing more.

In my opinion, digit comm. did not mean DMR only, and it should do more.

I found D-star rig was quite popular in US, and of course in Japan as it was invented there & support their government.

I buy a ID-31 handheld from Japan yahoo auction in last November for D-star system test.

r

 

The ID-31 is UHF band, hybrid (support analogue / D-star) and built-in GPS, its performance good.

But the GPS data Tx function work on D-star system only, how it work with aprs.fi map in cheap method?

I found most solution introduced in Web use D-star vehicle / desktop transceiver to forward the GPS data to aprs.fi map.

But I just got a ID-31, and no extra budget for an expensive D-star desktop transceiver.

Fortunately, while I study how to setup a hotspot for DV4mini communication, I found some hotspot software seems D-star compatible.

I decided to try the Western D-start Image for RPi.

 

Hardware Preparation

The connection is similar to Echolink setup on Raspberry pi 2, please refer my previous article.

The difference is no audio isloation transformer between the sound dongle and the transceiver.

sound_dongle

 

A USB port connected to a USB sound dongle, another USB port connected to a USB to RS232 cord.

Please be reminds that the analogue transceiver should compatible to 9600bps packet speed. Most of the Japan Ham vehicle transceivers are 9600bps capacity. This kind of 2nd hand rig often available with reasonable price.

ken9k6

I use my Kenwood TH-F7 as demo. It is an analogue handheld which support 9600bps packet speed.

 

Software Preparation

Please download the Western D-star Rpi Image. The Developer is G4KLX .

There are 2 image suitable for our purpose:

The Arch–LXDE Raspberry Pi 2, and

D-StarRepeater + ircDDB + VNC Jessie .

Although the 2 images are 8G capacity, but I found Arch’s image is a little bit bigger and my Scandisk 8G card did not have enough space for it.

I use the later one for the test.

As I did not equip any AMBE coding device, it is an Rx only D-PRS system, no PTT need. So you may ignore the USB to RS232 cord mentioned above to save momey.

 

Configuration & Test

Clone the image to a 8G card, install and boot up the Rpi 2.

dprs_full

It is toy’s story wallpaper, so fun.

 

Modem1 Options

WD_widget

 

Press WDs Widget,what we need is to config. Modem 1 and Gateway Options.

widget_man

 

Please enter your callsign, the B suffix means your node operate in UHF band.

mod_1

 

Then setup the soundcard Modem

mod_2

 

Please select the USB Audio Device, others parameters no need to change

mod_3

 

Controller for PTT. Again, it is a RX-only iGate, so it is an option. Please select 2 if you want enable the PTT function.

mod_4

 

Gateway configuration

The callsign of Gateway is same as modem; please input your co-ordinate manually.

gw_1

 

Please enter information for Repeater 1

gw_2

 

gw_3

 

Ensure enable the D-PRS service.

gw_5

 

On Misc tab, enable the D-RATS. D-RATS is a popular D-star freeware. We may test it later.

gw_6

 

The configuration is completed. Please save & reboot. It is auto run after reboot.

id31_rx

 

Although the aprs.fi map show your callsign-B, but actually there have a -S on the bottom.

D-star gateway

 

 

The ID-31 setup

Unlike analog aprs setting, the D-star Rig should be configure to the respond repeater.

Repeater name format is “yourcallsign B”

Use my callsign as an example. The repeater name is:

“VR2XKP B” ; there is a space between callsign and B.

As the D-star repeater duplex offset parameter is compulsory, please select DUP-, offset to 0.

 

GPS setting

The operation mode set to GPS-A (DV-A).

GPS Auto TX set to OFF.

The ID-31 setup completed.

id31_dprs

 

Test

GW_Rx

 

From the Gateway screen, I found the GPS beacon is transmit during release PTT button. Please be remind that do not press and release the PTT instantly, it will not TX GPS beacon. Tested and found press at least 2-3 sec then release wills TX the GPS beacon. It may be a design to avoid Tx accidently.

dprs_walk

 

And I tested both dynamic GPS tracking and static GPS location which saved in ID-31 memory. Both can be forward to aprs.fi .

 

Conclusion

The method introduces in this article is a simple, cheap but work for a D-PRS iGate system. If you are a D-star user and wants a D-PRS iGate for advance test, it is a good choice.

Posted in English Articles | Tagged , , | Leave a comment

AIS 民用船隻訊號接收 番外編

 

cover

 

前言

近期搜索 Android App 有什麼新的 SDR 可試可用,發現一個名為 AIS_ share 的程式。趁前陣子周末閒暇,天氣回暖又無雨,決定再和 AIS 續前緣,反正上次也不算是成功。

 

AIS_Share 軟件先決

要在 Android  DeviceAIS_Share 接收 AIS 訊號,APP 要有三 :

RTL_AIS_Driver

AIS_Share
 
OpenCPN

ais_3

RTL_AIS_Driver 是免費的,兼具 demo 功能。其功能是控制 SDR 手指調到 AIS 頻道,調較速率,PPM 參數修正和接收訊息等。

AIS_Share 需港幣14元。功能是控制 AIS driver 開關,和將其接收到的 DatagramUDP 形式 forward 到同網絡的設備。

 

OpenCPNPC 上的一樣,將 AIS 資料顯示在地圖上。留意,Play store 有兩同名不同開發商的 OpenCPN,一收費一免費;我們用免費的即可。

 

opencpn

 

硬件

一如過往的實驗,SDR 手指經 OTG cabletablet。承上次經驗,今次帶備高精度的和普通裝的 SDR 手指作 AB 比較。

留意,OpenCPN 地圖需經 Intrenet下載,GPS 定位也需用上。

 

準備功夫

在家首先下載安裝 RTL_AIS_Driver,接上 SDR 手指後執行 driver 程式,即開著 demo,然後按左上 start 掣。不出一會,下面應顯示和 RTLSDR 交換訊息的資料。

demo_ok

 

細心閱讀,如沒有 error 訊息,即 Driver 是兼容你的 tabletSDR 手指了。留意,作者網站明言部份以 Intel Atom 為核心的 Android tablet 是不兼容。一些國產廉價的 tablet 正是用上 Atom chipset。如真是不兼容,無謂再花時間測試。

一切順利的話,這時可下載 AIS_ShareAIS_Share 價錢只為港幣 14 元。相對 PC 用的軟件 shipplotter 21日試後承惠 Euro25HK$14 是非常便宜的,比半餐麥記還平。

之後可繼續下載安裝免費版的 OpenCPN

軟硬件皆備,可出發到海邊實戰一下。調較、設定 onsite 完成即可。

 

實戰

 

art_mus

 

仍是尖東海旁,上次的風水寶地 Art Museum 竟然被封了。只能遠觀而不可褻玩焉。官網資料表示封館三年進行大翻新和擴建。我一向認為,museum 只是一個載體,內裡的館藏才是主菜。外表美倫美奐是慷納稅人之概,用了 25 年就要大翻新和擴建,那隔鄰的大空館就應剷平到火星上重建才夠勁。

沒辦法,周末遊人眾多,唯有退到文化中心一樓之 open area。雖不是望海,但也不影響訊號接收。

 

PPM 調較

接收過程中 AIS_Share 會自動呼叫 AIS driver,所以不要如之前 demo mode 那樣進入 driver 開關任何東西。

接好 SDR,踢著 tabletGPS,等定位之時,我們到AIS_ Share 的設定 => RTL SDR USB DONGLE => PPM Dongle,預設值是 10。這是 SDR 晶振的誤差值。

1ppm

這是關鍵參數。以我的高精度 1 ppm SDR 手指為例,你係1 ppm 就應如實改為 1 ppm。實驗初期,心想我是 1 ppm,你 default 就是 10 ppm,我準你咁多無需調較。

work,但成功收到的 packet 數字是不理想的 (大家緊記我喺海邊)。將 ppm 設回 1 ppmpacket 數字立即明顯上升。

no_ppm_adj

未調較到 1 ppm 的訊號接收狀況,即 10 ppm

 

aft_ppm_adj

轉為了 1 ppm 後,情況明顯改善

 

訊號強度圖是每分鐘更新的。要耐心等一下。

 

 

1ppm 大戰 100ppm

OK,那舊款的,舊文說不能解 AIS 訊號的又如何?

1 ppm10 ppm 參數,是不能成功接收到訊號的。改為50 ppm 後,開始有成功解碼 packet 進入。100 ppm 成功解碼率到合理水平。請留意,我沒詳細再試,如 90 ppm110 ppm 等等。

50ppm_data

50 ppm 時開始有連續的數據

 

100ppm_data

調較到 100 ppm 後數據量和 1 ppm 是相約的

 

原因是我的高精度手指晶振是温度補償的,Chipset 用上二代 R820T2 ;長期運作較穩定,靈敏度較好、收到更多是正常的。

普通版的 SDR 手指生產批次,廠家用料不同以至長時間運作發熱導致頻率漂移也會影響 ppm 參數。大家以 100 ppm 為基礎再上下 fine tune 即可。

不要忘記,普通版的 SDR 手指只人仔約 40元,1 ppm 温度補償的高精度手指則約港幣二百元。普通版的只需掌握一點調較技巧就可補不足,價錢也相當大眾化,有利 Amateur Radio 的推廣普及。

其他 AIS_Share 設定,用 default 的就可以。他可以同時將 AISgps 訊號經 network 不同 port forward 到不同裝置,如電腦,notebook 等。請先記底有關設定。

由於我只是將資料內傳到 OpenCPNnetwork 設定用 default127.0.0.1ok 了。

 

OpenCPN 設定

需將 OpenCPN 設定接收來自 AIS_Sharedata stream。按左上的士巴拿 icon 設定 connections,按下圖中間的 Connections 加上 network 參數。

cdn_set1

 

cdn_set2

 

OpenCPN  本身預設支援 GPS,所以無需加上接收來至自AIS_ ShareGPS data stream 也可。完成後,等一兩分鐘應可在地圖上顯示船隻資訊。

100ppm_map

部份船隻上岸了。是地圖輪廓太粗疏,或船隻定位訊號誤差較大,不得而知

 

OpenCPN 的地圖是三尖八角的 vector map,嘗試轉到google map,但等了一會也不顯示船隻資訊,只有自身方位。

opncpn_map

 

整體運作

可能是三程式後台經 127.0.0.1 互通資料,既要應 SDR 手指,還開著了 GPS 關係,OpenCPN 按掣反應較遲鈍。不過除了設定外,一般是無需按掣的。

ship_data1

 

ship_data2

可輕按船隻 icon,會顯示相關資料

後記

 

more_ship_data

 

opncpn_moreship

臨收檔前Cap 下兩圖留念

 

這個 solution 是連頻率也無需調較的殘廢餐,少許設定就 ok;無需如 Notebook 上用 SDR#AIS 軟件的一大堆設定,格價非常相宜。最高興的是能用上舊款較平的 SDR 手指。

這也替我的 AIS 訊號接收實驗劃上完滿句號。

這和之前介紹過的在 Android tablet 接收民航機 ADS-B 訊號方案配成一對,就是一個上天下海的組合。

天線無需深究,是隨 SDR 手指送的魚骨天線,簡簡單單。

Tabletsolution,與 notebook 相比,更是輕便。是本地,出國旅遊行到邊玩到邊的真正選擇。

翻看 google play store,探空儀的 Android RTL-SDR 接收方案仍是空白;期望盡快出現。

Posted in SDR | Tagged , , , , | 2 Comments