CN107205216B - Communication mode switching method and intelligent password equipment - Google Patents

Communication mode switching method and intelligent password equipment Download PDF

Info

Publication number
CN107205216B
CN107205216B CN201710459164.4A CN201710459164A CN107205216B CN 107205216 B CN107205216 B CN 107205216B CN 201710459164 A CN201710459164 A CN 201710459164A CN 107205216 B CN107205216 B CN 107205216B
Authority
CN
China
Prior art keywords
communication
mode
communication mode
speed
intelligent password
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
Application number
CN201710459164.4A
Other languages
Chinese (zh)
Other versions
CN107205216A (en
Inventor
李东声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tendyron Technology Co Ltd
Original Assignee
Tendyron Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tendyron Technology Co Ltd filed Critical Tendyron Technology Co Ltd
Priority to CN201710459164.4A priority Critical patent/CN107205216B/en
Publication of CN107205216A publication Critical patent/CN107205216A/en
Application granted granted Critical
Publication of CN107205216B publication Critical patent/CN107205216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a communication mode switching method and intelligent password equipment, wherein the method comprises the following steps: in a high-speed communication mode, the intelligent password equipment is in service data communication with external equipment through a Bluetooth link; after the service data communication is finished, the intelligent password equipment sends an initial switching request to the external equipment; receiving an initial switching response sent by the external equipment, and switching to the initial mode according to the communication parameters in the initial mode; in the initial mode, the intelligent password equipment executes a process of switching to a middle-level communication mode; sending the low-speed switching request to the external device in the middle-level communication mode; receiving a low-speed switching response sent by the external equipment; and the intelligent password equipment closes the power supply of the screen, the high-speed clock and the safety chip, and switches to the low-speed communication mode according to the communication parameters in the low-speed communication mode.

Description

Communication mode switching method and intelligent password equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method for switching communication modes and an intelligent password device.
Background
After the intelligent password device supporting the bluetooth communication interface successfully establishes the bluetooth connection with the external device, data communication is performed according to a certain fixed time period, which is called a communication connection interval. To increase the communication rate, a smaller communication connection interval is generally selected; in order to reduce the power consumption of the smart password device, a larger communication connection interval is generally selected in consideration of increasing the sleep time. Under different application scenes, the intelligent password device selects a proper communication connection interval so as to be switched to a proper communication mode to communicate with the external device, and the intelligent password device is crucial to ensuring the communication quality and efficiency.
in the prior art, the mode switching of the intelligent password device is as follows: after the connection between the intelligent password equipment and the external equipment is established, when business transaction is needed, the intelligent password equipment is switched to a high-speed mode for business transaction, the communication connection interval in the high-speed mode is small, the communication efficiency is improved, after the business transaction is completed, the intelligent password equipment is switched to a low-speed mode, the communication connection interval in the low-speed mode is large, the power consumption is reduced, and the intelligent password equipment is switched to the high-speed mode when the next transaction is completed. However, with the existing scheme, when the external device does not support switching from the low-speed mode to the high-speed mode, a switching failure may be caused, which affects normal communication between the smart password device and the external device.
Disclosure of Invention
The present invention is directed to solving the above problems.
The invention mainly aims to provide a method for switching communication modes;
another object of the present invention is to provide an intelligent cryptographic device.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
One aspect of the present invention provides a method for switching communication modes, including: in a high-speed communication mode, the intelligent password equipment is in service data communication with external equipment through a Bluetooth link; in the high-speed communication mode, a screen of the intelligent password device, a high-speed clock and a power supply of the security chip are all in an open state; after the service data communication of the intelligent password equipment is finished, the intelligent password equipment sends an initial switching request to the external equipment through the Bluetooth link, wherein the initial switching request carries communication parameters under the initial mode, and the communication parameters at least comprise communication connection intervals; the intelligent password equipment receives an initial switching response sent by the external equipment through the Bluetooth link and switches to the initial mode according to the communication parameters in the initial mode; in the initial mode, the intelligent password equipment executes a process of switching to an intermediate communication mode and enters the intermediate communication mode; the communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the initial mode is greater than the communication connection interval in the high-speed communication mode; in the intermediate communication mode, the intelligent password device sends the low-speed switching request to the external device through the Bluetooth link, wherein the low-speed switching request carries communication parameters in a low-speed communication mode, and the communication connection interval in the low-speed communication mode is larger than that in the intermediate communication mode; the intelligent password equipment receives a low-speed switching response sent by the external equipment through the Bluetooth link; and the intelligent password equipment closes the power supply of the screen, the high-speed clock and the safety chip, and switches to the low-speed communication mode according to the communication parameters in the low-speed communication mode.
The number of the intermediate communication modes is one, and the intelligent password device executes a process of switching to the intermediate communication mode, and specifically includes: the intelligent password equipment sends a middle-level switching request to the external equipment, wherein the middle-level switching request carries communication parameters in the middle-level communication mode; and the intelligent password equipment receives a middle-level switching response sent by the external equipment and switches to the middle-level communication mode according to the communication parameters in the middle-level communication mode.
the number of the intermediate communication modes is at least two, and the intelligent password device executes a process of switching to the intermediate communication mode, and specifically includes: the intelligent password device firstly executes a process of switching to a first intermediate communication mode, under the first intermediate communication mode, the intelligent password device executes a process of switching to a next intermediate communication mode until the last intermediate communication mode of the at least two intermediate communication modes is switched, a communication connection interval from the first intermediate communication mode to the last intermediate communication mode is sequentially increased, the communication connection interval under the first intermediate communication mode is larger than that under the initial mode, and the communication connection interval under the last intermediate communication mode is smaller than that under the low-speed communication mode.
Before the intelligent password device performs service data communication with an external device according to the communication parameters in the high-speed communication mode, the method further comprises the following steps: the intelligent password device and the external device perform a safe pairing process, after the intelligent password device and the external device are successfully paired, the intelligent password device generates a link key, the link key is used for encrypting data transmitted between the intelligent password device and the external device through the Bluetooth link, and the Bluetooth link is established after the intelligent password device and the external device are successfully paired.
Another aspect of the present invention provides an intelligent password device, including: the Bluetooth communication module is used for carrying out service data communication with external equipment through a Bluetooth link in a high-speed communication mode; in the high-speed communication mode, a screen of the intelligent password device, a high-speed clock and a power supply of the security chip are all in an open state; after the service data communication is finished, the intelligent password equipment sends an initial switching request to the external equipment through the Bluetooth link, wherein the initial switching request carries communication parameters under the initial mode, and the communication parameters at least comprise communication connection intervals; receiving an initial switching response sent by the external equipment through the Bluetooth link; the switching control module is used for controlling the intelligent password equipment to be switched to the initial mode according to the communication parameters in the initial mode; under the initial mode, controlling the intelligent password equipment to be switched to a middle-level communication mode; the communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the initial mode is greater than the communication connection interval in the high-speed communication mode; the bluetooth communication module is further configured to send the low-speed handover request to the external device through the bluetooth link in the middle-level communication mode, where the low-speed handover request carries communication parameters in a low-speed communication mode, and a communication connection interval in the low-speed communication mode is greater than a communication connection interval in the middle-level communication mode; receiving a low-speed switching response sent by the external equipment through the Bluetooth link; the switching control module is further configured to turn off the power supplies of the screen, the high-speed clock, and the security chip, and control the intelligent password device to switch to the low-speed communication mode according to the communication parameters in the low-speed communication mode.
The bluetooth communication module is specifically configured to send a middle-level switching request to the external device, where the middle-level switching request carries communication parameters in the middle-level communication mode; receiving a middle-level switching response sent by the external equipment; the switching control module is specifically configured to control the intelligent password device to switch to the intermediate-level communication mode according to the communication parameter in the intermediate-level communication mode.
The switching control module is specifically configured to control the intelligent cryptographic device to switch to a first intermediate-level communication mode, and in the first intermediate-level communication mode, control the intelligent cryptographic device to switch to a next intermediate-level communication mode until switching to a last intermediate-level communication mode of the at least two intermediate-level communication modes, where a communication connection interval in the first intermediate-level communication mode to a communication connection interval in the last intermediate-level communication mode sequentially increase, the communication connection interval in the first intermediate-level communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the last intermediate-level communication mode is smaller than the communication connection interval in the low-speed communication mode.
Wherein, intelligent password equipment, still include: and the key generation module is used for generating a link key after the intelligent password device and the external device are successfully paired in a secure manner, wherein the link key is used for encrypting data transmitted between the intelligent password device and the external device through the Bluetooth link, and the Bluetooth link is established after the intelligent password device and the external device are successfully paired in a secure manner.
it can be seen from the above technical solutions of the present invention that, when the high-speed communication mode is directly switched to the low-speed communication mode, if the selected communication connection interval is too large, the external device may refuse to perform the switching, which may result in a failure of the switching. By adopting the embodiment, when the high-speed communication mode is switched to the low-speed communication mode, the initial mode is firstly switched to the initial mode, and the initial mode is supported by the external equipment, so that the success rate of switching to the initial mode can be ensured, further, when the initial mode is switched to the low-speed communication mode, a step-by-step switching mode is adopted, and if the intermediate-level communication mode is supported by the external equipment, the intermediate-level communication mode is firstly switched to, and then the intermediate-level communication mode is switched to the low-speed communication mode, so that the probability of switching failure is further reduced.
drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
fig. 1 is a flowchart of a method for switching communication modes according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of an intelligent cryptographic device provided in embodiment 2 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
in the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or quantity or location.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
example 1
As shown in fig. 1, the present embodiment provides a method for switching a communication mode applied to an intelligent password device, including the following steps:
101. In a high-speed communication mode, the intelligent password equipment is in service data communication with external equipment through a Bluetooth link; in the high-speed communication mode, a screen of the intelligent password device, a high-speed clock and a power supply of the security chip are all in an open state;
In this embodiment, the intelligent password device is a device capable of implementing security operations such as digital signature and identity authentication based on a digital certificate, and the intelligent password device may be matched with an external device (e.g., a mobile phone, a POS device, a PC device, etc.) to complete the confirmation and signature of transaction data during a transaction process. This intelligence password equipment is equipped with the security chip, is used for the screen of display data, is used for realizing bluetooth communication's bluetooth communication interface, is used for the input to confirm the button of instruction and is used for triggering parts such as the bluetooth button of establishing the bluetooth connection, can be equipped with the bluetooth button on the intelligence password equipment usually to be convenient for opening and breaking off that convenience of customers manual control bluetooth is connected. It can be understood that, when the intelligent password device only supports the bluetooth communication mode, the intelligent password device may not set the bluetooth key, for example, the bluetooth connection is established after default power on, and the bluetooth connection is disconnected after power off, or the bluetooth key may be set, which is not limited herein. The keys on the intelligent password device can be realized by physical keys, and certainly, if the screen is a touch screen, the virtual keys can be displayed through the touch screen. The security chip stores key information such as a private key and a digital certificate, wherein the private key can be used for performing digital signature on received transaction data, and the digital certificate can be used for performing identity authentication and the like.
in this embodiment, after the intelligent password device is started, the intelligent password device broadcasts information such as a bluetooth address, the external device performs scanning of the bluetooth device, after the intelligent password device is scanned, a bluetooth connection establishment request is sent to the intelligent password device, the bluetooth connection establishment request carries initial communication parameters of the external device, after the intelligent password device receives the bluetooth connection establishment request sent by the external device, the initial communication parameters of the external device are stored and used as communication parameters of the intelligent password device in an initial mode, and the communication parameters are communicated with the external device according to the communication parameters in the initial mode, so that a bluetooth connection establishment process and a bluetooth security pairing process are completed.
generally, after the bluetooth secure pairing procedure is executed between the smart password device and the external device, the smart password device needs to perform service processing with the external device. In the initial mode, the intelligent password device sends a high-speed switching request to the external device to request to switch to the high-speed communication mode so as to process the service.
The service data communication in this embodiment may be, for example, that the intelligent password device receives transaction data sent by the external device through a bluetooth communication connection, and after the intelligent password device confirms and signs the transaction data, the intelligent password device returns the signed transaction data to the external device.
102. after the service data communication of the intelligent password equipment is finished, the intelligent password equipment sends an initial switching request to the external equipment through the Bluetooth link, wherein the initial switching request carries communication parameters in the initial mode;
In this embodiment, the communication parameters at least include communication connection intervals, and the communication connection intervals in different modes are different, for example, after the intelligent password device establishes bluetooth communication connection with the external device, a value range of the communication connection interval in the initial mode may be 30ms to 50ms, a minimum value of the communication connection interval in the high-speed communication mode is generally 7.5ms, and a value of the communication connection interval in the low-speed communication mode is generally greater than 500 ms.
The communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the initial mode is greater than the communication connection interval in the high-speed communication mode; the communication connection interval in the low-speed communication mode is larger than the communication connection interval in the intermediate-level communication mode.
in this embodiment, the communication parameters may include a communication connection delay and a communication connection timeout in addition to the communication connection interval, which is described in detail in the bluetooth communication protocol.
In this embodiment, the manner for the intelligent cryptographic device to determine that the service data communication is ended may be: after the service processing is executed and the data after the service processing is sent to the external device, for example, when the service processing is signature service, the intelligent password device signs the transaction data to obtain the signed transaction data, and after the signed transaction data is sent to the external device, it is determined that the service data communication is ended. Of course, the manner for the intelligent cryptographic device to determine the end of the service data communication may also be: and receiving notification information of service data communication end sent by the external equipment. The specific implementation is not limited herein.
In this embodiment, in order to reduce the power consumption of the intelligent password device, after the intelligent password device and the external device perform service data communication, the mode is switched to a low power consumption mode, for example, a low-speed communication mode.
103. the Bluetooth link of the intelligent password equipment receives an initial switching response sent by the external equipment and switches to the initial mode according to the communication parameters in the initial mode;
In this embodiment, after the intelligent password device sends the initial switching request to the external device, since the communication parameters in the initial mode are supported by the external device, the external device returns an initial switching response to the intelligent password device, and carries information agreeing to switching in the initial switching response, and meanwhile, the external device itself also switches to a mode matched with the initial mode according to the communication parameters in the initial mode.
104. in the initial mode, the intelligent password equipment executes a process of switching to an intermediate communication mode and enters the intermediate communication mode;
The communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the intermediate communication mode is less than the communication connection interval in the low-speed communication mode.
In this embodiment, the value of the communication connection interval in the middle-level communication mode may be, for example, 500ms, and the value of the communication connection interval in the low-speed communication mode may be, for example, 1000 ms.
105. In the intermediate-level communication mode, the intelligent password device sends the low-speed switching request to the external device through the Bluetooth link, wherein the low-speed switching request carries communication parameters in a low-speed communication mode;
In this embodiment, after the intelligent password device sends the low-speed switching request to the external device, the external device receives the low-speed switching request, and if the communication parameter in the low-speed mode is supported by the external device, the external device returns a low-speed switching response to the intelligent password device, where the low-speed switching response carries information for agreeing to switching, and meanwhile, the external device itself also switches to a mode matched with the low-speed mode according to the communication parameter in the low-speed mode.
It can be understood that, if the external device does not support a certain communication parameter, the handover response carries information indicating that the handover is not approved, and at this time, the intelligent password device does not perform the handover of the communication mode after receiving the handover response.
106. The intelligent password equipment receives a low-speed switching response sent by the external equipment through the Bluetooth link;
107. And the intelligent password equipment closes the power supply of the screen, the high-speed clock and the safety chip, and switches to the low-speed communication mode according to the communication parameters in the low-speed communication mode.
in this embodiment, the intelligent password device is in a sleep state after entering the low-speed communication mode, so as to reduce power consumption.
In the prior art, when the high-speed communication mode is directly switched to the low-speed communication mode, if the selected communication connection interval is too large, the external device may refuse to execute the switching, which may result in a switching failure. By adopting the embodiment, when the high-speed communication mode is switched to the low-speed communication mode, the initial mode is firstly switched to the initial mode, and the initial mode is supported by the external equipment, so that the success rate of switching to the initial mode can be ensured, further, when the initial mode is switched to the low-speed communication mode, a step-by-step switching mode is adopted, and if the intermediate-level communication mode is supported by the external equipment, the intermediate-level communication mode is firstly switched to, and then the intermediate-level communication mode is switched to the low-speed communication mode, so that the probability of switching failure is further reduced.
In an optional implementation manner of this embodiment, the number of the middle-level communication modes is one, and the process of switching to the middle-level communication mode by the intelligent password device specifically includes:
The intelligent password equipment sends a middle-level switching request to the external equipment, wherein the middle-level switching request carries communication parameters in the middle-level communication mode; and the intelligent password equipment receives a middle-level switching response sent by the external equipment and switches to the middle-level communication mode according to the communication parameters in the middle-level communication mode.
In an optional implementation manner of this embodiment, the number of the intermediate-level communication modes is at least two, and the process of switching to the intermediate-level communication mode by the intelligent password device specifically includes:
The intelligent password device firstly executes a process of switching to a first intermediate communication mode, under the first intermediate communication mode, the intelligent password device executes a process of switching to a next intermediate communication mode until the last intermediate communication mode of the at least two intermediate communication modes is switched, a communication connection interval from the first intermediate communication mode to the last intermediate communication mode is sequentially increased, the communication connection interval under the first intermediate communication mode is larger than that under the initial mode, and the communication connection interval under the last intermediate communication mode is smaller than that under the low-speed communication mode.
in this embodiment, the flow for performing the switching to the first intermediate-level communication mode is roughly implemented as follows: the method comprises the steps that firstly, the intelligent password equipment sends a switching request to the external equipment, the switching request carries communication parameters in a first intermediate communication mode, the external equipment judges whether the external equipment supports the communication parameters in the first intermediate communication mode after receiving the switching request, if the external equipment supports the communication parameters, the external equipment sends a switching response to the intelligent password equipment, the switching response carries information used for indicating that switching is agreed, and after receiving the switching response, the intelligent password equipment executes switching to the first intermediate communication mode according to the communication parameters in the first intermediate communication mode.
In this embodiment, the process of performing the switch to the next intermediate-level communication mode is substantially implemented as the above process of performing the switch to the first intermediate-level communication mode, which can be referred to the related description in the above process of performing the switch to the first intermediate-level communication mode, and is not described again here.
In an optional implementation manner of this embodiment, before the intelligent cryptographic device performs service data communication with an external device according to the communication parameter in the high-speed communication mode, the method further includes:
The intelligent password device and the external device perform a safe pairing process, after the intelligent password device and the external device are successfully paired, the intelligent password device generates a link key, the link key is used for encrypting data transmitted between the intelligent password device and the external device through the Bluetooth link, and the Bluetooth link is established after the intelligent password device and the external device are successfully paired.
In this embodiment, the secure pairing process is implemented as follows: the intelligent password equipment sends a Bluetooth security pairing request to external equipment through Bluetooth communication connection. After receiving the bluetooth security pairing request, if the external device agrees to perform a bluetooth security pairing process (that is, bluetooth pairing and negotiation generate a link key), sending a bluetooth security pairing response to the intelligent password device, where the bluetooth security pairing response carries an agreed identifier. And the intelligent password equipment receives the Bluetooth safe pairing response sent by the external equipment and confirms that the Bluetooth safe pairing is successful with the external equipment.
It should be noted that, in the pairing request sent by the external device to the intelligent password device in the prior art, the external device may initiate a pairing process without generating a link key and only complete bluetooth pairing, so that data between the intelligent password device and the external device is transmitted in a plaintext at a link layer, thereby reducing data transmission security. Through the technical scheme provided by the embodiment of the invention, the intelligent password equipment actively initiates the pairing and key agreement process without depending on the relevant settings of the external equipment, so that the data between the intelligent password equipment and the external equipment is ensured to be transmitted after being encrypted by the link key when being transmitted at the link layer, and the safety of data transmission is improved.
example 2
in this embodiment, the intelligent password device is a device capable of implementing security operations such as digital signature and identity authentication based on a digital certificate, and the intelligent password device may be matched with an external device (e.g., a mobile phone, a POS device, a PC device, etc.) to complete the confirmation and signature of transaction data during a transaction process. This intelligence password equipment is equipped with the security chip, is used for the screen of display data, is used for realizing bluetooth communication's bluetooth communication interface, is used for the input to confirm the button of instruction and is used for triggering parts such as the bluetooth button of establishing the bluetooth connection, can be equipped with the bluetooth button on the intelligence password equipment usually to be convenient for opening and breaking off that convenience of customers manual control bluetooth is connected. It can be understood that, when the intelligent password device only supports the bluetooth communication mode, the intelligent password device may not set the bluetooth key, for example, the bluetooth connection is established after default power on, and the bluetooth connection is disconnected after power off, or the bluetooth key may be set, which is not limited herein. The keys on the intelligent password device can be realized by physical keys, and certainly, if the screen is a touch screen, the virtual keys can be displayed through the touch screen. The security chip stores key information such as a private key and a digital certificate, wherein the private key can be used for performing digital signature on received transaction data, and the digital certificate can be used for performing identity authentication and the like.
The present embodiment provides an intelligent password device, as shown in fig. 2, including: a Bluetooth communication module 21, a switching control module 22 and a security chip 23.
A bluetooth communication module 21, configured to perform service data communication with an external device through a bluetooth link in a high-speed communication mode; in the high-speed communication mode, the screen of the intelligent password device, the high-speed clock and the power supply of the security chip 23 are all in an on state; after the service data communication is finished, the intelligent password equipment sends an initial switching request to the external equipment through the Bluetooth link, wherein the initial switching request carries communication parameters under the initial mode, and the communication parameters at least comprise communication connection intervals; receiving an initial switching response sent by the external equipment through the Bluetooth link;
The switching control module 22 is configured to control the intelligent password device to switch to the initial mode according to the communication parameters in the initial mode; under the initial mode, controlling the intelligent password equipment to be switched to a middle-level communication mode; the communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the initial mode is greater than the communication connection interval in the high-speed communication mode;
The bluetooth communication module 21 is further configured to send the low-speed handover request to the external device through the bluetooth link in the middle-level communication mode, where the low-speed handover request carries communication parameters in a low-speed communication mode, and a communication connection interval in the low-speed communication mode is greater than a communication connection interval in the middle-level communication mode; receiving a low-speed switching response sent by the external equipment through the Bluetooth link;
The switching control module 22 is further configured to turn off the power supplies of the screen, the high-speed clock, and the security chip 23, and control the intelligent password device to switch to the low-speed communication mode according to the communication parameters in the low-speed communication mode.
In this embodiment, after the intelligent password device is started, the intelligent password device broadcasts information such as a bluetooth address, the external device performs scanning of the bluetooth device, after the intelligent password device is scanned, a bluetooth connection establishment request is sent to the intelligent password device, the bluetooth connection establishment request carries initial communication parameters of the external device, after the intelligent password device receives the bluetooth connection establishment request sent by the external device, the initial communication parameters of the external device are stored and used as communication parameters of the intelligent password device in an initial mode, and the communication parameters are communicated with the external device according to the communication parameters in the initial mode, so that a bluetooth connection establishment process and a bluetooth security pairing process are completed.
Generally, after the bluetooth secure pairing procedure is executed between the smart password device and the external device, the smart password device needs to perform service processing with the external device. In the initial mode, the intelligent password device sends a high-speed switching request to the external device to request to switch to the high-speed communication mode so as to process the service.
the service data communication in this embodiment may be, for example, that the intelligent password device receives transaction data sent by the external device through a bluetooth communication connection, and after the intelligent password device confirms and signs the transaction data, the intelligent password device returns the signed transaction data to the external device.
In this embodiment, the communication parameters at least include communication connection intervals, and the communication connection intervals in different modes are different, for example, after the intelligent password device establishes bluetooth communication connection with the external device, a value range of the communication connection interval in the initial mode may be 30ms to 50ms, a minimum value of the communication connection interval in the high-speed communication mode is generally 7.5ms, and a value of the communication connection interval in the low-speed communication mode is generally greater than 500 ms. The value of the communication connection interval in the intermediate communication mode may be, for example, 500ms, and the value of the communication connection interval in the low-speed communication mode may be, for example, 1000 ms.
The communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the initial mode is greater than the communication connection interval in the high-speed communication mode; the communication connection interval in the low-speed communication mode is larger than the communication connection interval in the intermediate-level communication mode.
In this embodiment, the communication parameters may include a communication connection delay and a communication connection timeout in addition to the communication connection interval, which is described in detail in the bluetooth communication protocol.
in this embodiment, the manner for the intelligent cryptographic device to determine that the service data communication is ended may be: after the service processing is executed and the data after the service processing is sent to the external device, for example, when the service processing is signature service, the intelligent password device signs the transaction data to obtain the signed transaction data, and after the signed transaction data is sent to the external device, it is determined that the service data communication is ended. Of course, the manner for the intelligent cryptographic device to determine the end of the service data communication may also be: and receiving notification information of service data communication end sent by the external equipment. The specific implementation is not limited herein.
In this embodiment, in order to reduce the power consumption of the intelligent password device, after the intelligent password device and the external device perform service data communication, the mode is switched to a low power consumption mode, for example, a low-speed communication mode.
in this embodiment, the intelligent password device is in a sleep state after entering the low-speed communication mode, so as to reduce power consumption.
In the prior art, when the high-speed communication mode is directly switched to the low-speed communication mode, if the selected communication connection interval is too large, the external device may refuse to execute the switching, which may result in a switching failure. By adopting the embodiment, when the high-speed communication mode is switched to the low-speed communication mode, the initial mode is firstly switched to the initial mode, and the initial mode is supported by the external equipment, so that the success rate of switching to the initial mode can be ensured, further, when the initial mode is switched to the low-speed communication mode, a step-by-step switching mode is adopted, and if the intermediate-level communication mode is supported by the external equipment, the intermediate-level communication mode is firstly switched to, and then the intermediate-level communication mode is switched to the low-speed communication mode, so that the probability of switching failure is further reduced.
In an optional implementation manner of this embodiment, the bluetooth communication module is specifically configured to send an intermediate level switching request to the external device, where the intermediate level switching request carries communication parameters in the intermediate level communication mode; receiving a middle-level switching response sent by the external equipment;
The switching control module is specifically configured to control the intelligent password device to switch to the intermediate-level communication mode according to the communication parameter in the intermediate-level communication mode.
In an optional implementation manner of this embodiment, the switching control module is specifically configured to control the intelligent cryptographic device to switch to a first intermediate-level communication mode, and in the first intermediate-level communication mode, control the intelligent cryptographic device to switch to a next intermediate-level communication mode until switching to a last intermediate-level communication mode of the at least two intermediate-level communication modes, where a communication connection interval in the first intermediate-level communication mode to a communication connection interval in the last intermediate-level communication mode sequentially increase, the communication connection interval in the first intermediate-level communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the last intermediate-level communication mode is smaller than the communication connection interval in the low-speed communication mode.
in this embodiment, the flow for performing the switching to the first intermediate-level communication mode is roughly implemented as follows: the method comprises the steps that firstly, the intelligent password equipment sends a switching request to the external equipment, the switching request carries communication parameters in a first intermediate communication mode, the external equipment judges whether the external equipment supports the communication parameters in the first intermediate communication mode after receiving the switching request, if the external equipment supports the communication parameters, the external equipment sends a switching response to the intelligent password equipment, the switching response carries information used for indicating that switching is agreed, and after receiving the switching response, the intelligent password equipment executes switching to the first intermediate communication mode according to the communication parameters in the first intermediate communication mode.
in this embodiment, the process of performing the switch to the next intermediate-level communication mode is substantially implemented as the above process of performing the switch to the first intermediate-level communication mode, which can be referred to the related description in the above process of performing the switch to the first intermediate-level communication mode, and is not described again here.
in an optional implementation manner of this embodiment, the bluetooth communication module is further configured to perform secure pairing with the external device, and the intelligent password device further includes: a key generation module (not shown) configured to generate a link key after the smart password device and the external device are successfully paired, where the link key is used to encrypt, at a link layer, data transmitted between the smart password device and the external device through the bluetooth link, so as to improve security of data transmission. Wherein the Bluetooth link is established after the smart password device and the external device are successfully paired securely.
It should be noted that, in this embodiment, reference may also be made to the related description of the intelligent password device in embodiment 1 for the functional implementation of each module of the intelligent password device. And will not be described in detail herein.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
in the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (8)

1. A method for switching communication modes, comprising:
In a high-speed communication mode, the intelligent password equipment is in service data communication with external equipment through a Bluetooth link; in the high-speed communication mode, a screen of the intelligent password device, a high-speed clock and a power supply of the security chip are all in an open state;
After the service data communication of the intelligent password equipment is finished, the intelligent password equipment sends an initial switching request to the external equipment through the Bluetooth link, wherein the initial switching request carries communication parameters under the initial mode, and the communication parameters at least comprise communication connection intervals;
The intelligent password equipment receives an initial switching response sent by the external equipment through the Bluetooth link and switches to the initial mode according to the communication parameters in the initial mode;
In the initial mode, the intelligent password equipment executes a process of switching to an intermediate communication mode and enters the intermediate communication mode; the communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the initial mode is greater than the communication connection interval in the high-speed communication mode;
In the intermediate communication mode, the intelligent password device sends a low-speed switching request to the external device through the Bluetooth link, wherein the low-speed switching request carries communication parameters in a low-speed communication mode, and the communication connection interval in the low-speed communication mode is larger than that in the intermediate communication mode;
the intelligent password equipment receives a low-speed switching response sent by the external equipment through the Bluetooth link;
And the intelligent password equipment closes the power supply of the screen, the high-speed clock and the safety chip, and switches to the low-speed communication mode according to the communication parameters in the low-speed communication mode.
2. the method according to claim 1, wherein the number of the intermediate-level communication modes is one, and the process of switching to the intermediate-level communication mode is executed by the intelligent cryptographic device, specifically including:
the intelligent password equipment sends a middle-level switching request to the external equipment, wherein the middle-level switching request carries communication parameters in the middle-level communication mode; and the intelligent password equipment receives a middle-level switching response sent by the external equipment and switches to the middle-level communication mode according to the communication parameters in the middle-level communication mode.
3. The method according to claim 1, wherein the number of the intermediate-level communication modes is at least two, and the intelligent cryptographic device performs a process of switching to the intermediate-level communication mode, specifically including:
The intelligent password device firstly executes a process of switching to a first intermediate communication mode, under the first intermediate communication mode, the intelligent password device executes a process of switching to a next intermediate communication mode until the last intermediate communication mode of the at least two intermediate communication modes is switched, a communication connection interval from the first intermediate communication mode to the last intermediate communication mode is sequentially increased, the communication connection interval under the first intermediate communication mode is larger than that under the initial mode, and the communication connection interval under the last intermediate communication mode is smaller than that under the low-speed communication mode.
4. The method according to claim 1, before the smart password device performs service data communication with an external device according to the communication parameters in the high-speed communication mode, further comprising:
The intelligent password device and the external device perform a safe pairing process, after the intelligent password device and the external device are successfully paired, the intelligent password device generates a link key, the link key is used for encrypting data transmitted between the intelligent password device and the external device through the Bluetooth link, and the Bluetooth link is established after the intelligent password device and the external device are successfully paired.
5. an intelligent cryptographic device, comprising:
The Bluetooth communication module is used for carrying out service data communication with external equipment through a Bluetooth link in a high-speed communication mode; in the high-speed communication mode, a screen of the intelligent password device, a high-speed clock and a power supply of the security chip are all in an open state; after the service data communication is finished, the intelligent password equipment sends an initial switching request to the external equipment through the Bluetooth link, wherein the initial switching request carries communication parameters under the initial mode, and the communication parameters at least comprise communication connection intervals; receiving an initial switching response sent by the external equipment through the Bluetooth link;
The switching control module is used for controlling the intelligent password equipment to be switched to the initial mode according to the communication parameters in the initial mode; under the initial mode, controlling the intelligent password equipment to be switched to a middle-level communication mode; the communication connection interval in the intermediate communication mode is greater than the communication connection interval in the initial mode, and the communication connection interval in the initial mode is greater than the communication connection interval in the high-speed communication mode;
The bluetooth communication module is further configured to send a low-speed handover request to the external device through the bluetooth link in the middle-level communication mode, where the low-speed handover request carries communication parameters in a low-speed communication mode, and a communication connection interval in the low-speed communication mode is greater than a communication connection interval in the middle-level communication mode; receiving a low-speed switching response sent by the external equipment through the Bluetooth link;
the switching control module is further configured to turn off the power supplies of the screen, the high-speed clock, and the security chip, and control the intelligent password device to switch to the low-speed communication mode according to the communication parameters in the low-speed communication mode.
6. The intelligent cryptographic device of claim 5,
The bluetooth communication module is specifically configured to send an intermediate level switching request to the external device, where the intermediate level switching request carries communication parameters in the intermediate level communication mode; receiving a middle-level switching response sent by the external equipment;
the switching control module is specifically configured to control the intelligent password device to switch to the intermediate-level communication mode according to the communication parameter in the intermediate-level communication mode.
7. the intelligent cryptographic device of claim 5, wherein the switching control module is configured to control the intelligent cryptographic device to switch to a first intermediate-level communication mode, in the first intermediate-level communication mode, controlling the intelligent password device to switch to the next intermediate-level communication mode until switching to the last intermediate-level communication mode of the at least two intermediate-level communication modes, the communication connection interval in the first intermediate communication mode is sequentially incremented to the communication connection interval in the last intermediate communication mode, the communication connection interval in the first intermediate communication mode is larger than the communication connection interval in the initial mode, the communication connection interval in the last intermediate communication mode is smaller than the communication connection interval in the low-speed communication mode.
8. The intelligent cryptographic device of claim 5, further comprising:
And the key generation module is used for generating a link key after the intelligent password device and the external device are successfully paired in a secure manner, wherein the link key is used for encrypting data transmitted between the intelligent password device and the external device through the Bluetooth link, and the Bluetooth link is established after the intelligent password device and the external device are successfully paired in a secure manner.
CN201710459164.4A 2017-06-16 2017-06-16 Communication mode switching method and intelligent password equipment Active CN107205216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710459164.4A CN107205216B (en) 2017-06-16 2017-06-16 Communication mode switching method and intelligent password equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710459164.4A CN107205216B (en) 2017-06-16 2017-06-16 Communication mode switching method and intelligent password equipment

Publications (2)

Publication Number Publication Date
CN107205216A CN107205216A (en) 2017-09-26
CN107205216B true CN107205216B (en) 2019-12-06

Family

ID=59907514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710459164.4A Active CN107205216B (en) 2017-06-16 2017-06-16 Communication mode switching method and intelligent password equipment

Country Status (1)

Country Link
CN (1) CN107205216B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011259172A (en) * 2010-06-08 2011-12-22 Sony Corp Communication device, communication system, mode changeover method and program
KR101588800B1 (en) * 2010-11-16 2016-02-12 한국전자통신연구원 Method For Contolling Connection Between Terminals Using Low Speed Network Communication And Device Using The Same
CN103944736A (en) * 2014-04-25 2014-07-23 天地融科技股份有限公司 Data security interactive method
CN104639968B (en) * 2015-02-28 2018-01-30 江苏惠通集团有限责任公司 Communication connecting method, remote control and host-side device
CN105472542B (en) * 2015-12-16 2019-02-12 深圳智芯数据服务有限公司 A kind of intelligent wearable device based on low-power consumption bluetooth standard and data transmission method of mobile terminal and system

Also Published As

Publication number Publication date
CN107205216A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
EP3873004B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
EP2806703B1 (en) Method and terminal device for establishing wireless network connection
JP4894826B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, NOTIFICATION METHOD, AND PROGRAM
EP3169135B1 (en) Radio communication apparatus and radio communication method
CA2907889C (en) Method and system for processing operation requests
US10547992B2 (en) Communication apparatus, method of controlling a communication apparatus, and storage medium
WO2015180581A1 (en) Information processing method and device
CN111193695A (en) Encryption method and device for third party account login and storage medium
JP7200312B2 (en) Method and terminal device for establishing a hotspot connection
CN103650554A (en) Data integrity for proximity-based communication
TWI827607B (en) Device for wireless communication handover
CN107396281B (en) communication mode switching method and intelligent password equipment
CN104009925A (en) Method and device for establishing bridge connection with router and router
CN105072537A (en) Bluetooth connection-based audio play method and device
CN110870353B (en) WiFi connection method and terminal
CN107465995B (en) Communication mode switching method and intelligent password equipment
CN107205216B (en) Communication mode switching method and intelligent password equipment
CN107277750B (en) A kind of switching method and intelligent cipher equipment of communication pattern
CN112867041A (en) Network distribution method of household appliance, mobile terminal and medium
EP4160357B1 (en) Communication apparatus, control method, and program
WO2023011538A1 (en) Information reporting method, terminal and network side device
CN106792687B (en) Connection method and system of WIFI network of mobile terminal
CN114793178B (en) Network distribution method, device, equipment and storage medium
KR20190001565A (en) Printing apparatus, control method of the same, and computer program
JP5360181B2 (en) Communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant