rttys服务器
1.下载
https://github.com/zhaojh329/rttys/releases
2.解压运行
libev交叉编译
cd libev
./configure --host=arm-linux CC=aarch64-poky-linux-gcc --prefix=/home/michael/rtty_install
make install DESTDIR=/home/michael/rtty_install
rtty客户端
1.git地址
git clone --recursive https://github.com/zhaojh329/rtty.git
2.配置&&交叉编译
编辑CMakeLists.txt
cmake_minimum_required(VERSION 3.0)project(rtty C)list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")#set(CMAKE_VERBOSE_MAKEFILE ON)
#我已经导入过了交叉编译环境,没有导入过就使用绝对路径
#set(CMAKE_C_COMPILER "/opt/fsl-imx-wayland/5.10-hardknott/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc")
set(LIBEV_LIBRARY "/home/michael/rtty_install/usr/local/lib/libev.so")
set(LIBEV_INCLUDE_DIR "/home/michael/rtty_install/usr/local/include")add_subdirectory(src)
cmake . -DCMAKE_C_COMPILER=aarch64-poky-linux-gcc -DCMAKE_FIND_ROOT_PATH=/home/michael/rtty_install
DESTDIR=/home/michael/rtty_install make install
编译出来的结果
移植到板子
编译出来的rtty可执行文件放在板子的/usr/bin
编译出来的库可执行文件放在板子的/usr/lib
测试
rtty -I "rtty_id_123" -h '192.168.1.187' -p 5912 -a -v -d 'this is rttys test'
输入网址。第一次需要注册一个账号,第一个注册的账号为最高权限的账号
http://192.168.1.187:5913/login
完事,下班。。。。