TYT MD-380G 開箱文,暨第三方FW新功能跟進

 

380G_cover

 

前言

原計劃是在 Facebook 帖文簡介第三方軟件新增功能作罷,至農曆年後購入了一台 MD-380G,到有幸被召去驗機;那一氣呵成地介紹整個過程吧。畢竟不是每人也有驗機經驗;驗機也不是洪水猛獸,花你半日而已。

本文頭半部是新寵 MD-380G 開箱文,後半部以舊愛 MD-380 實測第三方 Firmware 新功能。

就簡單規格的相比,MD-380GMD-380 的附帶 GPS 版。

Why MD-380G

美國 Amazon 售價為約 US$147。可能這系列到水尾了,淘寶實收人仔 699,對貪小便宜的我,是一項誘惑。

就我對 DMR 的語音玩法鑽研,也到水尾,開始進入 Data 階段。GPS data 好自然是首選。

配件和 MD-380 共通,起碼後備電池可共用。如買的是大一個碼的 MD-390 ,又要花錢在電池上了;換來的是用不著的防水功能。

380G_box

外盒和國內版 MD-380 彩盒相比,細幾個碼。外盒全英文,應是出口專用。

說明書和 MD-380 也一樣,只多了一張紙講解 GPS 的功能啟用細節。

380G_include

 

外盒雖細,全套卻包主機,電池連差座,火牛,長短天線各一,夾咪,編程線連軟件 CD。這是一套完整組合,大滿足喔。

回想 2015 年尾購入的 MD-380,盒夠大但編程線連軟件 CD 是要加錢,也沒夾咪送。

現在多了 GPS 和夾咪,編程線連軟件 CD;價錢卻更平,相當低玩。

長天線和 MD-380 送的長天線不同,好很長…

 

MD-380 / 380G 大不同

380G 附送的電池標為 7.4V/2000mAh380 附送的電池標為 7.2V/2800mAh。人手秤稱兩者,重量相約。估計兩者內涵一樣,380G 外銷規格較老實以避免官司。請參看舊文,外國評測電池只有 1700mAh

380_bats

 

外觀非常相似,詳細比對會發現面殼紋路少許不同。Keypad 380G 左右兩邊較圓渾,380 則較見方。

380_front

 

380G LCD 的保護透明膠片向外突,380 則是凹的。原因不明。透明膠片向外突,弄花只是時間問題。另380keypad 盤也是凹下去的,外邊也有護欄避免錯誤按鍵。

 

380_front2

 

380 keypad 兩側有 Tytera 字樣,380G 沒有。

 

380_side

 

380G380 明顯分別是 keypad 左右側上掣顏色不同,左則邊上掣顏色是橙色,PTT 掣圍邊顏色不同。

從外觀來看,380G 的應是外貿和 OEM 模具殼 ,380 是國內型號殼。但用家憑外型很易混淆兩型號,面殼貼有牌子但不標示型號,實是古怪。

 

GPS performance 與設定

sat_ovrhd

現在滿天衛星,n 種定位制式

Ham 機附 GPS 功能的多在機頂留位給 GPS 陶瓷天線,而商用機則鮮有這種設計。

說明書沒有任何 GPS 的規格,只是 menu 自稱是 gps + 北斗。這唯有實測反應。

 

380G_GPS

home base 附近草場測試,首次定位只需約兩分鐘。這是不錯的初始速度。

然而,之後走到附近有少許天蓋和樹蔭的小公園,則等了半小時也不能定位。以為是死位,於是以 ICOM ID-31 在同一位置作AB 對比。

gps_comp

 

ID-31 約兩三分鐘就可定位了。

有趣問題來了:

380G 配備的是雙系統 GPS + 北斗,而 ID-31 則只是 GPS only380G 理應秒殺單系統的 ID-31。為什麼 380G 在橫街窄巷卻如此不濟?

有這樣的結果,估計是不更改機殼內籠的情況下,只能內置小型天線,而這些天線效能不足所致。

這是樂觀的想法,否則就是起用的雙系統方案是遊山玩水的。

 

gps_b

淘寶有這些小型 GPS 模塊,估計雖不中也不遠矣 (淘寶相片)

 

APRS 打交道多年, GPS 也劏過不少。內置的陶瓷 GPS 天線最佳是一面朝天,下有 GND Plane 墊底。日系 ham 機如 KenwoodIcom 皆是如此。

GM-305

這是我的 GM-305,see through 外殼見到天線的安排

 

我不期求 380GID-31 一樣以圖顯示 GPS 衛星等資訊。但配了雙系統,還要萬里無雲才可發揮效能,就有一點功虧一簣,雷聲大雨點小了。

另也發現,GPS 開關和 channel 選擇掛鉤,即 Ch1 開,轉到 Ch2 會關。16ch1。一般 ham 機沒有這種設法。設定時更需 mount 住只定 channel,靈活性低。

實際在編程軟件中,需設好這兩項才可在頻道使用 GPS

 

gps_prog2

 

gps_prog1

 

MD-380GGPS 發射設定,類似 APRS MIC-E 玩法。當對話完放開 PTT 時會一併發出 GPS 的座標資訊。然而,商用方案多設主控台,主控台配備電腦,GIS 系統等就可顯示位置。機對機的發射接收作用不大。

前陣子在 Facebook 貼文,報導部份國產 DMR 低檔機違反 DMR 規格,TS1+2 同時發射。Ham 要土炮測試,以 SDR# + DSD plus 應就 OK。發射資料無所遁形。

我不是為此而開壇示範,我其實較關心 380Ggps  data 能否在 DSD plus plot 到地圖上。

 

md380G_map

 

380_slot1

 

事前估計是不能的。結果求仁得仁。

三月都嚟緊,還要在 12 度冷風下吹咗幾小時去証明是唔 work。而家唔 work,遲的搞到 work 為止。

 

輸出火數

規格 Lo1WHi5W。用駐波表實測 0.5 / 3W

380Lopwr

 

380Hipwr

 

我的是傳統駐波表。測量可分 FM 用的 AVG,和。SSB 用的 PEP。用在量度數碼輸出是否合適我不清楚,但偏差應不多。所以結論是標配電池 7.4V 下輸出唔足 Watt。這是我所用過的國產機的通病。

 

380G_fw

 

FW 資訊。不是最新的。待原裝的測試完後,將上載第三方 FW 提升功能。所以我也懶得去 update

 

驗機登記步驟

由於 MD-380G 在外國也出現了一段時間,我沒為意 OFCA 的登記型號資料就入手了。收貨後上網登記才發現是沒記錄的。所以順道記錄一下驗機程序。

日系機可當例行公事,但國產機質量唔太穩定,不免有點做白老鼠的感覺。這也是上文在驗機前度一下輸出 watt 數的理由,起碼有個底數。

當登記一部沒有登記過的機時,需填寫品牌,型號資料。系統回覆提交人需兩個月內提供進一步資料。

而下一個工作天,會收到 OFCA 電郵要求提供下列資料:

  • 請提供該設備的外型照片給我們。
  • 請提供可顯示它的製造商、型號及機身編號的照片給我們。
  • 請提供說明書內有關設備 power 的一版給我們。
  • 請提供說明書的封面頁給我們 (要顯示出型號)。
  • 請確認該設備是屬於 VHF, UHF 還是 HF
  • 請確認設備是用作固定電台,移動電台還是手提機。
  • 如該設備是用作固定電台,請提供安裝該設備之地址。
  • 如該設備是用作移動電台,請提供車輛牌照的副本給我們。
  • 請確認設備的機身編號。

現在用電話拍下所需資回傳就 ok 了。

Again,如是沒有記錄的型號,他們會幾日後再電郵給你約時間帶機上 OFCA 檢驗。

 

ofca1

 

ofca2

 

n 年前進貢部 UV-5R 給驗機時,先問長問短,後再攞去入 lab 齋等一排。

但今次則很快手,簡單介紹一下我的設定就攞去入 lab,半小時就搞掂。口頭回覆,部機通過檢驗,完成文件工作後 sticker 會寄給本人。過程很順利。

留意,這些工作用機,不能人手輸入頻率,需事先入定一兩條 Ham 頻,並設好側鍵能切換高低功率;否則你煩到既係自己。

 

第三方 FW 新功能介紹

這是持續跟進的新功能推介,儲夠多幾個,或有重要新功能時就出文。

第三方 FW 最新的版本新加進了一個很稱心的功能,是將背光分為 Lo/ High 兩檔,檔內再細分 10 級。

380_bl_menu

 

380_bl_dim

 

原裝的背光設定,只有時間長短,間隔也不太合心水。對我而言,唯有長著。

長著除較浪費電源外,光度也是一個考量。半夜三更,全光不見得好;太陽底下,也往往需調較一個適合的光度配合。

有了背光調較,你想點校就點校。

注意:這個功能背後有個小 bug,更新 Firmware 前必需將先背光間隔設為 5sec,否則更新 Firmwarereboot 開機後背光會不停閃。

380_5s

但放心,跟著做更新 Firmware 後是可將背光間隔設回 always 的。

同一時間,我也發現新 Firmware 加進左邊鍵 Side Buttons 的設定菜單。這個本來要經編程軟件設定的,現在則可本機就搞掂。

對我而言,望穿秋水的是否可將輸出的功率檔次由簡單的 High 5W / Low 1W 提升為如 Ham 用機的 EL,L,Mid,High 多檔選擇。我明白這需硬件配合。

MD-380 的線路早被拆解放上網絡,我沒下載詳研;留一絲對將來的盼望總好過睇完的即時絕望……

 

振奮人心的好消息 !

近日 BrandMeister* (下稱 BM) 工作小組宣報支援 MD380tools 小組的第三方 firmware 開發。BM 有不少傳統中繼聯網沒有的功能,而透過兩方面的合作,起用第三方 FW MD-380/390 系列應用在 BM 上將會更得心應手。

* BrandMeister 是一業餘數碼中繼的聯網架構,過去一年發展非常迅速。功能也早己超越 DMR-MARCDMR+ 等固步自封的網絡。今時今日,我會說 BM 是我們數碼網絡的將來。

有關 BM 的系列文章,希望今年第二季可發表。

 

總結

MD-380G 加進 GPS,價格反更平。在不追求新款新型號的情況下,是一個好選擇。

機也己驗了,本地同好也可安心使用。

新機也未見得是好。如買咗部不合規格的國產 DMR 機款就中伏了。規格沒有明示,用家睇完個 spec 只感覺奇奇怪怪,咁就出事。

可參看舊文百篇感言一文我對 DM-5R 的評估和 Facebook 的帖文。

而就我的資料搜集和與國外 Ham 界的溝通,也感到 MD-380/390 系列機應是外國 Ham 界最普及應用的 DMR 機款。

最重要的是,安裝了第三方 FirmwareMD-380 功能大幅提升:舢舨變炮艇,豈不快哉?

Posted in Digital Radio, 開箱文 | Tagged , , , , | 5 Comments

APRS tracker – Dantracker in Rpi 2

 

clip_image001

 

This article introduces APRS Tracker – Dantracker installation procedure and configuration.

It also demo using it with hardware TNC as well as software TNC “Direwolf” respectively.

Dantracker is a famous APRS Tracker solution on several years ago. Its GUI is quite professional and better than others tracker solution which use Dot Matrix LCD Display.

But it is not popular in the APRS activities. I think this is because the installation information is not enough, and procedure is quite complex.

I had success to compile and run it in a Raspberry Pi 2 recently, so let’s share my experience for this great project.

 

Why Dantracker

  • It shows the latest receive APRS station information
  • And the recent 8 APRS stations brief information
  • It also shows self GPS information, and Wx station if received
  • It transmits APRS beacon periodically

clip_image002

 

Two version of Dantracker

Dantracker is design by KK7DS.

N7NIX based on the original and developed his version. His version supports APRS texting, and add shutdown feature.

clip_image003

N7NIX screen, Courtesy of http://www.trinityos.com

 

I like the GUI of the original, so I tried the KK7DS one.

 

Hardware preparation

I using a Rpi 2. Please consider solder a pin header to the reset pin first.

clip_image004

 

Moreover, an external TNC is need. I am using a self-made TNC-X. In the last section I will demo to use Software TNC.

A USB to RS-232 cable used to connect to the TNC.

And a USB GPS.

 

Software preparation

As I found the latest Rpi OS Jessie prompts error during compiling, I use the previous OS wheezy. Last version date 5-May-2015.  You may download it from official site .

 

Reference

Except some YouTube demo, there are 3 articles for reference, here are the links:

http://www.pa0esh.nl/wordpress/?wpfb_dl=6

http://www.pa0esh.nl/wordpress/wp-content/uploads/2015/02/Dantracker-on-a-Raspberry-PI-from-scratch.pdf

http://www.trinityos.com/HAM/CentosDigitalModes/RPi/n7nix-dantracker-install.txt

 

Installation Procedure

Before software installation, please connect the USB to RS232 cord, USB GPS to Rpi respectively.

You should have basic knowledge to setup the Rpi, please enable it to boot in CLI (text mode).

In text mode, type the commands to show the connected USB devices.

[shell]
lsusb
[/shell]

 

clip_image005

 

To avoid the OS upgrade to Jessie, we update the repositories list only.

[shell]sudo apt-get update[/shell]

 

In order to free space of the SD card, remove a big software “Wolfram” we no need.

[shell]sudo apt-get purge wolfram-engine[/shell]

Install the requested library, type the commands in one sentence carefully.

[shell]
sudo apt-get install screen git python-serial libgtk2.0-dev gtk+-2.0 build-essential gcc pkg-config imagemagick automake autoconf libtool cvs curl libncurses-dev libssl-dev libax25-dev
[/shell]

It needs approx. 1 hour for download and installation.

Afterward, we download the KK7DS’s Dantracker from github.

[shell]git clone https://github.com/kk7ds/dantracker[/shell]

Go to the dantracker folder after download. We need download and install the library “libfap”.

To avoid compiler error, please use ver 1.3, not the latest ver 1.5.

[shell]
cd dantracker
wget http://pakettiradio.net/downloads/libfap/1.3/libfap-1.3.tar.gz
[/shell]

Decompress, install and config it by following commands:

[shell]
tar xvzf libfap-1.3.tar.gz
sudo cp libfap-1.3/src/fap.h /usr/local/include/
cd libfap-1.3
sudo cp src/fap.h /usr/local/include/
./configure make
sudo make install
sudo ldconfig
[/shell]

return to the dantracker folder

[shell]
cd ..
[/shell]

Then we install the library “iniparser” by similar method

[shell]
sudo wget http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz
tar xvzf iniparser-3.1.tar.gz
cd iniparser
sudo cp src/iniparser.h /usr/local/include
sudo cp src/dictionary.h /usr/local/include
make
sudo cp libiniparser.* /usr/local/lib
sudo ldconfig
[/shell]

Then return to the dantracker folder by cd..

We need edit some parameter before compile the program. We use nano the edit the file aprs-is.c

[shell]
nano aprs-is.c
[/shell]

Please change the Callsign, APRS server, static coordinate to your own information.

clip_image006

 

Save & leave after done.

We also need to edit the Makefile to avoid warning message during compiling.

[shell]
nano Makefile
[/shell]

We add -lm on the last of the first sentence. Save & leave afterward.

clip_image007

 

We compile the program by the following commands:

[shell]
touch .revision
make
[/shell]

Then go to the images folder to execute make command:

[shell]
cd images
make
[/shell]

The installation procedure was complete. Please backup your SD card before next step.

Reboot your Rpi and go to the dantracker folder. Type the command to show the TNC and GPS port number.

[shell]
sudo ./detect_gps.py
[/shell]

clip_image008

 

Go to the sub-folder “examples”, copy the aprstest.ini to parent folder, and rename it to aprs.ini .

[shell]
cd examples
cp aprstest.ini /home/pi/dantracker/aprs.ini
[/shell]

This aprstest.ini is a TESTING configuration file. The data packet was come from the Rpi network port.

It works like a APRS traffic monitor for your cover area, no radio need.

Use nano command to edit this aprs.ini file, change the callsign with SSID, and static coordinate to your own information.

Save & leave the editor afterward.

To run the Dantracker in test mode, we enter these 2 commands:

[shell]
screen -dmS aprs ./aprs -m /home/pi/dantracker/aprs.ini
screen -dmS ui xinit /home/pi/dantracker/ui
[/shell]

 

