Android设备作为主机的Shell脚本,并将CMD/消息/广播发送到服务器

发布于 2025-02-02 22:30:29 字数 222 浏览 4 评论 0原文

对于ADB Shell脚本,我可以将Android设备用作主机,并通过WiFi连接将一些消息/CMD/广播发送到我的Linux服务器吗?最简单的方法是更好。该消息仅包括4个文本“ 0000”,“ 0001”,“ 0010”等。因为当服务器接收此消息/CMD/广播时,服务器需要将腔室设置更改为正确的设置。但是我只能使用Shell脚本在Android设备上执行此任务。不允许Python脚本。有没有建议此任务?

谢谢。

For adb shell script, can I use the Android device as the host and send some message/cmd/broadcast to my linux server through the wifi connection? The simplest way is better. The message only includes 4bits text "0000","0001","0010", etc,. Because when the server receives this message/cmd/broadcast, server needs to change the chamber setting to the correct one. But I can only use shell script to perform this task on android device. Python script is not allowed. Is there any recommendation for this task?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奢华的一滴泪 2025-02-09 22:30:29

谢谢Gabe Sechan给我一个好主意,可以在网页上记录信息。我的Linux可以监视网页并控制实验室中的腔室。

Thanks Gabe Sechan give me a good idea to log the information on the web page. My Linux could monitor the web page and control the chamber in the laboratory.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文