CN105574420B - The exchange method and device of signaling inter face unit SIU and terminal - Google Patents
The exchange method and device of signaling inter face unit SIU and terminal Download PDFInfo
- Publication number
- CN105574420B CN105574420B CN201510906750.XA CN201510906750A CN105574420B CN 105574420 B CN105574420 B CN 105574420B CN 201510906750 A CN201510906750 A CN 201510906750A CN 105574420 B CN105574420 B CN 105574420B
- Authority
- CN
- China
- Prior art keywords
- instruction
- siu
- pos machine
- terminal
- cash box
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0009—Details of the software in the checkout register, electronic cash register [ECR] or point of sale terminal [POS]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of exchange methods of signaling inter face unit SIU and terminal, including:Receive the instruction that multiple terminals send over;Instruction to receiving the multiple terminal carries out timesharing execution according to priority, and implementing result is back to corresponding terminal.The invention also discloses a kind of interactive devices of signaling inter face unit SIU and terminal.Signaling inter face unit SIU of the present invention may be implemented to interact with multiple terminals, enhances signaling inter face unit SIU and uses function, improves the convenience that signaling inter face unit SIU is used.
Description
Technical field
The present invention relates to technical field of electronic equipment more particularly to a kind of sides of interaction of signaling inter face unit SIU and terminal
Method and device.
Background technology
Signaling inter face unit (Signaling Interface Unit, SIU) be widely used it is general, in self-service industry
For use, currently, SIU in the market is interacted with single terminal or peripheral hardware, for example, there is simple lamp bar to drive
Dynamic, power drives, motor driving, POS machine driving, the driving of cash box movement etc., the use function of realization is relatively simple, flexibility ratio
It is not high.Therefore, when often having new self-service application demand, it is necessary to redesign SIU, cause the type of SIU various, also result in tight
The design cost of weight wastes and consumes huge manpower and time cost so that SIU uses very inconvenient.
Invention content
The main purpose of the present invention is to provide the exchange method and device of a kind of signaling inter face unit SIU and terminal, purports
Function is used in enhancing signaling inter face unit SIU, improves the convenience that signaling inter face unit SIU is used.
To achieve the above object, the present invention provides a kind of exchange method of signaling inter face unit SIU and terminal, the letters
It enables interface unit SIU be provided with multiple serial ports to be attached with multiple terminals, the interaction of the signaling inter face unit SIU and terminal
Method includes the following steps:
Receive the instruction that multiple terminals send over;
Instruction to receiving the multiple terminal carries out timesharing execution according to priority, and implementing result is back to accordingly
Terminal.
Optionally, the terminal includes industrial personal computer, POS machine and cash box movement, to the instruction of the multiple terminal according to excellent
First grade carries out timesharing execution, and implementing result, which is back to corresponding terminal, includes:
To receiving the instruction of industrial personal computer, POS machine and cash box movement, POS machine, cash box movement are executed successively according to priority
And the instruction of industrial personal computer, implementing result is back to corresponding terminal.
Optionally, the described pair of instruction for receiving industrial personal computer, POS machine and cash box movement executes POS successively according to priority
The instruction of machine, cash box movement and industrial personal computer, implementing result, which is back to corresponding terminal, includes:
After carrying out key reset and initialization according to the instruction for receiving POS machine, specified key is obtained, and judges
Whether specified key can be obtained successfully;
If specified key can be obtained successfully, returns to acquisition and specify the successful information of key to the POS machine, to described
The ciphertext data that POS machine is sended over according to described information are decrypted, and when successful decryption, ciphertext data is sent to cash box
Movement returns to the information of decryption failure to the POS machine when decrypting unsuccessful;
If specified key cannot be obtained successfully, returns and obtain the information for specifying key failure to the POS machine.
Optionally, described when successful decryption, ciphertext data, which is sent to cash box movement later, includes:
It receives the cash box movement and executes the status data sended over after corresponding operation according to the ciphertext data of reception;
The status data is encrypted, and judges whether succeed to status data encryption;
If being encrypted successfully to the status data, encryption data is generated, the encryption data is back to POS machine;
If to the status data failed encryption, encryption is re-started in preset time, and more than preset time
When unencryption success, the information of the cash box movement failed encryption is returned to the POS machine.
Optionally, the signaling inter face unit SIU is provided with multiple control interfaces and is attached with multiple peripheral hardwares, described right
The instruction for receiving industrial personal computer, POS machine and cash box movement executes POS machine, cash box movement and industrial personal computer according to priority successively
Instruction, implementing result, which is back to corresponding terminal, includes:
Peripheral hardware is controlled according to the instruction for receiving industrial personal computer to be initialized, and is detected with the presence or absence of the shape to the peripheral hardware
State is detected or sets instruction;
If in the presence of execution is detected or sets instruction to the state of one or more peripheral hardwares, and detection or setting are tied
Fruit is back to the industrial personal computer;
If being not present, the instruction for receiving the industrial personal computer again is waited for.
Optionally, the signaling inter face unit SIU and the exchange method of terminal further include:
Remote control commands are received, the primary application program of the signaling inter face unit SIU is remotely updated.
In addition, to achieve the above object, dress is interacted the present invention also provides a kind of signaling inter face unit SIU and terminal
Set, the signaling inter face unit SIU is provided with multiple serial ports and is attached with multiple terminals, the signaling inter face unit SIU with
The interactive device of terminal includes:
Receiving module receives the instruction that multiple terminals send over;
Execution module will be executed for carrying out timesharing execution according to priority to the instruction for receiving the multiple terminal
As a result it is back to corresponding terminal.
Optionally, the terminal includes industrial personal computer, POS machine and cash box movement, and the execution module is additionally operable to, to receiving
The instruction of industrial personal computer, POS machine and cash box movement executes the instruction of POS machine, cash box movement and industrial personal computer according to priority successively,
Implementing result is back to corresponding terminal.
Optionally, the execution module includes:
Acquiring unit, after carrying out key reset and initialization according to the instruction for receiving POS machine, to specified key into
Row obtains, and judges whether successfully obtain specified key;
If decryption unit returns to acquisition and specifies the successful information of key to described for can successfully obtain specified key
The ciphertext data that the POS machine is sended over according to described information are decrypted in POS machine, when successful decryption, will decrypt number
According to being sent to cash box movement, when decrypting unsuccessful, the information of decryption failure is returned to the POS machine;
If returning unit returns for cannot successfully obtain specified key and obtains the information for specifying key failure to institute
State POS machine.
Optionally, the execution module further includes:
Receiving unit is transmitted across for receiving after the cash box movement executes corresponding operation according to the ciphertext data of reception
The status data come;
Encryption unit for the status data to be encrypted, and judges whether succeed to status data encryption;
If processing unit generates encryption data, the encryption data is returned for being encrypted successfully to the status data
It is back to POS machine;If to the status data failed encryption, encryption is re-started in preset time, and when more than default
Between unencryption success when, return to the information of the cash box movement failed encryption to the POS machine.
Optionally, the signaling inter face unit SIU is provided with multiple control interfaces and is attached with multiple peripheral hardwares, described to hold
Row module further includes:
Detecting unit for being initialized according to the instruction control peripheral hardware for receiving industrial personal computer, and is detected and be whether there is
The state of the peripheral hardware is detected or is set instruction;
Execution unit, if for being detected or setting instruction in the presence of the state to the peripheral hardware, execute to one or
The state of multiple peripheral hardwares is detected or sets instruction, will detect or setting result is back to the industrial personal computer;Otherwise, weight is waited for
Newly receive the instruction of the industrial personal computer.
Optionally, the signaling inter face unit SIU and the interactive device of terminal further include:
Update module carries out the primary application program of the signaling inter face unit SIU remote for receiving remote control commands
Cheng Gengxin.
Signaling inter face unit of embodiment of the present invention SIU is provided with multiple serial ports and is attached with multiple terminals, when receiving
The instruction of multiple terminals carries out timesharing execution according to priority to instruction, and implementing result is back to corresponding terminal, is avoided more
A terminal causes the blocking of CPU on signaling inter face unit SIU when sending instructions under simultaneously.Signaling inter face unit SIU may be implemented with
Multiple terminals interact, and enhance signaling inter face unit SIU and use function, improve signaling inter face unit SIU and use just
Victory.
Description of the drawings
Fig. 1 is the structural schematic diagram of signaling inter face unit SIU of the present invention;
Fig. 2 is the flow diagram of the exchange method first embodiment of signaling inter face unit SIU of the present invention and terminal;
Fig. 3 is to execute the refinement stream of the instruction of POS machine in signaling inter face unit SIU of the present invention and the exchange method of terminal
Journey schematic diagram;
Fig. 4 is the high-level schematic functional block diagram of the interactive device first embodiment of signaling inter face unit SIU of the present invention and terminal;
The refinement function module of execution module is shown during Fig. 5 is signaling inter face unit SIU of the present invention and the interactive device of terminal
It is intended to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The interaction schemes of signaling inter face unit SIU of the present invention and terminal can be applied to self-service industry, for example, signaling interface list
The application of first SIU and financial terminal interacts, below will be with SIU and industrial personal computer, POS machine, cash box movement and other peripheral hardwares
Interaction for be described in detail.As shown in Figure 1, for the structural schematic diagram of SIU, wherein COM1, COM2, COM3 are three
Independent serial ports, serial ports COM1 connection industrial personal computers, serial ports COM2 connection POS machine, serial ports COM3 connection cash box movements.S_LED1、
S_LED2, S_LED3 be three monochromatic LED lamp bars control interface, it can be achieved that for different terminals control the LED light flicker,
Or the states such as it is always on or extinguishes.Any one control interface in these three control interfaces of S_LED1, S_LED2, S_LED3 is equal
Reusable is the control interface of alarming horn or the driving interface of shock sensor.D_LED1, D_LED2, D_LED3 tri-
The control interface of a dual-colored LED lamp bar is, it can be achieved that double sudden strains of a muscle of bi-colour light, single sudden strain of a muscle, Dan Liang, the states such as singly go out.D_CHECK1、D_
CHECK1 is the monitoring interface of two safe door states, can monitor the opening of safety door in real time or close or three kinds of shapes such as unknown
State, and the data that monitoring obtains are transferred to terminal in real time and are handled.The two interface reusables of D_CHECK1, D_CHECK1
For the driving interface of microwave remote sensor or infrared sensor.Motor1, Motor2 are two motor driving interfaces, can control motor
The forward or reverse of equipment, for example, the motor of 12V and 24V is controlled respectively, meanwhile, the two interface reusables control for power supply
Interface (it is up to AC110V that the power supply, which can be arranged) or electromagnetic lock driving interface.SIU further includes that the ARM of a high speed adds
Close chip and a removal switch.ARM encryption chips are fast to the processing speed of data, and reliability is high, and encryption function is powerful.It moves
The self-destructed function of key is removed except switch has, is played the role of to protection sensitive data very positive.
It should be noted that above-mentioned SIU interface flexibles degree is higher, there are multiple interfaces that can be multiplexed with connecing for multiple peripheral hardwares
Mouthful, it can realize new function by changing software, good solution is provided for the different demand of terminal.Meanwhile SIU
With powerful encryption and decryption calculation function, powerful support is provided in terms of protecting sensitive data.SIU Software for Design, which uses, to be divided
The software design scheme of section, is divided into bootstrap IAP and primary application program APP.There are the stringent schools YMODE in bootstrap IAP
It tests, the mistake that occurs by loss of data when preventing APP programs from updating, in conjunction with self-destruction and power down key self-destruction at the one of hardware
Function, SIU have high security performance, and can facilitate the long-range update APP programs of realization.APP programs are using multitask
Program processing mode avoids issuing simultaneously for POS instructions, the instruction of main industrial personal computer, movement data by the way of time-division processing
CPU caused by when instruction blocks.Meanwhile APP programs realize encryption and non-encrypted two kinds of transmission modes, are adapted to different ends
End demand.Following embodiment will be described in more detail.
As shown in Fig. 2, showing a kind of exchange method first embodiment of signaling inter face unit SIU and terminal of the present invention.
The signaling inter face unit SIU of the embodiment and the exchange method of terminal include:
Step S10, the instruction that multiple terminals send over is received;
The signaling inter face unit SIU of the present embodiment can be the SIU of above structure, the application of the interaction schemes of SIU and terminal
Field can be configured according to actual needs, will be applied to financial terminal with the interaction schemes of SIU and terminal below, with finance
The industrial personal computer of terminal, POS machine, cash box movement and other peripheral hardwares interaction for be described in detail.
In the present embodiment, SIU is provided with multiple serial ports and is attached with multiple terminals, which may include industrial personal computer, POS
Machine, cash box movement etc., SIU is after receiving the instruction that terminal sends over, if one of detecting in multiple terminals eventually
The instruction sent is held, then the instruction is received and execute, to drive the corresponding function of the realization of the terminal.If detecting multiple terminals
In the instruction that sends simultaneously of two of which or more than two terminals, then receive the instructions of multiple terminals simultaneously and cached,
Subsequently to carry out time-division processing.
Step S20, timesharing execution is carried out according to priority to the instruction for receiving the multiple terminal, implementing result is returned
It is back to corresponding terminal.
In the present embodiment, it is above-mentioned and meanwhile receive multiple terminals instruction cached after, the instruction of multiple terminals is pressed
Timesharing execution is carried out according to priority.Further, above-mentioned steps S20 may include:To receiving industrial personal computer, POS machine and cash box machine
The instruction of core executes the instruction of POS machine, cash box movement and industrial personal computer according to priority successively, and implementing result is back to accordingly
Terminal.The instruction for preferentially executing POS machine, then executes the instruction of cash box movement and industrial personal computer successively, after pending,
Implementing result is back to corresponding terminal by SIU.It realizes and is used for POS instructions, the instruction of main industrial personal computer, the instruction of cash box movement
The mode of time-division processing, corresponding instruction is executed after first caching according to priority, and CPU caused by when avoiding sending instructions down simultaneously hinders
The problem of plug.
SIU of the embodiment of the present invention is provided with multiple serial ports and is attached with multiple terminals, when the finger for receiving multiple terminals
It enables and timesharing execution is carried out to instruction according to priority, implementing result is back to corresponding terminal, avoid multiple terminals at present
The blocking of CPU on SIU is caused when sending instructions.SIU may be implemented to interact with multiple terminals, solve SIU in the prior art
It is relatively simple using function, when often having new self-service application demand, it is necessary to redesign SIU, design cost is caused to waste
Problem enhances SIU and uses function, improves the convenience that SIU is used.
Further, as shown in figure 3, being based on above-mentioned first embodiment, it is proposed that signaling inter face unit SIU of the present invention and end
The exchange method second embodiment at end, the above-mentioned instruction to receiving industrial personal computer, POS machine and cash box movement in the embodiment, is pressed
The instruction for executing POS machine, cash box movement and industrial personal computer successively according to priority, the step of implementing result is back to corresponding terminal
It may include:
Step S31, after carrying out key reset and initialization according to the instruction for receiving POS machine, specified key is obtained
It takes;
Step S32, judge whether successfully obtain specified key;If so, S34 is thened follow the steps, if it is not, then executing step
Rapid S33;
Step S33, it returns and obtains the information for specifying key failure to the POS machine;
Step S34, returning to obtain specifies the successful information of key to the POS machine, to the POS machine according to described information
The ciphertext data sended over are decrypted;
Step S35, judge whether successful decryption succeeds;If success, thens follow the steps S37, if unsuccessful, thens follow the steps
S36;
Step S36, the information of decryption failure is returned to the POS machine;
Step S37, ciphertext data is sent to cash box movement.
In the present embodiment, during the instruction of the POS machine to receiving executes, contained in the instruction required
Specified key, SIU first resets all keys, and is initialized to required part of key.Then, SIU
It downloads and specifies key, and judge whether successfully download specified key.When SIU, which is downloaded, specifies key unsuccessful, return obtains
Fetching determines the information of key failure to POS machine, so that POS machine retransmits instruction to SIU according to the information of specified key failure.
When SIU successfully can download specified key, specify the successful information of key to POS machine by obtaining.POS machine receive SIU at
After work(obtains the information for specifying key, ciphertext data are sent to SIU.SIU receives the ciphertext data that POS machine sends over
Afterwards, it is decrypted according to downloading the obtained key pair ciphertext data, and judges whether succeed to ciphertext data deciphering.If decryption
Success, then be sent to cash box movement by ciphertext data, so that cash box movement executes note output operation according to ciphertext data;If decryption is not
Success then returns to the information of decryption failure to POS machine, so that POS machine retransmits instruction extremely according to the information of decryption failure
SIU。
For the present embodiment SIU during being interacted with POS machine, SIU can realize decryption function so that POS machine can be into
Row ciphertext is transmitted, and is provided powerful support in terms of protecting sensitive data, is substantially increased the safety of the interaction of SIU and terminal
Property.
Further, it is based on above-mentioned second embodiment, it is proposed that the side of interaction of signaling inter face unit SIU and terminal of the present invention
Method 3rd embodiment may include after above-mentioned steps S37 in the embodiment:Receive decryption number of the cash box movement according to reception
According to the status data sended over after the corresponding operation of execution;
The status data is encrypted, and judges whether succeed to status data encryption;
If being encrypted successfully to the status data, encryption data is generated, the encryption data is back to POS machine;
If to the status data failed encryption, encryption is re-started in preset time, and more than preset time
When unencryption success, the information of the cash box movement failed encryption is returned to the POS machine.
In the present embodiment, ciphertext data is sent to cash box movement by above-mentioned POS machine, and ciphertext data is received in cash box movement
Afterwards, cash box movement executes the operations such as corresponding note output, money-checking, and the status data for executing corresponding operating is then sent to SIU, should
Status data may include that the data such as total number of note output, the coding of banknote, authenticity verification result, the status data are plaintext number
According to.After SIU receives status data, status data is encrypted, and judges whether succeed to status data encryption.When
When encrypting successfully to status data, SIU generates encryption data, which is back to POS machine.It is encrypted when to status data
Failure, SIU re-starts always status data in preset time encryption, if being encrypted in defined preset time successfully,
Encryption data is then sent to POS machine;If the failed encryption in defined preset time, i.e., more than preset time unencryption at
Work(then returns to the information of cash box movement failed encryption to POS machine.It should be noted that SIU can realize encryption and non-encrypted two kinds
Transmission mode can be selected according to actual needs during use.
The present embodiment SIU has encryption function, and during being interacted with cash box movement, SIU can be to clear data
It is encrypted, and encryption data is sent to POS machine, provide powerful support in terms of protecting sensitive data, greatly improve
The safety of the interaction of SIU and terminal.
Further, it is based on above-mentioned first embodiment, it is proposed that the side of interaction of signaling inter face unit SIU and terminal of the present invention
Method fourth embodiment, the above-mentioned instruction to receiving industrial personal computer, POS machine and cash box movement in the embodiment, according to priority according to
The secondary instruction for executing POS machine, cash box movement and industrial personal computer, the step of implementing result is back to corresponding terminal, may include:Root
Peripheral hardware is controlled according to the instruction for receiving industrial personal computer to be initialized, and detects whether there is and the state of the peripheral hardware is detected
Or setting instruction;
If in the presence of execution is detected or sets instruction to the state of one or more peripheral hardwares, and detection or setting are tied
Fruit is back to the industrial personal computer;
If being not present, the instruction for receiving the industrial personal computer again is waited for.
In the present embodiment, SIU is provided with multiple control interfaces and is attached with multiple peripheral hardwares, and SIU is according to receiving industry control
The instruction of machine during idle time will inquire the state of multiple peripheral hardwares, and the state of the peripheral hardware includes the gate-shaped of safety box
State, the state etc. of microwave induced sensor are related to the peripheral hardware of security module, and the state that uploading detection arrives in real time is to industrial personal computer.Or
Person is set to the state of certain peripheral hardwares according to the instruction for receiving industrial personal computer, and peripheral hardware is controlled according to different terminals to realize
State complete instruction function.Specifically, SIU controls required specified peripheral hardware and carries out just after receiving the instruction of industrial personal computer
Beginningization, and detect whether there is and the state of peripheral hardware is detected or is set instruction.If in the presence of executing outside to one or more
If state be detected or set instruction, will detection or setting result be back to industrial personal computer;If being not present, etc. work to be received
The instruction of control machine.For example, it is assumed that when SIU receives electromagnetic door detection instruction, electromagnetic door detection instruction is executed, and by electromagnetic door
Testing result on or off state is sent to industrial personal computer, so that industrial personal computer executes corresponding operation according to testing result.SIU
When receiving LED light setting instruction, the current state of LED light is set according to LED light setting instruction, and judge LED
Whether the current state of lamp sets success, if setting successfully, returns to LED light and sets successful information to industrial personal computer;If conversely,
Setting failure then returns to the information of LED light setting failure to industrial personal computer.
It should be noted that multiple control interfaces of SIU settings can realize that multiplexing function, same control interface can be according to realities
Border needs the peripheral hardware for selecting with needing to be attached, for example, the monitoring interface of the safe door state on SIU, reusable are microwave
The driving interface of sensor or infrared sensor.By the multiplexing function of control interface, coordinate flexible Software for Design, to make
SIU interface flexible degree it is higher, the function of different demands can be completed by realizing single face, efficient, perspective good.It can
To realize the function of a variety of SIU currently on the market, the demand of different application need to can be only realized by software configuration, is enhanced
SIU uses function.
The present embodiment SIU, can be to one or more according to the instruction for receiving industrial personal computer in the interactive process with industrial personal computer
The state of a peripheral hardware is detected or sets, and realizes safety monitoring function, improves the convenience that SIU is used.
Further, based on any embodiment in first to fourth above-mentioned embodiment, in the present embodiment, above-mentioned signaling interface
Cell S IU and the exchange method of terminal further include:Receive remote control commands, the main application to the signaling inter face unit SIU
Program is remotely updated.The step can be executed according to actual needs, can perform after or before above steps.
In the present embodiment, SIU Software for Design is divided into bootstrap IAP and main application using the software design scheme of segmentation
Program APP.There are stringent YMODE verifications, the mistake occurred by loss of data when preventing APP programs from updating in bootstrap IAP
Accidentally, the function of long-range update primary application program APP and is added in bootstrap IAP, long-range update primary application program APP is non-
It is often convenient, it is only necessary to the long-range update of primary application program APP can be easily accomplished by terminal (such as computer).Specifically, exist
User buys after the SIU carries out use, and when subsequently needing the function to primary application program APP to be updated, user opens electricity
After brain is connect with SIU, the remote control commands of after-sale service side are received, after-sale service can be grasped on the computer of oneself
Make, the primary application program of SIU is remotely updated.The trouble gone on business is eliminated, can be easily that the SIU that user uses is carried out more
Newly.
The present embodiment carries out long-range newer function to the primary application program of SIU, is what user used to after-sale service side
SIU, which is updated, to be provided a convenient, and is saved expense cost and time, is improved the convenience that SIU is used.
Accordingly, as shown in figure 4, proposing that the interactive device first of a kind of signaling inter face unit SIU of the present invention and terminal is real
Apply example.The signaling inter face unit SIU of the embodiment and the interactive device of terminal include:
Receiving module 100 receives the instruction that multiple terminals send over;
The signaling inter face unit SIU of the present embodiment can be the SIU of above structure, the application of the interaction schemes of SIU and terminal
Field can be configured according to actual needs, will be applied to financial terminal with the interaction schemes of SIU and terminal below, with finance
The industrial personal computer of terminal, POS machine, cash box movement and other peripheral hardwares interaction for be described in detail.
In the present embodiment, SIU is provided with multiple serial ports and is attached with multiple terminals, which may include industrial personal computer, POS
Machine, cash box movement etc., SIU is after receiving the instruction that terminal sends over, if one of detecting in multiple terminals eventually
The instruction sent is held, then the instruction is received and execute, to drive the corresponding function of the realization of the terminal.If detecting multiple terminals
In the instruction that sends simultaneously of two of which or more than two terminals, then receiving module 100 receive the instructions of multiple terminals into
Row caching, subsequently to carry out time-division processing.
Execution module 200 will be held for carrying out timesharing execution according to priority to the instruction for receiving the multiple terminal
Row result is back to corresponding terminal.
In the present embodiment, it is above-mentioned and meanwhile receive multiple terminals instruction cached after, execution module 200 is to multiple ends
The instruction at end carries out timesharing execution according to priority, and further, execution module 200 is additionally operable to, to receiving industrial personal computer, POS
The instruction of machine and cash box movement executes the instruction of POS machine, cash box movement and industrial personal computer according to priority successively, by implementing result
It is back to corresponding terminal.The instruction for preferentially executing POS machine, then executes the instruction of cash box movement and industrial personal computer successively.It waits for
After being finished, implementing result is back to corresponding terminal by SIU.It realizes for POS instructions, the instruction of main industrial personal computer, cash box
Movement instructs by the way of time-division processing, executes corresponding instruction according to priority after first caching, avoids sending instructions down simultaneously
When caused by CPU block the problem of.
SIU of the embodiment of the present invention is provided with multiple serial ports and is attached with multiple terminals, when the finger for receiving multiple terminals
It enables and timesharing execution is carried out to instruction according to priority, implementing result is back to corresponding terminal, avoid multiple terminals at present
The blocking of CPU on SIU is caused when sending instructions.SIU may be implemented to interact with multiple terminals, solve SIU in the prior art
It is relatively simple using function, when often having new self-service application demand, it is necessary to redesign SIU, design cost is caused to waste
Problem enhances SIU and uses function, improves the convenience that SIU is used.
Further, as shown in figure 5, being based on above-mentioned first embodiment, it is proposed that signaling inter face unit SIU of the present invention and end
The interactive device second embodiment at end, above-mentioned execution module 200 may include in the embodiment:
Acquiring unit 210, after carrying out key reset and initialization according to the instruction for receiving POS machine, to specified close
Key is obtained, and judges whether successfully obtain specified key;
If decryption unit 220 returns to acquisition and specifies the successful information of key to institute for can successfully obtain specified key
POS machine is stated, the ciphertext data that the POS machine is sended over according to described information are decrypted, when successful decryption, will be decrypted
Data are sent to cash box movement, when decrypting unsuccessful, return to the information of decryption failure to the POS machine;
If returning unit 230 returns for cannot successfully obtain specified key and obtains the information for specifying key failure extremely
The POS machine.
In the present embodiment, during the instruction of the POS machine to receiving executes, contained in the instruction required
Specified key, SIU first resets all keys, and is initialized to required part of key.Then, it obtains
Unit 210, which is downloaded, specifies key, and judges whether successfully download specified key.When SIU, which is downloaded, specifies key unsuccessful,
Returning unit 230, which returns, obtains the information for specifying key failure to POS machine, so that POS machine is according to the information of specified key failure
Instruction is retransmitted to SIU.When SIU successfully can download specified key, specify the successful information of key to POS by obtaining
Machine.After POS machine receives the information that SIU successfully obtains specified key, ciphertext data are sent to SIU.SIU receives POS machine
After the ciphertext data sended over, decryption unit 220 is decrypted according to the obtained key pair ciphertext data are downloaded, and judges
Whether succeed to ciphertext data deciphering.If successful decryption, ciphertext data is sent to cash box movement, so as to cash box movement according to
Ciphertext data executes note output operation;If decryption is unsuccessful, the information of decryption failure is returned to POS machine, so that POS machine is according to solution
The information of close failure retransmits instruction to SIU.
For the present embodiment SIU during being interacted with POS machine, SIU can realize decryption function so that POS machine can be into
Row ciphertext is transmitted, and is provided powerful support in terms of protecting sensitive data, is substantially increased the safety of the interaction of SIU and terminal
Property.
Further, it is based on above-mentioned second embodiment, it is proposed that signaling inter face unit SIU of the present invention interacts dress with terminal
3rd embodiment is set, above-mentioned execution module 200 further includes in the embodiment:
Receiving unit is transmitted across for receiving after the cash box movement executes corresponding operation according to the ciphertext data of reception
The status data come;
Encryption unit for the status data to be encrypted, and judges whether succeed to status data encryption;
If processing unit generates encryption data, the encryption data is returned for being encrypted successfully to the status data
It is back to POS machine;If to the status data failed encryption, encryption is re-started in preset time, and when more than default
Between unencryption success when, return to the information of the cash box movement failed encryption to the POS machine.
In the present embodiment, ciphertext data is sent to cash box movement by above-mentioned POS machine, and ciphertext data is received in cash box movement
Afterwards, cash box movement executes the operations such as corresponding note output, money-checking, and the status data for executing corresponding operating is then sent to SIU, should
Status data may include that the data such as total number of note output, the coding of banknote, authenticity verification result, the status data are plaintext number
According to.After receiving unit receives status data, status data is encrypted in encryption unit, and judges to add the status data
It is close whether to succeed.When being encrypted successfully to status data, processing unit generates encryption data, which is back to POS
Machine.When to status data failed encryption, processing unit re-starts always status data in preset time encryption, if advising
It is encrypted successfully in fixed preset time, then encryption data is sent to POS machine;If the failed encryption in defined preset time,
I.e. in the information for successfully, then returning to cash box movement failed encryption more than preset time unencryption to POS machine.It should be noted that
SIU can realize encryption and non-encrypted two kinds of transmission modes, can be selected according to actual needs during use.
The present embodiment SIU has encryption function, and during being interacted with cash box movement, SIU can be to clear data
It is encrypted, and encryption data is sent to POS machine, provide powerful support in terms of protecting sensitive data, greatly improve
The safety of the interaction of SIU and terminal.
Further, it is based on above-mentioned first embodiment, it is proposed that signaling inter face unit SIU of the present invention interacts dress with terminal
Fourth embodiment is set, above-mentioned execution module 200 further includes in the embodiment:
Detecting unit for being initialized according to the instruction control peripheral hardware for receiving industrial personal computer, and is detected and be whether there is
The state of the peripheral hardware is detected or is set instruction;
Execution unit, if for being detected or setting instruction in the presence of the state to the peripheral hardware, execute to one or
The state of multiple peripheral hardwares is detected or sets instruction, will detect or setting result is back to the industrial personal computer;Otherwise, it waits waiting
Receive the instruction of the industrial personal computer.
In the present embodiment, SIU is provided with multiple control interfaces and is attached with multiple peripheral hardwares, and SIU is according to receiving industry control
The instruction of machine during idle time will inquire the state of multiple peripheral hardwares, and the state of the peripheral hardware includes the gate-shaped of safety box
State, the state etc. of microwave induced sensor are related to the peripheral hardware of security module, and the state that uploading detection arrives in real time is to industrial personal computer.Or
Person is set to the state of certain peripheral hardwares according to the instruction for receiving industrial personal computer, and peripheral hardware is controlled according to different terminals to realize
State complete instruction function.Specifically, SIU controls required specified peripheral hardware and carries out just after receiving the instruction of industrial personal computer
Beginningization, and whether there is by detecting unit detecting and the state of peripheral hardware is detected or is set instruction.If in the presence of execution unit
Execution is detected or sets instruction to the state of one or more peripheral hardwares, will detect or setting result is back to industrial personal computer;If
It is not present, then the instruction of industrial personal computer to be received such as.For example, it is assumed that when SIU receives electromagnetic door detection instruction, the electromagnetic door is executed
Detection instruction, and the testing result that electromagnetic door be in on or off state is sent to industrial personal computer, so that industrial personal computer is according to detection knot
Fruit executes corresponding operation.When SIU receives LED light setting instruction, current shape of the instruction to LED light is set according to the LED light
State is set, and judges whether the current state of LED light sets success, if setting successfully, it is successful to return to LED light setting
Information is to industrial personal computer;If conversely, setting failure, returns to the information of LED light setting failure to industrial personal computer.
It should be noted that multiple control interfaces of SIU settings can realize that multiplexing function, same control interface can be according to realities
Border needs the peripheral hardware for selecting with needing to be attached, for example, the monitoring interface of the safe door state on SIU, reusable are microwave
The driving interface of sensor or infrared sensor.By the multiplexing function of control interface, coordinate flexible Software for Design, to make
SIU interface flexible degree it is higher, the function of different demands can be completed by realizing single face, efficient, perspective good.It can
To realize the function of a variety of SIU currently on the market, the demand of different application need to can be only realized by software configuration, is enhanced
SIU uses function.
The present embodiment SIU, can be to one or more according to the instruction for receiving industrial personal computer in the interactive process with industrial personal computer
The state of a peripheral hardware is detected or sets, and realizes safety monitoring function, improves the convenience that SIU is used.
Further, based on any embodiment in first to fourth above-mentioned embodiment, in the present embodiment, above-mentioned signaling interface
Cell S IU and the interactive device of terminal further include:Update module, for receiving remote control commands, to the signaling interface list
The primary application program of first SIU is remotely updated.
In the present embodiment, SIU Software for Design is divided into bootstrap IAP and main application using the software design scheme of segmentation
Program APP.There are stringent YMODE verifications, the mistake occurred by loss of data when preventing APP programs from updating in bootstrap IAP
Accidentally, the function of long-range update primary application program APP and is added in bootstrap IAP, long-range update primary application program APP is non-
Often convenient, update module only needs the long-range update that primary application program APP can be easily accomplished by terminal (such as computer).Tool
Body is bought in user after the SIU carries out use, when subsequently needing the function to primary application program APP to be updated, user
Open after computer connect with SIU, the remote control commands of reception after-sale service side, after-sale service can oneself computer it is enterprising
Row operation, remotely updates the primary application program of SIU.Eliminate the trouble gone on business, can be easily the SIU that uses of user into
Row update.
The present embodiment carries out long-range newer function to the primary application program of SIU, is what user used to after-sale service side
SIU, which is updated, to be provided a convenient, and is saved expense cost and time, is improved the convenience that SIU is used.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (6)
1. a kind of exchange method of signaling inter face unit SIU and terminal, which is characterized in that the signaling inter face unit SIU settings
There are multiple serial ports to be attached with multiple terminals, the exchange method of the signaling inter face unit SIU and terminal includes the following steps:
The instruction that multiple terminals send over is received, the terminal includes industrial personal computer, POS machine and cash box movement;
To receiving the instruction of industrial personal computer, POS machine and cash box movement, POS machine, cash box movement and work are executed successively according to priority
Implementing result is back to corresponding terminal by the instruction of control machine;
The described pair of instruction for receiving industrial personal computer, POS machine and cash box movement executes POS machine, cash box movement according to priority successively
And the instruction of industrial personal computer, implementing result, which is back to corresponding terminal, includes:
After carrying out key reset and initialization according to the instruction for receiving POS machine, specified key is obtained, and judges whether
Specified key can successfully be obtained;
If specified key can be obtained successfully, returns to acquisition and specify the successful information of key to the POS machine, to the POS machine
The ciphertext data sended over according to described information are decrypted, and when successful decryption, ciphertext data is sent to cash box movement,
When decrypting unsuccessful, the information of decryption failure is returned to the POS machine;
If specified key cannot be obtained successfully, returns and obtain the information for specifying key failure to the POS machine.
2. the exchange method of signaling inter face unit SIU and terminal as described in claim 1, which is characterized in that described when decryption
When success, ciphertext data, which is sent to cash box movement later, includes:
It receives the cash box movement and executes the status data sended over after corresponding operation according to the ciphertext data of reception;
The status data is encrypted, and judges whether succeed to status data encryption;
If being encrypted successfully to the status data, encryption data is generated, the encryption data is back to POS machine;
If to the status data failed encryption, encryption is re-started in preset time, and do not adding more than preset time
When close success, the information of the cash box movement failed encryption is returned to the POS machine.
3. the exchange method of signaling inter face unit SIU and terminal as described in claim 1, which is characterized in that the signaling connects
Mouth cell S IU is provided with multiple control interfaces and is attached with multiple peripheral hardwares, and described pair receives industrial personal computer, POS machine and cash box
The instruction of movement, the instruction of POS machine, cash box movement and industrial personal computer is executed according to priority successively, and implementing result is back to phase
The terminal answered further includes:
According to the instruction for receiving industrial personal computer peripheral hardware is controlled to be initialized, and detect with the presence or absence of to the state of the peripheral hardware into
Row detection or setting instruction;
If in the presence of execution is detected or sets instruction to the state of one or more peripheral hardwares, will detect or setting result is returned
It is back to the industrial personal computer;
If being not present, the instruction for receiving the industrial personal computer again is waited for.
4. the exchange method of signaling inter face unit SIU and terminal as claimed in any one of claims 1-3, which is characterized in that
The signaling inter face unit SIU and the exchange method of terminal further include:
Remote control commands are received, the primary application program of the signaling inter face unit SIU is remotely updated.
5. a kind of interactive device of signaling inter face unit SIU and terminal, which is characterized in that the signaling inter face unit SIU settings
There are multiple serial ports to be attached with multiple terminals, the interactive device of the signaling inter face unit SIU and terminal includes:
Receiving module, receives the instruction that multiple terminals send over, and the terminal includes industrial personal computer, POS machine and cash box movement;
Execution module executes POS machine, paper money according to priority successively to receiving the instruction of industrial personal computer, POS machine and cash box movement
Implementing result is back to corresponding terminal by the instruction of punch-out equipment core and industrial personal computer;
The execution module includes:
Acquiring unit obtains specified key after carrying out key reset and initialization according to the instruction for receiving POS machine
It takes, and judges whether successfully obtain specified key;
If decryption unit returns to acquisition and specifies the successful information of key to the POS for can successfully obtain specified key
The ciphertext data that the POS machine is sended over according to described information are decrypted in machine, when successful decryption, by ciphertext data
It is sent to cash box movement, when decrypting unsuccessful, returns to the information of decryption failure to the POS machine;
If returning unit returns for cannot successfully obtain specified key and obtains the information for specifying key failure to the POS
Machine.
6. the interactive device of signaling inter face unit SIU and terminal as claimed in claim 5, which is characterized in that the execution mould
Block further includes:
Receiving unit is executed according to the ciphertext data of reception for receiving the cash box movement and is sended over after corresponding operation
Status data;
Encryption unit for the status data to be encrypted, and judges whether succeed to status data encryption;
If processing unit generates encryption data, the encryption data is back to for being encrypted successfully to the status data
POS machine;If to the status data failed encryption, encryption is re-started in preset time, and not more than preset time
When encrypting successfully, the information of the cash box movement failed encryption is returned to the POS machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510906750.XA CN105574420B (en) | 2015-12-09 | 2015-12-09 | The exchange method and device of signaling inter face unit SIU and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510906750.XA CN105574420B (en) | 2015-12-09 | 2015-12-09 | The exchange method and device of signaling inter face unit SIU and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105574420A CN105574420A (en) | 2016-05-11 |
CN105574420B true CN105574420B (en) | 2018-09-21 |
Family
ID=55884537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510906750.XA Active CN105574420B (en) | 2015-12-09 | 2015-12-09 | The exchange method and device of signaling inter face unit SIU and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105574420B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018076146A1 (en) * | 2016-10-24 | 2018-05-03 | 深圳达闼科技控股有限公司 | Control method and apparatus for terminal device, storage medium, and terminal device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101122894A (en) * | 2006-08-13 | 2008-02-13 | 朱金怀 | Asynchronous serial communication control device |
CN104123783A (en) * | 2013-04-28 | 2014-10-29 | 恒银金融科技有限公司 | Safety device for cash-out module and realization method of safety device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10037527B2 (en) * | 2014-02-28 | 2018-07-31 | Ncr Corporation | End-to end device authentication |
-
2015
- 2015-12-09 CN CN201510906750.XA patent/CN105574420B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101122894A (en) * | 2006-08-13 | 2008-02-13 | 朱金怀 | Asynchronous serial communication control device |
CN104123783A (en) * | 2013-04-28 | 2014-10-29 | 恒银金融科技有限公司 | Safety device for cash-out module and realization method of safety device |
Also Published As
Publication number | Publication date |
---|---|
CN105574420A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105450269B (en) | It is a kind of to realize the method and device that secure interactive between bluetooth equipment matches certification | |
CN107070657A (en) | Safety chip and application processor and its operating method | |
CN103222227B (en) | System and method for wireless re-rogramming of memory in a communication system | |
CN100452075C (en) | Security control methods for date transmission process of software protection device and device thereof | |
US20140040633A1 (en) | Secure transaction method from a non-secure terminal | |
CN205140035U (en) | Mobile terminal and intelligent communication system who locks | |
CN102033781B (en) | Desktop system switching method for virtual machine | |
CN110084054A (en) | A kind of data privacy device, method, electronic equipment and storage medium | |
CN108701191A (en) | Hardware integrity inspection | |
CN105656669B (en) | The remote repairing method of electronic equipment, is repaired equipment and system at equipment | |
CN104219054B (en) | A kind of Point-to-Point Data Transmission method based on NFC | |
CN102502368B (en) | Contract number-combined operation authority management method and contract number-combined operation authority management system for elevator control system | |
CN107995247A (en) | A kind of document transmission method, server and system | |
CN104219208B (en) | A kind of method, apparatus of data input | |
CN112106118A (en) | Intelligent lock control method and device | |
CN108600224A (en) | The safety access method of diagnostic device and diagnostic device | |
Verdult et al. | A toolbox for RFID protocol analysis | |
CN103178953B (en) | A kind of secure chip key issuing system and secure chip key issuing method | |
CN105574420B (en) | The exchange method and device of signaling inter face unit SIU and terminal | |
CN102571488A (en) | Failure processing method, device and system for encryption card | |
CN109740360A (en) | A kind of document authorization device, client and method | |
CN101452508A (en) | Computer management system | |
CN102082669A (en) | Security certification method and device | |
CN106843693B (en) | A kind of information processing method and mobile terminal | |
CN110515640A (en) | A kind of firmware upgrade method of safety chip, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |