Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053279Retail ModulesWeb POSpublic2023-08-24 08:502023-09-15 13:21
joniturralde93 
Retail 
urgentmajorsometimes
newopen 
5
 
 
No
0053279: connectRFIDDevice and disconnectRFIDDevice execution order
Those RFID functions have no warranty to be finished at the same time they are called.
As both of them send the command through the websocket as a callback of the "waitForAck" function, if you execute one of them and immediately after the other one, it is possible that the commands are sent to the HWM in the incorrect order due to asynchronicity
- In our case, the customer is using a custom RFID integration, UPOS RFID, but the problem happens in the standard RFID functions of rfidWebSocket.
- Due to very quick user actions, we execute disconnectRFIDDevice and then connectRFIDDevice almost at the same time.
- Disconnect executes waitForAck, then connect executes it also, but the callback of connect starts earlier (randomly). In that case, we first send the connect command and later the disconnect command to the hardware manager, which is incorrect and can lead to the RFID device being paused when it should be enabled and vice versa.
Implement a way to ensure that the order of the function calls corresponds to the order which we send the commands to HWM, maybe a queue system, or even discarding commands if the last received call is oposed to the one being executed (to be analyzed).
No tags attached.
Issue History
2023-08-24 08:50joniturralde93New Issue
2023-08-24 08:50joniturralde93Assigned To => Retail
2023-08-24 08:50joniturralde93Triggers an Emergency Pack => No
2023-09-04 15:31ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-09-15 13:21guillermogilAssigned Toranjith_qualiantech_com => Retail
2023-09-15 13:21guillermogilTypedefect => design defect

There are no notes attached to this issue.