YouTube demo

It demos the Dantracker works in Test mode.

 

 

Add Shutdown function

You may found Dantracker did not have any option to quit the program. What we can do is reboot the device by short the reset pin.

To solve it, we add a turn off button to turn the Rpi off. We use Pin 39 (Gnd), Pin 40 (GPIO21)


clip_image009

 

Please refer the following link, It is a python program. Ensure change the GPIO to 21.

https://www.element14.com/community/docs/DOC-78055/l/adding-a-shutdown-button-to-the-raspberry-pi-b

 

clip_image010

The Rpi2 re-allocate to a portable platform

 

Practical test in outdoor

If the above test is OK, it is time for outdoor test.

Now we copy the aprs.ini file from the examples folder to parent folder dantracker.

We use nano to edit this file. Here is my content for reference:

[plain]
[gps]
port = /dev/ttyUSB1
rate = 4800
type = nmea

[tnc]
port = /dev/ttyUSB0
rate = 9600
type = KISS
init_kiss_cmd =,

[telemetry]
#port = /dev/ttyAMA0
rate = 9600
type = vr2xkp

[station]
mycall = VR2XKP-9
icon = /j
beacon_types = weather,phg
power = 4
height = 0
gain = 4
directivity = 0
digi_path = WIDE1-1,WIDE2-1

[beaconing]
atrest_rate = 1800
#atrest_rate = 120
min_speed = 10
min_rate = 300
max_speed = 60
max_rate = 60
course_change = 30

[comments]
enabled = 1,2,3,4
1=Using a home-built tracker
2=http://danplanet.com
3=Software $ver$
4=Set path to TEMP1-1,WIDE2-1 to digi
[/plain]

 

Some notes of this config file:

  • Add # in the first line of telemetry section
  • GPS / TNC port please change to your own port number. it shows by sudo ./detect_gps.py
  • Please change to your callsign
  • The unit of the beaconing interval is in sec.

 

I also found some useful information:

Type ./aprs –help will shows options.

clip_image011

clip_image012

 

After enter the Dantracker, press C will shows a blank screen.

clip_image014

 

When outdoor test, problems found:

1/ The screen will blank after 10min, unless you move the mouse or press keys in keyboard in the mean time.

It is screen power saver feature (or bug if you dislike it) of RPi.

I check and follow guidelines from web but still cannot disable it, so sad…

2/ If you refer the KK7Ds demo on YouTube, you will found on the bottom it shows voltage and temperature in F.

clip_image016

 

It may be the function of telemetry in the aprs.ini config file, I study the source code and try to talk with it, but still fail.

Anyone knows how to solve the 2 problems, please share your idea.

 

Run in real mode

Type the following 2 commands to run the dantracker, ensure connected the GPS, Hardware TNC and Radio  beforehand.

[shell]
screen -dmS aprs ./aprs -t /dev/ttyUSB0 -m -c /home/pi/dantracker/aprs.ini
screen -dmS ui xinit /home/pi/dantracker/ui
[/shell]

The initial time of the program is approx. 5 sec, and then it should shows the GPS info, and valid packet data received.

One more problem was found during outdoor test. The clock in the GPS section was incorrect. It may be caused by the Rpi did not have any RTC, and my Rpi did not have any Internet connection at outdoor, so the Rpi fake clock shows incorrect time.

clip_image018

 

clip_image020

 

clip_image022

 

clip_image023

clip_image024 If GPS data is invalid, the distance data also incorrect

 

clip_image025

 

 

YouTube demo

It is outdoor test demo.

 

 

Work with software TNC – Direwolf

Not all ham equipped a TNC, and I tested the dantracker can work with software TNC Direwolf in the same Rpi.

clip_image026

 

To replace an external TNC, we use a USB sound dongle and a DIY sound modem.

Here is the sound modem circuit.

clip_image027

Courtesy of VE3ELB website

 

In fact it is almost same as the one used in the Echolink article.

We add an extra Green LED in series with a 1k resistance & 1N4148 to the RS232 DCD. It will light up when receive valid data packet.

clip_image028

clip_image029

The PTT circuit connected to Rpi via a RS232 to USB cord.

 

