Home > database >  PB is used to implement automatic card read great god contribute some thoughts
PB is used to implement automatic card read great god contribute some thoughts

Time:10-07

Now put the card up reading card is useful only to manually click button to read the card, put the card up to achieve without automatic operation, senior counsel have what idea, I just use PB for half a year,

CodePudding user response:

Reading card in the main window of the Timer, Timer card read operation, failure will trigger again, until success

CodePudding user response:

You required is automatically run at the back of the operation, as long as the reading of the data to be processed in a subsequent operation of the whole event, for example, we usually set a ue_save () event, but this event is usually contains several process:
If ue_preupdate ()=1 then return - 1;//is often used to do before save examination;
If ue_update ()=1 then return - 1;//data updates, submit;
If ud_postupdate ()=1 then return - 1; After the success of the//save, refresh or subsequent processing
Return 1
Like this way, and you put what you have to do things according to the relevant steps related incident,

CodePudding user response:

With postevent

CodePudding user response:

Reading card's window, use the time event, circulation read card, if you don't have card, don't remind, just continue with card

CodePudding user response:

reference 4 floor xiaocaoya response:
reading card's window, use of time, circulation read card, if you don't have card, just don't have to remind, to continue the card


This scheme is very general, but takes up more resources, I didn't also don't better way in pb,

CodePudding user response:

Card reader in the active message read the card, the polling of resources,

CodePudding user response:

I this project the client running for 5 years use timer was very stable if there is need I can provide small sample to you..

CodePudding user response:

This depends on what you are reading card, non-contact M1 card processing points, but not in the non-contact IC card processing,
M1 card, you can directly read the card, and then loop always waiting for card read success, timeout, it returns to go,
Contact IC card, however, he didn't have a treat for card for process, so we have to constantly to perform card read operations, will be more resources,

CodePudding user response:

Can you give me a small sample? I also in learning, [email protected]

CodePudding user response:

Can you give me a small sample? PB9 call rf_card? Thank you [email protected]
  • Related