您的位置:首页 > 文旅 > 旅游 > rttys服务器和客户端

rttys服务器和客户端

2025/3/18 5:39:03 来源:https://blog.csdn.net/u011171361/article/details/139866495  浏览:    关键词:rttys服务器和客户端

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

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
完事,下班。。。。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com