clip_image030

It is the 2 audio isolated transformers I used. Although the impedance is 600Ω: 600Ω. But the DC resistance of the primary and secondary is different. The primary resistance is ~51ohm, and the secondary resistance is ~70 ohm.

clip_image031

The sound modem circuit is connected to the USB sound dongle’s Mic and speaker respectively.

It use stereo jack, but sleeve and tip only. Sleeve for the signal ground, and Tip for the signal.

clip_image032

 

 

Software Preparation

Firstly, please backup your SD card before installation of the Direwolf.

And now we install the software TNC “Direwolf” in the same Rpi.

The procedure refer to it’s official pdf files. I strongly recommend read it before installation.

Official site of the software TNC Direwolf is here:

https://github.com/wb2osz/direwolf

 

Three important document files in pdf:

  • Raspberry-Pi-APRS.pdf
  • Raspberry-Pi-SDR-IGate.pdf
  • User-Guide.pdf

 

First of ALL, check the GCC to ensure it support floating point. You should see “–with-fpu=vfp –with-float-hard“ in the return value.

[shell]
gcc –v
[/shell]

 

We delete the bundled pulse audio by the commands:

[shell]
sudo apt-get remove –purge pulseaudio
sudo apt-get autoremove
rm -rf /home/pi/.pulse
[/shell]

 

Please reboot your Rpi afterward, then we install request sound library:

[shell]
sudo apt-get install libasound2-dev
[/shell]

 

We download the Direwolf from Github.

[shell]
cd ~
git clone https://www.github.com/wb2osz/direwolf
cd direwolf
[/shell]

 

Then we compile Direwolf by the following commands:

[shell]
cd ~/direwolf
make
sudo make install
make install-rpi
make install-conf
[/shell]

 

After installation of Direwolf, we run alsamixer to check the USB sound dongle default level.  Please refer page 34 of the User-Guide.pdf for detail.

clip_image034

Press F6 to select USB Audio Device

 

clip_image035

Ensure mic, speaker did not mute or disabled. You may refer my signal level.

Now we use nano to edit direwolf.conf in the root directory.

clip_image036

Remove # from the line ADEVICE   plughw:1,0

 

clip_image037

We set the PTT to /dev/ttyUSB0 RTS. It light up the Red LED during transmit.

We set the DCD to /dev/ttyUSB0 DTR. It will light up the Green LED when receive valid data packet as mentioned.

The preparation of the Direwolf side was compared.

Please save & exit.

 

Setting on the Dantracker side

Direwolf will setup a virtual KISS TNC, Dantracker’s TNC setting need to talk with it.

clip_image038

 

We change the TNC Port to /tmp/kisstnc.

You may consider change the beacon Tx internal from 30min to 5 min for a faster test.

 

Dantracker + Direwolf Integrated test

clip_image033

 

To test Direwolf work with Dantracker, run the Direwolf in the daemon firstly. It needs about 5 sec to initialized.

[shell]
screen direwolf –p
[/shell]

 

Wait several seconds to ensure the direwolf is operate normally.

clip_image039

 

Then press Ctrl +A, and C to return the main program. We enter the Dantracker folder, enter the following 2 commands to execute the dantracker

[shell]
screen -dmS ui xinit /home/pi/dantracker/ui
screen -dmS aprs ./aprs -t /tmp/kisstnc -m -c /home/pi/dantracker/aprs.ini
[/shell]

clip_image040

clip_image041

 

YouTube Demo

It is a demo to shows Dantracker work with Direwolf.

 

What’s more – Morse Beacon

I also tested the morse beacon feature of Direwolf.

Edit the Direwolf conf file and enable it.

clip_image042

 

The first Morse beacon will be transmit after 3min from Direwolf start. Then the interval is 10min periodly.

However, I found the Beacon always chopped, whatever the WPM (speed) set. It may be caused by it run with Dantracker in the same Rpi.

 

What’s Next

As the Dantracker and Direwolf request compile, and Rpi 2 equipped 4 core, we may try to use “make -JT4”during compiling to let it works with all 4 core.

For the time incorrect issue, We may setup the RPi clock work with GPS’s.

Posted in English Articles | Tagged , , , , , , | 1 Comment