简体   繁体   English

将天线连接到计算机的 USB 端口

[英]Interfacing an antenna to usb port of a computer

I have some basic theoretical background in RF.我在射频方面有一些基本的理论背景。 These are the main questions I've been asking myself:这些是我一直在问自己的主要问题:

  • Consider a WiFi adapter connected to a USB port of a computer.考虑连接到计算机 USB 端口的 WiFi 适配器。 Does the time-varying voltage wavefront undergo de-modulation and then only the digital signal is piped into the USB port?时变电压波前是否经过解调,然后只有数字信号通过管道传输到 USB 端口? If yes, then probably there is no simple way to pipe the GHz analog signal into the USB port because the electronic components and circuits are not designed for such high frequencies (just throwing some thoughts here!) If you are 100% positive that one cannot use a PC to receive the time-varying de-modulated analog voltage signals, please ignore the below questions.如果是,那么可能没有简单的方法将 GHz 模拟信号通过管道传输到 USB 端口,因为电子元件和电路不是为如此高的频率设计的(只是在这里提出一些想法!)如果您 100% 肯定不能使用PC接收解调时变的模拟电压信号,请忽略以下问题。

  • what component is needed to interface a (say 2.4 GHz) monopole antenna to a USB port?将(例如 2.4 GHz)单极天线连接到 USB 端口需要什么组件? Should I worry about impedance matching with the usb port (does this sentence even make sense)?我是否应该担心与 USB 端口的阻抗匹配(这句话是否有意义)? My goal is not just ordering the component but also gaining a robust textbook-level understanding of the basic principles of interfacing RF components with electronics and the limitations.我的目标不仅是订购组件,而且还对 RF 组件与电子设备接口的基本原理和限制有可靠的教科书级理解。

  • what Python library should I use to store, analyse and process the time-domain analog voltage signal that is being piped into that USB port?我应该使用什么 Python 库来存储、分析和处理通过管道传输到该 USB 端口的时域模拟电压信号?

Thanks谢谢

Unfortunately there's not a USB dongle that is capable of performing the first part.不幸的是,没有能够执行第一部分的 USB 加密狗。 You will need some serious test equipment to capture a significant chunk of 2.4 GHz signal that is found in WiFi communications.您将需要一些严格的测试设备来捕获 WiFi 通信中发现的大量 2.4 GHz 信号。

To provide more detail, once the modulated signal is received by a WiFi device, it will go through several stages of analog and digital processing.为了提供更多细节,一旦 WiFi 设备接收到调制信号,它将经历模拟和数字处理的几个阶段。 Once the physical signal has been processed, various layers of the device's firmware will perform operations to produce data packets.处理完物理信号后,设备固件的各个层将执行操作以生成数据包。 These packets are used by different layers of the firmware stack.这些数据包由固件堆栈的不同层使用。 By the time any data is sent over the USB bus, it will be very different from the de-modulated voltage that it was originally encoded in.当任何数据通过 USB 总线发送时,它将与最初编码的解调电压大不相同。

I am more familiar with BLE than WiFi but I have found BLE a very interesting protocol to work with and study.我对 BLE 比 WiFi 更熟悉,但我发现 BLE 是一个非常有趣的工作和研究协议。 The spec is free ( BLE 5.2 Spec ) but (as with any communication protocol) can be very dense, but it provides a lot of detail as to how the protocol is designed.该规范是免费的( BLE 5.2 规范),但(与任何通信协议一样)可能非常密集,但它提供了有关协议设计方式的大量细节。 My experience is that using a cheap BLE sniffer (such as nRF BLE Sniffer ) + Wireshark if you're interested in the protocol aspect of a wireless protocol.我的经验是,如果您对无线协议的协议方面感兴趣,可以使用便宜的 BLE 嗅探器(例如nRF BLE Sniffer )+ Wireshark

If you're really after capturing the analog signal, your best bet is to find the best oscilloscope you can get your hands on (high bandwidth and sampling speed), attach a 2.4 GHz antenna and capture the modulated signal.如果您真的要捕获模拟信号,那么最好的办法就是找到最好的示波器(高带宽和采样速度),连接 2.4 GHz 天线并捕获调制信号。 I believe various oscilloscope vendors sell packages for capturing/decoding WiFi signals, etc.我相信各种示波器供应商都出售用于捕获/解码 WiFi 信号等的软件包。

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

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