CRX-COM - Setup with Raspberry Pi and FT817.

Soumis par f4eyq le sam 15/06/2019 - 11:37

Date :  15/06/2019

crx com rasb ft817

Hello to all,

In this article, i present the CRX-COM  software install on a Rasberry Pi-1, 
And it control an FT817 v1 from the Web CRX.

For info CRX-COM is a software to control via NETWORK TCP/IP your radio transceiver, 
This software is used with RADIO-CLOUD : CRX ( https://www.crx.cloud

A presentation is available here : 
https://project.crx.cloud/crx-com

First of all, we need to install the NODE-JS program on Rasberry, this device run with an ARM CPU (here ARM 6), 
witch is little bit special ( for example in the setup, npm will have to build a special bin for serial control librairie ) .

1. Check your Rasberry CPU version 

root@raspberrypi ~ # uname -m
armv6l
 

2. Download and Install NODE-JS version 10.15.3 ( compatible with serial lib ) for ARM : 

root@f4eyqraspberrypi ~ # mkdir ~/crx-com
root@f4eyqraspberrypi ~ # cd ~/crx-com

root@f4eyqraspberrypi crx-com # wget https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-armv6l.tar.gz

For info ARM version are : 

node-v10.15.3-linux-arm64.tar.gz                   05-Mar-2019 15:10            18603100
node-v10.15.3-linux-arm64.tar.xz                   05-Mar-2019 15:11            11777924
node-v10.15.3-linux-armv6l.tar.gz                  05-Mar-2019 15:11            17548409
node-v10.15.3-linux-armv6l.tar.xz                  05-Mar-2019 15:12            10767892
node-v10.15.3-linux-armv7l.tar.gz                  05-Mar-2019 15:07            17398229
node-v10.15.3-linux-armv7l.tar.xz                  05-Mar-2019 15:08            10686088


=> Uncompress and copy to /usr/local/ 

# tar -xzf node-v10.15.3-linux-armv6l.tar.gz
# cd node-v10.15.3-linux-armv6l
# sudo cp -R * /usr/local/

=> Now we check if all is ok : 

root@f4eyqraspberrypi node-v10.15.3-linux-armv6l # node -v
v10.15.3

root@f4eyqraspberrypi node-v10.15.3-linux-armv6l # npm -v
6.4.1

3. Download and install CRX-COM now : 

# wget https://project.crx.cloud/d/CRX-COM-njs-lastest.zip
# unzip CRX-COM-njs-lastest.zip


root@f4eyqraspberrypi crx-com # npm i

> @serialport/bindings@2.0.8 install /root/crx-com/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.15.3 runtime=node arch=arm libc= platform=linux)
make : on entre dans le répertoire « /root/crx-com/node_modules/@serialport/bindings/build »
  CXX(target) Release/obj.target/bindings/src/serialport.o
  CXX(target) Release/obj.target/bindings/src/serialport_unix.o
  CXX(target) Release/obj.target/bindings/src/poller.o
  CXX(target) Release/obj.target/bindings/src/serialport_linux.o
  SOLINK_MODULE(target) Release/obj.target/bindings.node
  COPY Release/bindings.node
make : on quitte le répertoire « /root/crx-com/node_modules/@serialport/bindings/build »
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN CRX-COM@1.0.1 No repository field.

added 407 packages from 274 contributors and audited 2512 packages in 484.812s
found 0 vulnerabilities

Now we can run the CRX-COM server :

Note here i'm using "screen" , with it i can disconnect from SSH after launch CRX-COM, 

# screen

Then now i run : 

root@f4eyqraspberrypi crx-com # node bin.js
CRX-COM Node-js server is starting, 1.0.2-1 ...
Support CAT SYSTEM, protocols:Yaesu,Icom,Kenwood

 _._     _,-'""`-._
(,-.`._,'(       |`-/|
    `-.-'  )-`( , o o)
          `-    `_`"'-

Listen now on port:8989
and waiting connexion ...
Found port(s):/dev/ttyAMA0 /dev/ttyUSB0
Found port(s):/dev/ttyAMA0 /dev/ttyUSB0
Found port(s):/dev/ttyAMA0 /dev/ttyUSB0
@setQrg
@setQrg,readbuff:0
Found port(s):/dev/ttyAMA0 /dev/ttyUSB0


For info here is my configuration, i've simply put FT817, and the IP adress of my RASB : 
=> Note i'm using FIREFOX. 
 
crx com 1

crx com 2
 

73 to all , 
Bastien