Thread don't seem to run anymore because if I try to scan the card again, nothing happen. Nothing is displayed. Just don't understand because there is only one who have access to serial port.
Sometime get another result
run
run before read
updateCardId
suspend
updateCardId: before read
scan the card, but nothing happen,
scan the card again and get
updateCardId: after read
updateCardId: E00124ABF84CE001
resume
Card id should be E004010024ABF84C, seem like some issue can happen with the read
I have updated the jar file. Please use latest sp-hid.jar file, latest demo app and hid api. In case you still face any issue let us track and solve at google group.
I created an web apps with spring boot. When application start, I start to do a blocking read on the serial port. I use serialPundit library.
My thread code
If a member don't have a card assigned, I don't want to suspend the thread, do another process on the serial port and resume the thread.
When a user don't have a card assigned, I have this code who need to be called.
It's seem to have an issue about the thread.
When I start the application,
run is displayed.
I do a call to this URL: http://localhost:8080/members/1/card No card assigned.
theses string are displayed
updatedCardId suspend
run 2: I/O operation unblocked !
I pass a card over the scanner
theses string are displayed id resume
Thread don't seem to run anymore because if I try to scan the card again, nothing happen. Nothing is displayed. Just don't understand because there is only one who have access to serial port.
Sometime get another result
run run before read updateCardId suspend updateCardId: before read
scan the card, but nothing happen, scan the card again and get
updateCardId: after read updateCardId: E00124ABF84CE001 resume
Card id should be E004010024ABF84C, seem like some issue can happen with the read