Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

虚拟串口发送数据失败 #164

Closed
1 of 2 tasks
SmartElec opened this issue May 14, 2024 · 6 comments
Closed
1 of 2 tasks

虚拟串口发送数据失败 #164

SmartElec opened this issue May 14, 2024 · 6 comments

Comments

@SmartElec
Copy link

SmartElec commented May 14, 2024

描述一下这个bug / Describe the bug

串口是使用vspd创建的虚拟串口,打开串口没有报错,发送数据的时候报错,报错信息如图

复现步骤 / To Reproduce

首先打开串口,发送框是默认的数据uart data
然后点击发送
弹出提示框

串口数据发送失败!请检查连接!
System.NullReferenceException:未将对象引I用设置到对象的实例。
在 llcom.Model.Uart.SendData(Bytel] data)
在llcom.MainWindow.sendUartData(Bytel] data,Nullable1is_hex)

预期的行为 / Expected behavior

预期的行为是不会出现发送失败

截图 / Screenshots

image

日志 / Logs

No response

系统 / System

Win10 22H2

软件版本 / Version

1.1.3.3

验证

  • 检查该问题是否已被提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
@LuaRobot
Copy link

⚠ 你的Issue可能缺少了一些信息,请自觉补全,以证明issue内容的真实性:

⚠ Your issue may be missing some information, please complete it to prove the authenticity of the content of the issue:

  • ❌未提供复现所需的代码或工程 does not provide codes or project for reproduction
  • ❌未提供出错时需要的日志文件 does not provide logs when bug happening

@SmartElec
Copy link
Author

上面说错了,是所有串口都是一样的效果.

@chenxuuu
Copy link
Owner

chenxuuu commented May 14, 2024

信息太少了,提供一下下面的信息吧:

  1. 软件报错时完整的截图
  2. 整个文件夹打包发上来

@SmartElec
Copy link
Author

信息太少了,提供一下下面的信息吧:

  1. 软件报错时完整的截图
  2. 整个文件夹打包发上来

image
llcom.zip

日志

