Skip to main content

Pockethernet 网络测试仪的库和命令行客户端

项目描述

这是一个 python 模块,它实现了 Pockethernet 网络测试仪使用的蓝牙协议。它还包括一个基本的命令行客户端。

$ pockethernet 00:13:43:xx:xx:xx
Straight cable
Pair voltages:
- 0V
- 0V
- 0V
- 0V
PoE A: 0V
PoE B: 0V
No link established

$ pockethernet 00:13:43:xx:xx:xx
Cable inserted into ethernet port
Pair voltages:
- 0V
- 0V
- 0V
- 0V
PoE A: 0V
PoE B: 0V
Got 1000BASE-T full duplex link
Link partner advertises:
            HD  FD
  10 MBIT   1   1
 100 MBIT   1   1
1000 MBIT   1   1

到目前为止的python API:

from pockethernet import Pockethernet, WiremapResult, PoEResult, LinkResult
bluething = Pockethernet()
bluething.connect("00:13:43:xx:xx:xx")
wiremap = bluething.get_wiremap()
print(wiremap.connections) # [0, 1, 2, 3, 4, 5, 6, 7, 8]

link = bluething.get_link()
print(link.speed) # 1000BASE-T

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

pockethernet-0.7.0.tar.gz (14.8 kB 查看哈希)

已上传 source

内置分布

pockethernet-0.7.0-py3-none-any.whl (14.2 kB 查看哈希

已上传 py3