This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
这其实是一个非常难的问题。 TCP/IP 是一个非常繁琐的协议,由于您所拥有的数据包和 ACK 的模式,您所描述的无线电系统将会出现问题。过去,对于一些类似的不适合的应用程序,我工作过的系统通过伪造一些数据包同时通过像您一样的链接推送数据来欺骗 TCP/IP 连接。
这很痛苦,但我们这样做是为了在完全不合适的通道上支持 ssh(移动端点的高丢失和高延迟),但它确实有效。
This is actually a very hard problem. TCP/IP is a very chatty protocol and you will have problems with the radio system you have described because of the pattern of packets and ACKs you will have. In the past for some similarly unsuited applications I worked on a system that fibbed about the TCP/IP connection by faking some packets while pushing the data over a link like you have.
It is a pain, but we were doing it to support sshing over a totally inappropriate channel (high loss and high latency with moving endpoints) but it worked.
SLIP(串行线路 IP)听起来像是您可能想在该项目中研究的内容。
SLIP (Serial Line IP) sounds like something you might want to look into for this project.
您可以通过使用 UART 使用如下软件来使用简单的 TCP/IP、UDP 连接:
http://www.serialporttool.com/CommTunnel.htm
you may use Simple TCP/IP, UDP connection by using UART using a software like this:
http://www.serialporttool.com/CommTunnel.htm