Git Product home page Git Product logo

Comments (4)

MelbourneDeveloper avatar MelbourneDeveloper commented on May 27, 2024 1

@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.

hbopuri avatar hbopuri commented on May 27, 2024

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.

MelbourneDeveloper avatar MelbourneDeveloper commented on May 27, 2024

@hbopuri there is now a library for raw COM/Serial Port access. It's released here:

SerialPort.Net

The code is here

WindowsSerialPortDevice

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.

MelbourneDeveloper avatar MelbourneDeveloper commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.