Sunday, March 3, 2019

PI-STAR API for NEXTION,#MMDVM

API DOC
Not found,  but you can find the code define from G4KLX Project

https://github.com/g4klx/MMDVMHost/blob/master/Nextion.h
https://github.com/g4klx/MMDVMHost/blob/master/Nextion.cpp

Flash Nextion Firmware online(ssh),
thanks Peng Hui Ping VR2VYE provide this method ,from now not need TF Card. Video demo follow my facebook status and the end of this article.
First publish in https://www.facebook.com/winters.cn/posts/1620668804697067
*Now not support board 4 PINs header output mode, Pi-Star setting Nextion (Modem)


Prepare tools
1x USBtoTTL Adapter, such as CP2102, PL2303 model
require pyserial runtime

How to do
1) login ssh mode:
http://pi-star:2222
default login
usr: pi-star
pas: raspberry

Copy the follow RED text ,then Ctrl+V, and press ENTER,
Notice that rpi-rw, sudo su , su pi-star, just support one line one time

#Change system to Read and Write
rpi-rw

Step 1, Install require runtime . VERY IMPORTANT!

sudo su; 
rpi-rw; 
cd /tmp;
git clone https://github.com/pyserial/pyserial.git;
cd pyserial;
python setup.py install;

#When install  runtime complete,change to pi-star user
su pi-star
cd /home/pi-star

#Download nextion.py
wget https://raw.githubusercontent.com/g4klx/MMDVMHost/master/Nextion_G4KLX/nextion.py

Step 2, download Nextion firmware (*.tft not *.HMI)

#Download Nextion firmware to current directory
#for 4.3 inch NX4827T043
wget https://github.com/nano-mmdvm/Duplex_hotSPOT/raw/master/nextion/NX4827T043_G4KLX_ShowIP_by_BI7JTA.tft

#for 3.2 inch NX4024T032
wget https://github.com/nano-mmdvm/Duplex_hotSPOT/raw/master/nextion/NX4024T032_G4KLX_ShowIP_by_BI7JTA.tft

Step 3, flash use command 

#5) Stop MMDVMHost serice
sudo pistar-watchdog.service stop; sudo systemctl stop mmdvmhost.timer; sudo systemctl stop mmdvmhost.service

#6)Flash to /dev/ttyUSB0
python nextion.py NX4827T043_G4KLX_ShowIP_by_BI7JTA.tft /dev/ttyUSB0

#Flash to /dev/S2 when using modem,4 PINs header
Now not support

#7) Startup MMDVMHost service
sudo pistar-watchdog.service start; sudo systemctl start mmdvmhost.timer; sudo systemctl start mmdvmhost.service

Monday, December 17, 2018

NanoPi_NEO Instruction


NanoPi_NEO Wiki http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO




Product for MMDVM 
http://mmdvm.bi7jta.org/2018/04/userguide-and-openbox-video-for-nano.html

Friday, November 23, 2018

Bluetooth Adapter for Nextion User guide




Can also use USBtoTTL adapter


Test: 
AT 

Set Master

AT+ROLE=M

Set Slave
AT+ROLE=S 

Set Baud

Send:AT+BAUD2
Return:OK2400 ,support:
1--------- 1200
2--------- 2400
3--------- 4800
4--------- 9600(Default) 

5--------- 19200
6--------- 38400 
7--------- 57600 
8--------- 115200 
9--------- 230400 
A--------- 460800 
B--------- 921600 
C--------- 1382400 
  

Wednesday, November 7, 2018

Linux Base Operate and PI-STAR Operation System

1) Re install VIM

Enter ssh mode for PI-STAR
http://pi-star:2222/
Login as
usr: pi-star
pas: raspberry

1, re-install the purge VIM (poor version)
sudo apt-get -y remove vim-common;
sudo apt-get -y install vim  







2) Pi-Star enter root mode

root account without passowrd use "sudo su" 

3) Pi-Star install XLXd reflector

Other:
Suit OS: Debian, Armbian, Raspbian
Scan WiFi

pi-star@pi-star(ro):~$ sudo iwlist wlan0 scan  | grep SSID
                    ESSID:"888888-2G"
                    ESSID:"TP-LINK_A4F2"
                    ESSID:"TPGuest_755569"
                    ESSID:"Fan"
                    ESSID:"OGLO"
                    ESSID:"vanilla"
                    ESSID:"888888-8G"
                    ESSID:"CMCC-vanilla"
