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

Refactor device class 2 #146

Closed dxm007 closed 9 months ago

dxm007 commented 9 months ago

This PR puts the broad brushstrokes in place as far as...

  1. Separation of Device (PD side) and DeviceProxy (ACU side) classes and their responsibilities
  2. Introduces the use of PdMessageSecureChannel channel as the an actual channel class (i.e. ALL commands are received from this class and all replies are sent to this class, while underlying IOsdpConnection is maintained internally to the channel)
  3. Introduces SecureChannel negotiation

HEADS UP: THESE CHANGES ARE UNTESTED.

My next step with these changes would be to spin up the sample card reader with IOsdpTcpServerConnection, point the Console at it and get the two sides of OSDP protocol to talk to each other. Haven't gotten there.

bytedreamer commented 9 months ago

You might be able to use Name Pipes to test on the same machine. https://learn.microsoft.com/en-us/dotnet/standard/io/pipe-operations?redirectedfrom=MSDN