bytedreamer / OSDP.Net

A .NET Core control panel implementation of the Open Supervised Device Protocol(OSDP)
Apache License 2.0
47 stars 19 forks source link

usbOsdpConnection #160

Closed velasquezjc closed 2 months ago

velasquezjc commented 7 months ago

Hi, Is there some usbOsdpConnection implementation?

bytedreamer commented 7 months ago

If you are using an USB to RS485 device, the SerialPortOsdpConnection would be adequate. The USB device should report as a standard serial port in the OS.

Please let me know if there is a different use case that needs to be addressed.

AmrRahmy commented 4 months ago

i tried two readers, one of them hid signo 20 using CH340 USB to RS485.

51ygZNn4n4S _AC_SL1166_

doesn't seem work with code or test app.

Capture

bytedreamer commented 4 months ago

It appears that you are having driver incompatibility issues. Check out the discussion about it here on StackOverflow.

https://stackoverflow.com/questions/76158517/serial-to-usb-cable-ch340-new-driver-not-functioning-with-c-sharp-applicatio

AmrRahmy commented 2 months ago

Just saw. I used an rs485 usb adapter with a ground pin, and that worked fine.

71yNeQMaSIL _AC_SL1500_

bytedreamer commented 2 months ago

Great to hear that it worked with a different adapter. Thanks for the update