Raspberry pi IPTABLES-使用树莓Pi将数据包路由到Tello无人机
我正在尝试实现上述网络架构。Pi通过WiFi连接至无人机,并通过以太网连接至接入点 如何通过Raspberry Pi将数据包路由到Tello无人机,以及如何通过Raspberry Pi从Tello无人机路由到192.168.1.100?我可以使用哪些iptables命令 这是我用来从192.168.1.100发送无人机命令的简单python脚本Raspberry pi IPTABLES-使用树莓Pi将数据包路由到Tello无人机,raspberry-pi,iptables,portforwarding,tello-drone,Raspberry Pi,Iptables,Portforwarding,Tello Drone,我正在尝试实现上述网络架构。Pi通过WiFi连接至无人机,并通过以太网连接至接入点 如何通过Raspberry Pi将数据包路由到Tello无人机,以及如何通过Raspberry Pi从Tello无人机路由到192.168.1.100?我可以使用哪些iptables命令 这是我用来从192.168.1.100发送无人机命令的简单python脚本 import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) tello_
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
tello_addr = ("192.168.10.1", 8889)
sock.bind(("", 9000))
while True:
try:
msg = input("Enter a command: ")
if not msg:
break
if "end" in msg:
sock.close()
break
msg = msg.encode()
print(msg)
sent = sock.sendto(msg, tello_addr)
response = sock.recv(1024)
print(response)
except Exception as err:
print(err)
sock.close()
break
Sry的迟回复,刚刚从一些测试回来 你可以按照这条线索来寻找答案 实现转发的关键命令是sudo iptabels 有关详细信息,请参阅本技术报告。关键命令和说明都在附录部分
github回购协议的其余部分尚未完成。但关键命令已在技术报告中提供。对于基于视觉SLAM的导航,核心源代码在这里,但需要大量调整。是的,我在您报告的附录(第35页)中找到了我想要的命令,现在我可以成功地开始在群中使用无人机拍摄视频,非常感谢!