Comments (4)
@hbopuri , if you would like to write a pull request, here is some code that works well. I've used it before for GPS reading:
https://stackoverflow.com/a/9092519/1878141
However, there are a lot of complications with this. My library is designed for enumerating through devices, while serial port reading is different. The pattern isn't to enumerate through the devices, it's to listen on every port until you find a useful message. This doesn't really fit with Device.Net, but it's not impossible either.
I will implement it at some point, but this is not a high priority right now.
from device.net.
Can you please share the code you have or COM port read and write, As I am developing app that talks to HIDs on a parallel thread I need to talk to COM ports as well so I felt it will be nice if both my HID and COM providers are derived from same library ans signatures. If your code is giving what I need, than I can spend some time to integrate with Device.NET
from device.net.
@hbopuri there is now a library for raw COM/Serial Port access. It's released here:
The code is here
You can see unit tests here. One of these tests will expect a device to be on COM3
But this one will scan the COM ports and try to connect to all:
I expect the tests to have issues on your machine because you're going to have different devices connected on different ports.
Please let me know how you go with this. I will be closing this issue soon if I don't hear anything.
from device.net.
@hbopuri I will document this soon. There is an issue stub for documentation. For now, the unit tests will give you what you need. Also, the windows sample will list out COM ports that are available with a device.
from device.net.
Related Issues (20)
- Unmanaged memory leak in WindowsHidApiService.GetHidCapabilities HOT 3
- Leading zero missing in TrezorExample? HOT 1
- PR#215 Breaking on .Net Framework 4.8 HOT 5
- .net 5 to .net 6 HOT 1
- HidDevice.ReadAsync failed on .NET 6 HOT 6
- Support .NET 4.0 HOT 10
- No Way To Open Readonly Hid HOT 1
- Factory Logging Too Verbose
- Hidapi Support (Hid on Linux/macOS)
- Reference App
- Nullable Reference Types
- The type 'LogLevel' exists in both 'Device.Net and 'Microsoft.Extensions.Logging' HOT 3
- Not able to get the device from USBfinder
- SerialPort.Net returned device can't be initialized HOT 5
- Send & Receive Data from Usb Hid device HOT 2
- Control transfers are incorrect when using LibUSB HOT 1
- Dead project? HOT 2
- 'FilterDeviceDefinition' does not contain a definition for 'CreateWindowsUsbDeviceFactory' HOT 1
- How do I distinguish between devices?
- Couldn't initialize device
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 device.net.