CN105574420A - Interactive method and interactive device for signaling interface unit (SIU) and terminals - Google Patents
Interactive method and interactive device for signaling interface unit (SIU) and terminals Download PDFInfo
- Publication number
- CN105574420A CN105574420A CN201510906750.XA CN201510906750A CN105574420A CN 105574420 A CN105574420 A CN 105574420A CN 201510906750 A CN201510906750 A CN 201510906750A CN 105574420 A CN105574420 A CN 105574420A
- Authority
- CN
- China
- Prior art keywords
- pos
- terminal
- siu
- instruction
- paper money
- 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.)
- Granted
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 an interactive method for a signaling interface unit (SIU) and terminals. The interactive method comprises the following steps: receiving instructions sent from a plurality of terminals; carrying out time-sharing implementation on the instructions of the terminals according to priority, and returning implementation results to the corresponding terminals. The invention also discloses an interactive device for the SIU and the terminals. The SIU can realize interaction with the terminals, so that the using function of the SIU is enhanced, and the using convenience of the SIU is improved.
Description
Technical field
The present invention relates to technical field of electronic equipment, particularly relate to exchange method and the device of a kind of signaling inter face unit SIU and terminal.
Background technology
Signaling inter face unit (SignalingInterfaceUnit, SIU) application widely, for the use in self-service industry, at present, SIU on market carries out alternately with single terminal or peripheral hardware, such as, has simple lamp bar driving, power drives, motor drives, POS drives, paper money punch-out equipment core drives etc., the using function realized is more single, and flexibility ratio is not high.Therefore, when often having new self-service application demand, just need to redesign SIU, cause that SIU's is of a great variety, also cause serious design cost waste and consume huge manpower and time cost, SIU being used very inconvenient.
Summary of the invention
Fundamental purpose of the present invention is the exchange method and the device that provide a kind of signaling inter face unit SIU and terminal, is intended to strengthen signaling inter face unit SIU using function, improves the convenience that signaling inter face unit SIU uses.
For achieving the above object, the invention provides the exchange method of a kind of signaling inter face unit SIU and terminal, described signaling inter face unit SIU is provided with multiple serial ports and is connected with multiple terminal, and the exchange method of described signaling inter face unit SIU and terminal comprises the following steps:
Receive the instruction that multiple terminal sends over;
According to priority, timesharing execution is carried out to the instruction receiving described multiple terminal, execution result is back to corresponding terminal.
Alternatively, described terminal comprises industrial computer, POS and paper money punch-out equipment core, carries out timesharing execution to the instruction of described multiple terminal according to priority, execution result is back to corresponding terminal and comprises:
To the instruction receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result is back to corresponding terminal.
Alternatively, the described instruction to receiving industrial computer, POS and paper money punch-out equipment core, performs the instruction of POS, paper money punch-out equipment core and industrial computer successively, execution result is back to corresponding terminal and comprises according to priority:
After carrying out key reset and initialization according to the instruction receiving POS, appointment key is obtained, and judges whether can successfully obtain appointment key;
If can successfully obtain appointment key, then returning to obtain specifies the successful information of key to described POS, the encrypt data that described POS sends over according to described information is decrypted, when successful decryption, data decryption is sent to paper money punch-out equipment core, when deciphering unsuccessful, return the failed information of deciphering to described POS;
If can not successfully obtain appointment key, then return to obtain and specify the information of key failure to described POS.
Alternatively, described when successful decryption, comprise after data decryption being sent to paper money punch-out equipment core:
Receive the status data sended over after described paper money punch-out equipment core performs corresponding operation according to the data decryption received;
Described status data is encrypted, and whether successfully judges described status data encryption;
If encrypt successfully to described status data, then generate enciphered data, described enciphered data is back to POS;
If to described status data failed encryption, then re-start encryption in Preset Time, and when exceeding the success of Preset Time unencryption, return the information of described paper money punch-out equipment core failed encryption to described POS.
Alternatively, described signaling inter face unit SIU is provided with multiple control interface and is connected with multiple peripheral hardware, the described instruction to receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result be back to corresponding terminal and comprise:
Control peripheral hardware according to the instruction receiving industrial computer and carry out initialization, and whether detecting exists and to detect the state of described peripheral hardware or to set instruction;
If exist, then perform and the state of one or more peripheral hardware detected or sets instruction, by detections or set result and be back to described industrial computer;
If do not exist, then wait for the instruction again receiving described industrial computer.
Alternatively, the exchange method of described signaling inter face unit SIU and terminal also comprises:
Receive remote control commands, remote update is carried out to the primary application program of described signaling inter face unit SIU.
In addition, for achieving the above object, present invention also offers the interactive device of a kind of signaling inter face unit SIU and terminal, described signaling inter face unit SIU is provided with multiple serial ports and is connected with multiple terminal, and the interactive device of described signaling inter face unit SIU and terminal comprises:
Receiver module, receives the instruction that multiple terminal sends over;
Execution module, for carrying out timesharing execution to the instruction receiving described multiple terminal according to priority, is back to corresponding terminal by execution result.
Alternatively, described terminal comprises industrial computer, POS and paper money punch-out equipment core, described execution module also for, to the instruction receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result is back to corresponding terminal.
Alternatively, described execution module comprises:
Acquiring unit, after carrying out key reset and initialization according to the instruction receiving POS, obtains appointment key, and judges whether can successfully obtain appointment key;
Decryption unit, if for can successfully obtain appointment key, then returning to obtain specifies the successful information of key to described POS, the encrypt data that described POS sends over according to described information is decrypted, when successful decryption, data decryption being sent to paper money punch-out equipment core, when deciphering unsuccessful, returning the failed information of deciphering to described POS;
Return unit, if for can not successfully obtain appointment key, then return to obtain and specify the information of key failure to described POS.
Alternatively, described execution module also comprises:
Receiving element, for receiving the status data sended over after described paper money punch-out equipment core performs corresponding operation according to the data decryption received;
Whether ciphering unit, for being encrypted described status data, and judge described status data encryption successful;
Processing unit, if for encrypting successfully to described status data, then generate enciphered data, is back to POS by described enciphered data; If to described status data failed encryption, then re-start encryption in Preset Time, and when exceeding the success of Preset Time unencryption, return the information of described paper money punch-out equipment core failed encryption to described POS.
Alternatively, described signaling inter face unit SIU is provided with multiple control interface and is connected with multiple peripheral hardware, and described execution module also comprises:
Detecting unit, carries out initialization for controlling peripheral hardware according to the instruction receiving industrial computer, and whether detecting exists and to detect the state of described peripheral hardware or to set instruction;
Performance element, if to detect the state of described peripheral hardware for existing or to set instruction, then performs and to detect the state of one or more peripheral hardware or to set instruction, by detections or set result and be back to described industrial computer; Otherwise, wait for the instruction again receiving described industrial computer.
Alternatively, the interactive device of described signaling inter face unit SIU and terminal also comprises:
Update module, for receiving remote control commands, carries out remote update to the primary application program of described signaling inter face unit SIU.
Embodiment of the present invention signaling inter face unit SIU is provided with multiple serial ports and is connected with multiple terminal, when the instruction receiving multiple terminal carries out timesharing execution according to priority to instruction, execution result is back to corresponding terminal, when avoiding multiple terminal to send instructions down, causes the blocking of CPU on signaling inter face unit SIU simultaneously.Signaling inter face unit SIU can realize carrying out with multiple terminal alternately, enhancing signaling inter face unit SIU using function, improves the convenience that signaling inter face unit SIU uses.
Accompanying drawing explanation
Fig. 1 is the structural representation of signaling inter face unit SIU of the present invention;
Fig. 2 is the schematic flow sheet of exchange method first embodiment of signaling inter face unit SIU of the present invention and terminal;
Fig. 3 is in the exchange method of signaling inter face unit SIU of the present invention and terminal, performs the refinement schematic flow sheet of the instruction of POS;
Fig. 4 is the high-level schematic functional block diagram of interactive device first embodiment of signaling inter face unit SIU of the present invention and terminal;
Fig. 5 is the refinement high-level schematic functional block diagram of execution module in the interactive device of signaling inter face unit SIU of the present invention and terminal.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The interaction schemes of signaling inter face unit SIU of the present invention and terminal can be applicable to self-service industry, such as, the application of signaling inter face unit SIU and financial terminal is carried out alternately, below will with SIU and industrial computer, POS, paper money punch-out equipment core, and other peripheral hardwares alternately for example is described in detail.As shown in Figure 1, be the structural representation of SIU, wherein, COM1, COM2, COM3 are three independently serial ports, and serial ports COM1 connects industrial computer, and serial ports COM2 connects POS, and serial ports COM3 connects paper money punch-out equipment core.S_LED1, S_LED2, S_LED3 are the control interface of three monochromatic LED lamp bars, can realize the flicker or the state such as Chang Liang or extinguishing that control this LED for different terminals.The equal reusable of any one control interface in these three control interfaces of S_LED1, S_LED2, S_LED3 is the control interface of alarming horn, or the driving interface of shock sensor.The control interface of D_LED1, D_LED2, D_LED3 tri-dual-colored LED lamp bars, what can realize bi-colour light two to dodge, single sudden strain of a muscle, Dan Liang, singly the state such as to go out.D_CHECK1, D_CHECK1 are the monitoring interface of two safety door states, can monitor opening or close or three kinds of states such as the unknown of safety door in real time, and are transferred to terminal process monitoring the data obtained in real time.These two interface reusables of D_CHECK1, D_CHECK1 are the driving interface of microwave remote sensor or infrared sensor.Motor1, Motor2 are that two motors drive interface, the forward or reverse of motor device can be controlled, such as, the motor of control 12V and 24V respectively, simultaneously, these two interface reusables are Energy control interface (can arrange this power supply for being up to AC110V), or electromagnetic lock drives interface.SIU also comprise the ARM encryption chip of a high speed and one remove switch.ARM encryption chip is fast to the processing speed of data, and reliability is high, and encryption function is powerful.Remove switch and there is the function removing key self-destruction, have very positive effect to protection sensitive data.
It should be noted that, above-mentioned SIU interface flexible degree is higher, has multiple interface can be multiplexed with the interface of multiple peripheral hardware, just can realize New function, for the demand that terminal is different provides good solution by amendment software.Meanwhile, SIU has powerful encryption and decryption calculation function, in protection sensitive data, provide powerful support.SIU Software for Design adopts the software design scheme of segmentation, is divided into boot IAP and primary application program APP.Strict YMODE verification is had in boot IAP, when preventing APP program updates, factor data is lost and the mistake that occurs, the place self-destruction of combined with hardware and power down key self-destroying function again, SIU has high security performance, and conveniently can realize remote update APP program.APP program adopts the routine processes mode of multitask, for the mode of POS instruction, main industrial computer instruction, movement data acquisition time-division processing, avoids the CPU caused when simultaneously sending instructions down to block.Meanwhile, APP program realizes encryption and non-encrypted two kinds of transmission modes, can adapt to different terminal requirements.Following examples will be described in detail.
As shown in Figure 2, exchange method first embodiment of a kind of signaling inter face unit SIU of the present invention and terminal is shown.The signaling inter face unit SIU of this embodiment and the exchange method of terminal comprise:
Step S10, receive the instruction that multiple terminal sends over;
The signaling inter face unit SIU of the present embodiment can be the SIU of said structure, the application of the interaction schemes of SIU and terminal can be arranged according to actual needs, financial terminal will be applied to below with the interaction schemes of SIU and terminal, with industrial computer, POS, the paper money punch-out equipment core of financial terminal, and other peripheral hardwares alternately for example is described in detail.
In the present embodiment, SIU is provided with multiple serial ports and is connected with multiple terminal, this terminal can comprise industrial computer, POS, paper money punch-out equipment core etc., SIU is after receiving the instruction that terminal sends over, if detect the instruction that one of them terminal in multiple terminal sends, then receive and perform this instruction, to drive the corresponding function of the realization of this terminal.If detect the instruction that the wherein two or more terminals in multiple terminal send simultaneously, then buffer memory is carried out in the instruction simultaneously receiving multiple terminal, carries out time-division processing so that follow-up.
Step S20, according to priority, timesharing execution is carried out to the instruction receiving described multiple terminal, execution result is back to corresponding terminal.
In the present embodiment, after buffer memory is carried out in the above-mentioned instruction simultaneously receiving multiple terminal, according to priority, timesharing execution is carried out to the instruction of multiple terminal.Further, above-mentioned steps S20 can comprise: to the instruction receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer successively, execution result is back to corresponding terminal according to priority.The i.e. preferential instruction performing POS, then perform the instruction of paper money punch-out equipment core and industrial computer successively, after pending, execution result is back to corresponding terminal by SIU.Achieve the mode for POS instruction, main industrial computer instruction, paper money punch-out equipment core instruction employing time-division processing, perform corresponding instruction according to priority after first buffer memory, avoid the problem that the CPU caused when simultaneously sending instructions down blocks.
Embodiment of the present invention SIU is provided with multiple serial ports and is connected with multiple terminal, when the instruction receiving multiple terminal carries out timesharing execution according to priority to instruction, execution result is back to corresponding terminal, when avoiding multiple terminal to send instructions down, causes the blocking of CPU on SIU simultaneously.SIU can realize carrying out alternately with multiple terminal, and the using function solving SIU in prior art is more single, when often having new self-service application demand, just need to redesign SIU, cause the problem that design cost is wasted, enhance SIU using function, improve the convenience that SIU uses.
Further, as shown in Figure 3, based on above-mentioned first embodiment, propose exchange method second embodiment of signaling inter face unit SIU of the present invention and terminal, the above-mentioned instruction to receiving industrial computer, POS and paper money punch-out equipment core in this embodiment, perform the instruction of POS, paper money punch-out equipment core and industrial computer successively according to priority, step execution result being back to corresponding terminal can comprise:
Step S31, carry out key reset and initialization according to the instruction receiving POS after, appointment key is obtained;
Step S32, judge whether can successfully obtain appointment key; If so, then perform step S34, if not, then perform step S33;
Step S33, return to obtain and specify the information of key failure to described POS;
Step S34, return to obtain and specify key successful information to described POS, the encrypt data that described POS sends over according to described information is decrypted;
Step S35, judge successful decryption whether success; If success, then perform step S37, if unsuccessful, then perform step S36;
Step S36, return the failed information of deciphering extremely described POS;
Step S37, data decryption is sent to paper money punch-out equipment core.
In the present embodiment, in the process performed the instruction of the POS received, contain required appointment key in this instruction, first SIU resets to all keys, and carries out initialization to required part of key.Then, SIU downloads and specifies key, and judges whether can successfully download appointment key.When SIU download specifies key unsuccessful, return to obtain and specify the information of key failure to POS, so that POS resends instruction to SIU according to specifying the information of key failure.When SIU successfully can download appointment key, specify the successful information of key to POS acquisition.POS receive SIU successfully obtain specify key information after, encrypt data is sent to SIU.After SIU receives the encrypt data that POS sends over, be decrypted according to downloading this encrypt data of double secret key obtained, and to encrypt data deciphering whether successfully judge.If successful decryption, then data decryption is sent to paper money punch-out equipment core, so that paper money punch-out equipment core performs note output operation according to data decryption; If decipher unsuccessful, then return the failed information of deciphering to POS, so that POS resends instruction to SIU according to the failed information of deciphering.
The present embodiment SIU is carrying out in mutual process with POS, and SIU can realize decipher function, makes POS to carry out ciphertext transmission, provides powerful support, substantially increase the mutual security of SIU and terminal in protection sensitive data.
Further, based on above-mentioned second embodiment, propose exchange method the 3rd embodiment of signaling inter face unit SIU of the present invention and terminal, can comprise after above-mentioned steps S37 in this embodiment: receive the status data sended over after described paper money punch-out equipment core performs corresponding operation according to the data decryption received;
Described status data is encrypted, and whether successfully judges described status data encryption;
If encrypt successfully to described status data, then generate enciphered data, described enciphered data is back to POS;
If to described status data failed encryption, then re-start encryption in Preset Time, and when exceeding the success of Preset Time unencryption, return the information of described paper money punch-out equipment core failed encryption to described POS.
In the present embodiment, data decryption is sent to paper money punch-out equipment core by above-mentioned POS, after paper money punch-out equipment core receives data decryption, paper money punch-out equipment core performs the operations such as corresponding note output, currency examine, then the status data performing corresponding operating is sent to SIU, this status data can comprise total number of note output, the data such as coding, authenticity verification result of banknote, and this status data is clear data.After SIU receives status data, status data is encrypted, and whether successfully judges described status data encryption.When encrypting successfully status data, SIU generates enciphered data, and this enciphered data is back to POS.When to status data failed encryption, SIU re-starts encryption to status data in Preset Time always, if encrypt successfully in the Preset Time of regulation, then enciphered data is sent to POS; If failed encryption in the Preset Time of regulation, namely exceeding the success of Preset Time unencryption, then return the information of paper money punch-out equipment core failed encryption to POS.It should be noted that, SIU can realize encryption and non-encrypted two kinds of transmission modes, can select according to actual needs in the process used.
The present embodiment SIU has encryption function; carrying out in mutual process with paper money punch-out equipment core, SIU can be encrypted clear data, and enciphered data is sent to POS; in protection sensitive data, provide powerful support, substantially increase the mutual security of SIU and terminal.
Further, based on above-mentioned first embodiment, propose exchange method the 4th embodiment of signaling inter face unit SIU of the present invention and terminal, the above-mentioned instruction to receiving industrial computer, POS and paper money punch-out equipment core in this embodiment, the instruction of POS, paper money punch-out equipment core and industrial computer is performed successively according to priority, step execution result being back to corresponding terminal can comprise: control peripheral hardware according to the instruction receiving industrial computer and carry out initialization, and whether detecting exists and to detect the state of described peripheral hardware or to set instruction;
If exist, then perform and the state of one or more peripheral hardware detected or sets instruction, by detections or set result and be back to described industrial computer;
If do not exist, then wait for the instruction again receiving described industrial computer.
In the present embodiment, SIU is provided with multiple control interface and is connected with multiple peripheral hardware, SIU is according to the instruction receiving industrial computer, will inquire about the state of multiple peripheral hardware at one's leisure, the state of this peripheral hardware comprises the door state of proof box, the state etc. of microwave induced sensor relates to the peripheral hardware of security module, and the state that real-time uploading detection arrives is to industrial computer.Or set according to the state of instruction to some peripheral hardware receiving industrial computer, complete deixis with the state realizing controlling according to different terminals peripheral hardware.Particularly, SIU is after the instruction receiving industrial computer, and the appointment peripheral hardware needed for control carries out initialization, and whether detecting exists and to detect the state of peripheral hardware or to set instruction.If exist, then perform and the state of one or more peripheral hardware detected or sets instruction, by detections or set result and be back to industrial computer; If do not exist, then the instruction of wait-receiving mode industrial computer.Such as, when supposing that SIU receives electromagnetic door detection instruction, perform this electromagnetic door and detect instruction, and testing result electromagnetic door being in the state of opening or closing is sent to industrial computer, perform corresponding operation to make industrial computer according to testing result.When SIU receives LED setting instruction, set according to the current state of this LED setting instruction to LED, and judge whether the current state of LED sets successfully, if set successfully, then return LED and set successful information to industrial computer; Otherwise, if set unsuccessfully, then return the failed information of LED setting to industrial computer.
It should be noted that, multiple control interfaces that SIU is arranged can realize multiplexing function, and same control interface can be selected to be connected with the peripheral hardware needed according to actual needs, such as, the monitoring interface of the safety door state on SIU, reusable is the driving interface of microwave remote sensor or infrared sensor.By the multiplexing function of control interface, coordinate Software for Design flexibly, thus make SIU interface flexible degree higher, achieve the function that single face just can complete different demand, its efficiency is high, perspective good.The function of multiple SIU in the market can be realized, only just need can be realized the demand of different application by software merit rating, enhance SIU using function.
The present embodiment SIU, with the reciprocal process of industrial computer, according to the instruction receiving industrial computer, can detect the state of one or more peripheral hardware or set, achieve safety monitoring function, improves the convenience that SIU uses.
Further, based on any embodiment in first to fourth embodiment above-mentioned, in the present embodiment, the exchange method of above-mentioned signaling inter face unit SIU and terminal also comprises: receive remote control commands, carries out remote update to the primary application program of described signaling inter face unit SIU.This step can perform according to actual needs, after or before can being executed in above steps.
In the present embodiment, SIU Software for Design adopts the software design scheme of segmentation, is divided into boot IAP and primary application program APP.Strict YMODE verification is had in boot IAP, when preventing APP program updates, factor data is lost and the mistake that occurs, and add the function of remote update primary application program APP in boot IAP, APP is very convenient for remote update primary application program, only needs the remote update that just easily can be completed primary application program APP by terminal (such as computer).Particularly, buy after this SIU uses user, follow-up need to upgrade the function of primary application program APP time, user opens after computer is connected with SIU, receive the remote control commands of after sale service side, after sale service at the enterprising line operate of the computer of oneself, can carry out remote update to the primary application program of SIU.Eliminate the trouble of going on business, the SIU that can easily use for user upgrades.
The present embodiment carries out the function of remote update to the primary application program of SIU, is that SIU that user uses carries out renewal and provides conveniently, pares down expenses cost and time, improve the convenience that SIU uses to after sale service side.
Accordingly, as shown in Figure 4, interactive device first embodiment of a kind of signaling inter face unit SIU of the present invention and terminal is proposed.The signaling inter face unit SIU of this embodiment and the interactive device of terminal comprise:
Receiver module 100, receives the instruction that multiple terminal sends over;
The signaling inter face unit SIU of the present embodiment can be the SIU of said structure, the application of the interaction schemes of SIU and terminal can be arranged according to actual needs, financial terminal will be applied to below with the interaction schemes of SIU and terminal, with industrial computer, POS, the paper money punch-out equipment core of financial terminal, and other peripheral hardwares alternately for example is described in detail.
In the present embodiment, SIU is provided with multiple serial ports and is connected with multiple terminal, this terminal can comprise industrial computer, POS, paper money punch-out equipment core etc., SIU is after receiving the instruction that terminal sends over, if detect the instruction that one of them terminal in multiple terminal sends, then receive and perform this instruction, to drive the corresponding function of the realization of this terminal.If detect the instruction that the wherein two or more terminals in multiple terminal send simultaneously, then buffer memory is carried out in the instruction that receiver module 100 receives multiple terminal, carries out time-division processing so that follow-up.
Execution module 200, for carrying out timesharing execution to the instruction receiving described multiple terminal according to priority, is back to corresponding terminal by execution result.
In the present embodiment, after buffer memory is carried out in the above-mentioned instruction simultaneously receiving multiple terminal, execution module 200 carries out timesharing execution to the instruction of multiple terminal according to priority, further, execution module 200 also for, to the instruction receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result is back to corresponding terminal.Namely the preferential instruction performing POS, then performs the instruction of paper money punch-out equipment core and industrial computer successively.After pending, execution result is back to corresponding terminal by SIU.Achieve the mode for POS instruction, main industrial computer instruction, paper money punch-out equipment core instruction employing time-division processing, perform corresponding instruction according to priority after first buffer memory, avoid the problem that the CPU caused when simultaneously sending instructions down blocks.
Embodiment of the present invention SIU is provided with multiple serial ports and is connected with multiple terminal, when the instruction receiving multiple terminal carries out timesharing execution according to priority to instruction, execution result is back to corresponding terminal, when avoiding multiple terminal to send instructions down, causes the blocking of CPU on SIU simultaneously.SIU can realize carrying out alternately with multiple terminal, and the using function solving SIU in prior art is more single, when often having new self-service application demand, just need to redesign SIU, cause the problem that design cost is wasted, enhance SIU using function, improve the convenience that SIU uses.
Further, as shown in Figure 5, based on above-mentioned first embodiment, propose interactive device second embodiment of signaling inter face unit SIU of the present invention and terminal, in this embodiment, above-mentioned execution module 200 can comprise:
Acquiring unit 210, after carrying out key reset and initialization according to the instruction receiving POS, obtains appointment key, and judges whether can successfully obtain appointment key;
Decryption unit 220, if for can successfully obtain appointment key, then returning to obtain specifies the successful information of key to described POS, the encrypt data that described POS sends over according to described information is decrypted, when successful decryption, data decryption being sent to paper money punch-out equipment core, when deciphering unsuccessful, returning the failed information of deciphering to described POS;
Return unit 230, if for can not successfully obtain appointment key, then return to obtain and specify the information of key failure to described POS.
In the present embodiment, in the process performed the instruction of the POS received, contain required appointment key in this instruction, first SIU resets to all keys, and carries out initialization to required part of key.Then, acquiring unit 210 is downloaded and is specified key, and judges whether can successfully download appointment key.When SIU download specifies key unsuccessful, return unit 230 and return the information of acquisition appointment key failure to POS, so that POS resends instruction to SIU according to specifying the information of key failure.When SIU successfully can download appointment key, specify the successful information of key to POS acquisition.POS receive SIU successfully obtain specify key information after, encrypt data is sent to SIU.After SIU receives the encrypt data that POS sends over, to encrypt data deciphering successfully whether decryption unit 220 is decrypted according to downloading this encrypt data of double secret key obtained, and judge.If successful decryption, then data decryption is sent to paper money punch-out equipment core, so that paper money punch-out equipment core performs note output operation according to data decryption; If decipher unsuccessful, then return the failed information of deciphering to POS, so that POS resends instruction to SIU according to the failed information of deciphering.
The present embodiment SIU is carrying out in mutual process with POS, and SIU can realize decipher function, makes POS to carry out ciphertext transmission, provides powerful support, substantially increase the mutual security of SIU and terminal in protection sensitive data.
Further, based on above-mentioned second embodiment, propose interactive device the 3rd embodiment of signaling inter face unit SIU of the present invention and terminal, in this embodiment, above-mentioned execution module 200 also comprises:
Receiving element, for receiving the status data sended over after described paper money punch-out equipment core performs corresponding operation according to the data decryption received;
Whether ciphering unit, for being encrypted described status data, and judge described status data encryption successful;
Processing unit, if for encrypting successfully to described status data, then generate enciphered data, is back to POS by described enciphered data; If to described status data failed encryption, then re-start encryption in Preset Time, and when exceeding the success of Preset Time unencryption, return the information of described paper money punch-out equipment core failed encryption to described POS.
In the present embodiment, data decryption is sent to paper money punch-out equipment core by above-mentioned POS, after paper money punch-out equipment core receives data decryption, paper money punch-out equipment core performs the operations such as corresponding note output, currency examine, then the status data performing corresponding operating is sent to SIU, this status data can comprise total number of note output, the data such as coding, authenticity verification result of banknote, and this status data is clear data.Whether, after receiving element receives status data, ciphering unit is encrypted status data, and judge described status data encryption successful.When encrypting successfully status data, processing unit generates enciphered data, and this enciphered data is back to POS.When to status data failed encryption, processing unit re-starts encryption to status data in Preset Time always, if encrypt successfully in the Preset Time of regulation, then enciphered data is sent to POS; If failed encryption in the Preset Time of regulation, namely exceeding the success of Preset Time unencryption, then return the information of paper money punch-out equipment core failed encryption to POS.It should be noted that, SIU can realize encryption and non-encrypted two kinds of transmission modes, can select according to actual needs in the process used.
The present embodiment SIU has encryption function; carrying out in mutual process with paper money punch-out equipment core, SIU can be encrypted clear data, and enciphered data is sent to POS; in protection sensitive data, provide powerful support, substantially increase the mutual security of SIU and terminal.
Further, based on above-mentioned first embodiment, propose interactive device the 4th embodiment of signaling inter face unit SIU of the present invention and terminal, in this embodiment, above-mentioned execution module 200 also comprises:
Detecting unit, carries out initialization for controlling peripheral hardware according to the instruction receiving industrial computer, and whether detecting exists and to detect the state of described peripheral hardware or to set instruction;
Performance element, if to detect the state of described peripheral hardware for existing or to set instruction, then performs and to detect the state of one or more peripheral hardware or to set instruction, by detections or set result and be back to described industrial computer; Otherwise, the instruction of industrial computer described in wait-receiving mode.
In the present embodiment, SIU is provided with multiple control interface and is connected with multiple peripheral hardware, SIU is according to the instruction receiving industrial computer, will inquire about the state of multiple peripheral hardware at one's leisure, the state of this peripheral hardware comprises the door state of proof box, the state etc. of microwave induced sensor relates to the peripheral hardware of security module, and the state that real-time uploading detection arrives is to industrial computer.Or set according to the state of instruction to some peripheral hardware receiving industrial computer, complete deixis with the state realizing controlling according to different terminals peripheral hardware.Whether particularly, SIU is after the instruction receiving industrial computer, and the appointment peripheral hardware needed for control carries out initialization, and detected to exist by detecting unit and to detect the state of peripheral hardware or to set instruction.If exist, then performance element execution detects the state of one or more peripheral hardware or sets instruction, and detection or setting result are back to industrial computer; If do not exist, then the instruction of wait-receiving mode industrial computer.Such as, when supposing that SIU receives electromagnetic door detection instruction, perform this electromagnetic door and detect instruction, and testing result electromagnetic door being in the state of opening or closing is sent to industrial computer, perform corresponding operation to make industrial computer according to testing result.When SIU receives LED setting instruction, set according to the current state of this LED setting instruction to LED, and judge whether the current state of LED sets successfully, if set successfully, then return LED and set successful information to industrial computer; Otherwise, if set unsuccessfully, then return the failed information of LED setting to industrial computer.
It should be noted that, multiple control interfaces that SIU is arranged can realize multiplexing function, and same control interface can be selected to be connected with the peripheral hardware needed according to actual needs, such as, the monitoring interface of the safety door state on SIU, reusable is the driving interface of microwave remote sensor or infrared sensor.By the multiplexing function of control interface, coordinate Software for Design flexibly, thus make SIU interface flexible degree higher, achieve the function that single face just can complete different demand, its efficiency is high, perspective good.The function of multiple SIU in the market can be realized, only just need can be realized the demand of different application by software merit rating, enhance SIU using function.
The present embodiment SIU, with the reciprocal process of industrial computer, according to the instruction receiving industrial computer, can detect the state of one or more peripheral hardware or set, achieve safety monitoring function, improves the convenience that SIU uses.
Further, based on any embodiment in first to fourth embodiment above-mentioned, in the present embodiment, the interactive device of above-mentioned signaling inter face unit SIU and terminal also comprises: update module, for receiving remote control commands, remote update is carried out to the primary application program of described signaling inter face unit SIU.
In the present embodiment, SIU Software for Design adopts the software design scheme of segmentation, is divided into boot IAP and primary application program APP.Strict YMODE verification is had in boot IAP, when preventing APP program updates, factor data is lost and the mistake that occurs, and add the function of remote update primary application program APP in boot IAP, APP is very convenient for remote update primary application program, and update module only needs the remote update that just easily can be completed primary application program APP by terminal (such as computer).Particularly, buy after this SIU uses user, follow-up need to upgrade the function of primary application program APP time, user opens after computer is connected with SIU, receive the remote control commands of after sale service side, after sale service at the enterprising line operate of the computer of oneself, can carry out remote update to the primary application program of SIU.Eliminate the trouble of going on business, the SIU that can easily use for user upgrades.
The present embodiment carries out the function of remote update to the primary application program of SIU, is that SIU that user uses carries out renewal and provides conveniently, pares down expenses cost and time, improve the convenience that SIU uses to after sale service side.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (10)
1. an exchange method for signaling inter face unit SIU and terminal, is characterized in that, described signaling inter face unit SIU is provided with multiple serial ports and is connected with multiple terminal, and the exchange method of described signaling inter face unit SIU and terminal comprises the following steps:
Receive the instruction that multiple terminal sends over;
According to priority, timesharing execution is carried out to the instruction receiving described multiple terminal, execution result is back to corresponding terminal.
2. the exchange method of signaling inter face unit SIU as claimed in claim 1 and terminal, it is characterized in that, described terminal comprises industrial computer, POS and paper money punch-out equipment core, carries out timesharing execution to the instruction of described multiple terminal according to priority, execution result is back to corresponding terminal and comprises:
To the instruction receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result is back to corresponding terminal.
3. the exchange method of signaling inter face unit SIU as claimed in claim 2 and terminal, it is characterized in that, the described instruction to receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result be back to corresponding terminal and comprise:
After carrying out key reset and initialization according to the instruction receiving POS, appointment key is obtained, and judges whether can successfully obtain appointment key;
If can successfully obtain appointment key, then returning to obtain specifies the successful information of key to described POS, the encrypt data that described POS sends over according to described information is decrypted, when successful decryption, data decryption is sent to paper money punch-out equipment core, when deciphering unsuccessful, return the failed information of deciphering to described POS;
If can not successfully obtain appointment key, then return to obtain and specify the information of key failure to described POS.
4. the exchange method of signaling inter face unit SIU as claimed in claim 3 and terminal, is characterized in that, described when successful decryption, comprises after data decryption being sent to paper money punch-out equipment core:
Receive the status data sended over after described paper money punch-out equipment core performs corresponding operation according to the data decryption received;
Described status data is encrypted, and whether successfully judges described status data encryption;
If encrypt successfully to described status data, then generate enciphered data, described enciphered data is back to POS;
If to described status data failed encryption, then re-start encryption in Preset Time, and when exceeding the success of Preset Time unencryption, return the information of described paper money punch-out equipment core failed encryption to described POS.
5. the exchange method of signaling inter face unit SIU as claimed in claim 2 and terminal, it is characterized in that, described signaling inter face unit SIU is provided with multiple control interface and is connected with multiple peripheral hardware, the described instruction to receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result be back to corresponding terminal and comprise:
Control peripheral hardware according to the instruction receiving industrial computer and carry out initialization, and whether detecting exists and to detect the state of described peripheral hardware or to set instruction;
If exist, then perform and the state of one or more peripheral hardware detected or sets instruction, by detections or set result and be back to described industrial computer;
If do not exist, then wait for the instruction again receiving described industrial computer.
6. the signaling inter face unit SIU according to any one of claim 1-5 and the exchange method of terminal, is characterized in that, the exchange method of described signaling inter face unit SIU and terminal also comprises:
Receive remote control commands, remote update is carried out to the primary application program of described signaling inter face unit SIU.
7. an interactive device for signaling inter face unit SIU and terminal, is characterized in that, described signaling inter face unit SIU is provided with multiple serial ports and is connected with multiple terminal, and the interactive device of described signaling inter face unit SIU and terminal comprises:
Receiver module, receives the instruction that multiple terminal sends over;
Execution module, for carrying out timesharing execution to the instruction receiving described multiple terminal according to priority, is back to corresponding terminal by execution result.
8. the interactive device of signaling inter face unit SIU as claimed in claim 7 and terminal, it is characterized in that, described terminal comprises industrial computer, POS and paper money punch-out equipment core, described execution module also for, to the instruction receiving industrial computer, POS and paper money punch-out equipment core, perform the instruction of POS, paper money punch-out equipment core and industrial computer according to priority successively, execution result is back to corresponding terminal.
9. the interactive device of signaling inter face unit SIU as claimed in claim 8 and terminal, it is characterized in that, described execution module comprises:
Acquiring unit, after carrying out key reset and initialization according to the instruction receiving POS, obtains appointment key, and judges whether can successfully obtain appointment key;
Decryption unit, if for can successfully obtain appointment key, then returning to obtain specifies the successful information of key to described POS, the encrypt data that described POS sends over according to described information is decrypted, when successful decryption, data decryption being sent to paper money punch-out equipment core, when deciphering unsuccessful, returning the failed information of deciphering to described POS;
Return unit, if for can not successfully obtain appointment key, then return to obtain and specify the information of key failure to described POS.
10. the interactive device of signaling inter face unit SIU as claimed in claim 9 and terminal, it is characterized in that, described execution module also comprises:
Receiving element, for receiving the status data sended over after described paper money punch-out equipment core performs corresponding operation according to the data decryption received;
Whether ciphering unit, for being encrypted described status data, and judge described status data encryption successful;
Processing unit, if for encrypting successfully to described status data, then generate enciphered data, is back to POS by described enciphered data; If to described status data failed encryption, then re-start encryption in Preset Time, and when exceeding the success of Preset Time unencryption, return the information of described paper money punch-out equipment core failed encryption to described POS.
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 true CN105574420A (en) | 2016-05-11 |
CN105574420B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107637054A (en) * | 2016-10-24 | 2018-01-26 | 深圳达闼科技控股有限公司 | The control method and control device of terminal device, storage medium, terminal device |
Citations (3)
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 |
US20150248674A1 (en) * | 2014-02-28 | 2015-09-03 | Ncr Corporation | End-to-end device authentication |
-
2015
- 2015-12-09 CN CN201510906750.XA patent/CN105574420B/en active Active
Patent Citations (3)
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 |
US20150248674A1 (en) * | 2014-02-28 | 2015-09-03 | Ncr Corporation | End-to-end device authentication |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107637054A (en) * | 2016-10-24 | 2018-01-26 | 深圳达闼科技控股有限公司 | The control method and control device of terminal device, storage medium, terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN105574420B (en) | 2018-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2856695B1 (en) | A method and system for transferring firmware or software to a plurality of devices | |
CN102804160B (en) | For the method that operates data and storage component part | |
CN101901318B (en) | Trusted hardware equipment and using method thereof | |
CN105656669B (en) | The remote repairing method of electronic equipment, is repaired equipment and system at equipment | |
CN103986837A (en) | Information processing method and device | |
CN112106118B (en) | Intelligent lock control method and device | |
CN1355974A (en) | Countermeasure to power attack and timing attack on cryptographic operations | |
CN103873440A (en) | Application program upgrading method and system | |
CN110084054A (en) | A kind of data privacy device, method, electronic equipment and storage medium | |
KR20150090438A (en) | White box encryption apparatus and encryption method | |
CN101593254A (en) | A kind of notebook computer secured inputting method and system | |
CN104951712A (en) | Data safety protection method in Xen virtualization environment | |
CN106302422A (en) | Business encryption and decryption method and device | |
CN103746815A (en) | Secure communication method and device | |
Verdult et al. | A toolbox for RFID protocol analysis | |
CN104102187B (en) | Technique and/or manufacture and/or the anti-intervention for executing equipment are controlled | |
CN102502368A (en) | Contract number-combined operation authority management method and contract number-combined operation authority management system for elevator control system | |
US9369446B2 (en) | Secure remote desktop | |
CN102082669A (en) | Security certification method and device | |
CN101232506A (en) | System and method for collocating safe field programmable gate array network | |
CN107872315A (en) | Data processing method and intelligent terminal | |
CN110515640A (en) | Firmware upgrading method, device, equipment and storage medium of security chip | |
CN105574420A (en) | Interactive method and interactive device for signaling interface unit (SIU) and terminals | |
CN109510711A (en) | A kind of network communication method, server, client and system | |
CN103824014A (en) | Isolation certificating and monitoring method of USB (universal serial bus) port within local area network |
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 |