2020年7月9日,御坂收到了()送来的纯手工定情信物 MMDVM_HS_Hat。是的,所有的小至 0402 的阻容器件,全部纯手工软钎焊而成。
MMDVM,全称为多模式数字语音调制解调器(Multi-Mode Digital Voice Modem),是电脑到多种数字电台制式的接口板。配套的程序为 MMDVMHost,可以连接 DMR、D-Star、System Fusion(C4FM)等网络,这里选用 DMR 制式的 hblink3 作为反射器。(其实是因为有些 DMR 机器比较便宜我才不会说的)
今天早上,御坂把剩下的排座和天线座焊好,将 MMDVM 连接到 Raspberry Pi 3B 上,在 RPi 上编译安装 WiringPi 库和 MMDVMHost,运行 sudo ./MMDVMHost MMDVM.ini
,结果却是无法读取固件版本。御坂差点以为自己把板子弄坏了。
经过几番排错,原因是 AOSC OS 3 的默认 RPi 配置将 UART 作为 console 输出,也作为蓝牙模块的接口,导致了冲突。
在 /boot/cmdline.txt
中删除 console=ttyAMA0,115200
和 kgdboc=ttyAMA0,115200
,删除软链接 /etc/systemd/system/getty.target.wants/[email protected]
,在 /boot/config.txt
中加入
enable_uart=1
dtoverlay=pi3-disable-bt
并创建文件 /etc/modprobe.d/disable-bt.conf
install bluetooth /bin/true
install btbcm /bin/true
install hci_uart /bin/true
重启树梅派即可。
然后报错变成 Received a NAK to the SET_CONFIG command from the modem
原因是全双工需要专门的板子和固件,这个不支持。只要把配置文件中的 Duplex=1 改成 0 即可