2024-05-14 14:05:42.359 +08:00 [INF] [SRART]Logs by LLCOM. https://github.com/chenxuuu/llcom
2024-05-14 14:05:42.397 +08:00 [DBG] [OpenClosePortButton]now:False
2024-05-14 14:05:42.398 +08:00 [DBG] [openPort]False,USB Serial Port (COM18)
2024-05-14 14:05:42.398 +08:00 [DBG] [openPort]GetPortNames
2024-05-14 14:05:42.399 +08:00 [DBG] [openPort]GetPortNames4
2024-05-14 14:05:42.399 +08:00 [DBG] [openPort]PortName:COM18,isOpeningPort:False
2024-05-14 14:05:42.399 +08:00 [DBG] [openPort]SetName
2024-05-14 14:05:42.400 +08:00 [DBG] [openPort]open
2024-05-14 14:05:42.400 +08:00 [DBG] [UartOpen]refreshSerialDevice
2024-05-14 14:05:42.401 +08:00 [DBG] [refreshSerialDevice]start
2024-05-14 14:05:42.401 +08:00 [DBG] [refreshSerialDevice]lastPortBaseStream.Dispose
2024-05-14 14:05:42.401 +08:00 [DBG] [refreshSerialDevice]BaseStream.Dispose
2024-05-14 14:05:42.401 +08:00 [DBG] [refreshSerialDevice]Dispose
2024-05-14 14:05:42.401 +08:00 [DBG] [refreshSerialDevice]new
2024-05-14 14:05:42.401 +08:00 [DBG] [refreshSerialDevice]done
2024-05-14 14:05:42.401 +08:00 [DBG] [UartOpen]open
2024-05-14 14:05:42.405 +08:00 [DBG] [UartOpen]done
2024-05-14 14:05:42.405 +08:00 [DBG] [openPort]change show
2024-05-14 14:05:42.406 +08:00 [DBG] [openPort]check to send
2024-05-14 14:05:42.406 +08:00 [DBG] [openPort]done
2024-05-14 14:05:42.406 +08:00 [DBG] [openPort]all done
2024-05-14 14:07:46.963 +08:00 [DBG] [OpenClosePortButton]now:True
2024-05-14 14:07:46.963 +08:00 [DBG] [OpenClosePortButton]close
2024-05-14 14:07:46.963 +08:00 [DBG] [UartClose]refreshSerialDevice
2024-05-14 14:07:46.963 +08:00 [DBG] [refreshSerialDevice]start
2024-05-14 14:07:46.963 +08:00 [DBG] [refreshSerialDevice]lastPortBaseStream.Dispose
2024-05-14 14:07:46.963 +08:00 [DBG] [refreshSerialDevice]BaseStream.Dispose
2024-05-14 14:07:46.963 +08:00 [DBG] [refreshSerialDevice]Dispose
2024-05-14 14:07:46.963 +08:00 [DBG] [refreshSerialDevice]new
2024-05-14 14:07:46.963 +08:00 [DBG] [refreshSerialDevice]done
2024-05-14 14:07:46.963 +08:00 [DBG] [UartClose]Close
2024-05-14 14:07:46.963 +08:00 [DBG] [UartClose]done
2024-05-14 14:07:46.963 +08:00 [DBG] [OpenClosePortButton]close done
2024-05-14 14:07:46.963 +08:00 [DBG] [OpenClosePortButton]change show
2024-05-14 14:07:46.964 +08:00 [DBG] [OpenClosePortButton]change show done
2024-05-14 14:07:48.247 +08:00 [DBG] [OpenClosePortButton]now:False
2024-05-14 14:07:48.247 +08:00 [DBG] [openPort]False,USB Serial Port (COM18)
2024-05-14 14:07:48.247 +08:00 [DBG] [openPort]GetPortNames
2024-05-14 14:07:48.247 +08:00 [DBG] [openPort]GetPortNames4
2024-05-14 14:07:48.247 +08:00 [DBG] [openPort]PortName:COM18,isOpeningPort:False
2024-05-14 14:07:48.247 +08:00 [DBG] [openPort]SetName
2024-05-14 14:07:48.247 +08:00 [DBG] [openPort]open
2024-05-14 14:07:48.247 +08:00 [DBG] [UartOpen]refreshSerialDevice
2024-05-14 14:07:48.247 +08:00 [DBG] [refreshSerialDevice]start
2024-05-14 14:07:48.247 +08:00 [DBG] [refreshSerialDevice]lastPortBaseStream.Dispose
2024-05-14 14:07:48.247 +08:00 [DBG] [refreshSerialDevice]BaseStream.Dispose
2024-05-14 14:07:48.247 +08:00 [DBG] [refreshSerialDevice]Dispose
2024-05-14 14:07:48.247 +08:00 [DBG] [refreshSerialDevice]new
2024-05-14 14:07:48.248 +08:00 [DBG] [refreshSerialDevice]done
2024-05-14 14:07:48.248 +08:00 [DBG] [UartOpen]open
2024-05-14 14:07:48.251 +08:00 [DBG] [UartOpen]done
2024-05-14 14:07:48.251 +08:00 [DBG] [openPort]change show
2024-05-14 14:07:48.252 +08:00 [DBG] [openPort]check to send
2024-05-14 14:07:48.252 +08:00 [DBG] [openPort]done
2024-05-14 14:07:48.252 +08:00 [DBG] [openPort]all done

@SmartElec
Copy link
Author

SmartElec commented May 14, 2024

信息太少了,提供一下下面的信息吧:

  1. 软件报错时完整的截图
  2. 整个文件夹打包发上来

发现是因为从gitee旧版本1.0.1.1,点击升级到1.1.3.3,才出现的问题,直接下载1.1.3.3没有出现此问题.

@chenxuuu
Copy link
Owner

你的发送脚本怎么是空的,默认是return uartData

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants