Comments (5)
这个跟多网卡应该没关系。
.1是PC的话理论上应该可以才对,我这里测试两台之间通信是没问题的,
没办法复现你的现象,暂时不太清楚问题在哪儿
from comtool.
lambda是默认值,在这里设置的 https://github.com/Neutree/COMTool/blob/d7bb5aa087cc58d94c36c3442196b318dfc97c10/COMTool/pluginItems.py#LL204C43-L204C53
然后会在这里
COMTool/COMTool/pluginItems.py
Line 244 in d7bb5aa
onRecieved
方法
既然你可以调试,方便的话可以调试一下应该就能发现问题了
from comtool.
你这是 15在向.1网关发送数据呀,跟comtool有啥关系
from comtool.
你这是 15在向.1网关发送数据呀,跟comtool有啥关系
15是外部设备,.1是PC的网口,comtool却收不到这些数据?是我的comtool配置的不太对?
from comtool.
看了下UDP部分的实现,socket是绑定到0.0.0.0:<port>
上的,这里没有问题
但是在onReceiveProcess函数中,收到的data
会附加到buffer
,然后丢给self.onReceived()
处理,这个方法继承自Comm.onReceived,这个lambda方法是空的?收到的数据没有被处理嘛?
我不太了解pyqt的开发,不过尝试复现了一下UDP的接收,如有疏漏,请指出。
附:
我自己写的socket测试代码:
import socket
from datetime import datetime
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(("0.0.0.0", 7000))
while True:
recv, addr = sock.recvfrom(1024)
now = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
print(f"{now}: client: {addr}, data size: {len(recv)}")
from comtool.
Related Issues (20)
- 希望团队加个tab标签页变色的小功能 HOT 4
- 打开串口长时间运行后, 运行卡顿 HOT 5
- 请求支持ARM版本的MAC HOT 9
- RK3588开发板无法正常使用该软件,请求优化 HOT 3
- error in onReceived callback: release unlocked lock HOT 1
- ubuntu打不开 HOT 1
- 关于USB权限的问题 HOT 1
- 安装问题 HOT 3
- linux系统中安装问题 HOT 1
- 希望有一个文档简单描述下内部多个线程以及协议插件的相互交互逻辑 HOT 1
- 打开多个窗口会使config.json内容出错(以及tab页分离支持) HOT 6
- 输出显示乱码,UTF-8、ASCII、GBK每一个我都试了,还是会乱码 HOT 2
- 图标问题 HOT 1
- issues HOT 12
- 提示缺少main2、helpAbout、Combobox等module HOT 2
- linux端串口终端不能拷贝 HOT 1
- windows下该如何使用pip安装comtool? HOT 5
- 图表部分,能不能来一个简单的协议? HOT 3
- deepin linux 上不能打开 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comtool.