简体   繁体   English

使用RaspberryPi直接在以太网端口上读取信号

[英]Reading signals on ethernet port directly with RaspberryPi

I have a device which connects to its remote using rj45 port and 4 wire cable (a desk with adjustable height). 我有一台使用rj45端口和4线电缆(可调节高度的办公桌)连接到其遥控器的设备。 I'm pretty sure it does not actually use an Ethernet protocol and uses sends some simple digital signals. 我敢肯定,它实际上并没有使用以太网协议,而是使用了一些简单的数字信号。 I want to Raspberry Pi to be able to control the device, so I was wondering if it is possible to read and dump and then send signals using Ethernet port just like I can do with any other pins? 我希望Raspberry Pi能够控制该设备,所以我想知道是否可以像使用其他任何引脚一样使用以太网端口读取,转储然后发送信号? Probably the actual question here is about a way to bypass Ethernet driver in Linux OS. 这里的实际问题可能是关于在Linux OS中绕过以太网驱动程序的方法。

This won't work. 这行不通。 The Ethernet NIC on the RPi - just like any other NIC - can only receive Ethernet frames. 与其他任何NIC一样,RPi上的以太网NIC只能接收以太网帧。 Anything else needs to be connected over GPIO. 任何其他都需要通过GPIO连接。

Edit: As NO-OP has reasonably pointed out, the signals may need to be made compatible with the GPIO pins - levels adjusted, maybe an opto-isolator here and there. 编辑:正如NO-OP合理指出的那样,可能需要使信号与GPIO引脚兼容-调整电平,也许在此处和那里有一个光电隔离器。 Nothing expensive though usually. 平时没什么贵。 For controlling powered devices you likely need a driver or relais board - there are plenty around for the RPi. 为了控制有源设备,您可能需要驱动程序或中继板-RPi周围有很多东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM