Home > Software engineering >  Ask two software through the API to monitor a port at the same time
Ask two software through the API to monitor a port at the same time

Time:09-28

Hardware: the hotel id card reader, USB interface
Note: now there is a hotel software, can be read normal card id card, I want to do a small additional software, listening to the id card reader, when the hotel software brush card, my software can be induced to swipe action line,

Problem now is that the hotel software has occupied the id card reader, two software cannot occupy a port at the same time,

Please everyone a great god is there any good solution

CodePudding user response:

Is a serial port? A serial port splitter software can turn a serial port in two, but never used, don't know

CodePudding user response:

Unlikely, a serial port must be exclusive use,
Even if # 1 said points serial interface software, I guess is its direct occupy COM1 (original communication serial port) and then simulate the COM5, COM6, such as for other programs,
Don't you can change the hotel software and its driver, let it another serial port to read?

CodePudding user response:

WinAPIOverride
http://jacquelin.potier.free.fr/winapioverride32/

CodePudding user response:

refer to the second floor Tiger_Zhao response:
, a serial port must be exclusive use,
Even if # 1 said points serial interface software, I guess is its direct occupy COM1 (original communication serial port) and then simulate the COM5, COM6, such as for other programs,
Don't you can change the hotel software and its driver, let it another serial port to read?

It must be this allocation
  •  Tags:  
  • API
  • Related