Add WiFi :

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf  
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev 
update_config=1
ap_scan=1 
fast_reauth=1 
country=JP     
network={             
        ssid="888888-2G"     
        psk="0123456789"           
                       

Monday, November 5, 2018

MMDVM Repeater User Case Motorola #MTR2000

IW6BFE





IS0XDA
the circuit diagram and the value of capacitor used to drive the TX Audio of MTR2000






Repeater MMDVM guide by BI7JTA
https://mmdvm.bi7jta.org/2018/04/about-nano-mmdvm-repeater-kit-board.html
Motorola MTR2000 and MMDVM

http://www.repeater-builder.com/motorola/mtr2k/mtr-index.html

Monday, October 1, 2018

Connect to PI-STAR, setup your WiFi config

Quickly start guide

Prepare an IP address scan tools  
http://www.advanced-ip-scanner.com  [for Windows]
https://www.fing.com/  [Fing for iOS/Android]

1  Power on your hotspot ,wait about 30s to startup completed
2  Configute network for your Pi-star,

LAN: 
if there is a LAN port in NanoPi or RPi, insert RJ45 line, the routers automatically allocate the IP address, use a computer browser (must use Firefox or Chrome) to access the IP address, set up your personal information.


WiFi Self-AP: 
the first time connect to hotspot
Open the phone, search the WiFi AP "Pi-Star"
then join it , password is "raspberry" , use mobile browser ,visit http://192.168.50.1,
add the WiFi you need in the WiFi setup column

Reboot.

Login userid : pi-star
Password: raspberry 






* This way now just support inner Raspberry Pi Zero, Pi 3B, Pi 3B+, not support USB WiFi NanoPi NEO.

Use default WiFi SSID 
(Suit who buy full set product from BI7JTA)

Add a shared WiFi on the cell phone or router, the default access WiFi:

SSID:888888-2G password: 0123456789 , when connected, visit pi-star dashboard  
iOS shares WiFi hot spots: http://pi-star.local
Other devices share WiFi: http://pi-star
Login User: pi-star ,Password :raspberry

Just for reference, SSID set to  888888-2G

The final way, use "Pi-Star WiFi Builder" ,then download and copy to your TFcard root, the method need a TFCard to USB adapter.
http://www.pistar.uk/wifi_builder.php

If the domain name can not be identified, use IP tool APP like “FING” to find the IP address of the box.

3 Configute your digital radio
The default setting frequency is 433.550MHz, DMR mode, time slot 2, color code 1, and DMRid 4600000
Private call to  9990 ,use parrot mode for echo test.


IP address scan tools:
Feature: Support mobile WiFi Share AP scan
iNet - Network Scanner [iOS]
https://itunes.apple.com/cn/app/inet-network-scanner/id340793353?mt=8
IP Tools: WiFi Analyzer [Android]
https://play.google.com/store/apps/details?id=com.ddm.iptools&hl=en

Friday, September 7, 2018

MMDVM HDMI Desktop OS

Power requirements: HDMI screen, if power supply with raspberry 3B together, require more than 5V3A; separate power supply, ensure that the HDMI screen has 5V2A input.


Features: Touch support, need to connect between HDMI's MiroUSB and raspberry USB interface.





Hardware: 7inch HDMI Display-C (1024x600 I advise or 800x480) Raspberry Pi 3B/3B+(or Pi ZW) Duplex hotSPOT by VR2VYE && BI7JTA OS base on Pi-Star V3.4.15 for RPi 3B/3B+/ZERO Can upgrade to new version use ssh command as follow: sudo pistar-update && sudo pistar-ugrade
run startx to start UI
IMG download http://vr2vye.myq-see.com/download/ Discuss thread in facebook https://www.facebook.com/groups/nano.mmdvm/permalink/2073325829364721/ Continue update

BI7JTA'S HAM RADIO help you build your Digital Repeater and Hotspot easier.

  For your easy DIY work . Winters CN for more information, h ave fun!  MMDVM Repeater board V3F4 , DMR YSF D-STAR NXDN M17 POCSAG FM htt...