CN112383970B - Processing method and device and electronic equipment - Google Patents

Processing method and device and electronic equipment Download PDF

Info

Publication number
CN112383970B
CN112383970B CN202011202350.8A CN202011202350A CN112383970B CN 112383970 B CN112383970 B CN 112383970B CN 202011202350 A CN202011202350 A CN 202011202350A CN 112383970 B CN112383970 B CN 112383970B
Authority
CN
China
Prior art keywords
identification information
electronic device
communication connection
communication
condition
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
CN202011202350.8A
Other languages
Chinese (zh)
Other versions
CN112383970A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011202350.8A priority Critical patent/CN112383970B/en
Publication of CN112383970A publication Critical patent/CN112383970A/en
Application granted granted Critical
Publication of CN112383970B publication Critical patent/CN112383970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

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

Abstract

The application discloses a processing method, a processing device and electronic equipment, wherein the processing method is applied to first electronic equipment and comprises the following steps: detecting whether an update condition is satisfied in the case that the identification information is a first value; if the updating condition is satisfied, updating the identification information to the obtained second value; the identification information is information representing the first electronic equipment, and the identification information can be acquired by the second electronic equipment through the first communication connection to establish second communication connection with the first electronic equipment. Therefore, in the method, whether the updating condition corresponding to the identification information is met or not is detected in real time to continuously update the value of the identification information, even if the identification information is reversely acquired, the identification information reversely acquired is invalid because the identification information is updated, and effective communication connection is not established because the identification information is reversely acquired, so that potential safety hazards of data transmission are avoided, and the safety of the data transmission is improved.

Description

Processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a processing method, an apparatus, and an electronic device.
Background
In wireless communication between two devices, an identification code uniquely characterizing the device is typically generated by one of the devices and the device transmits its own generated identification code to the other device, such that a communication connection between the two devices can be established based on the identification code.
However, the present identification code is usually fixed and can be reversely acquired, and after the identification code is reversely acquired, the devices acquiring the identification code can arbitrarily use the identification code, such as arbitrarily transmitting data to the device corresponding to the identification code, thus having the security problem of data transmission.
Disclosure of Invention
In view of this, the present application provides a processing method, apparatus and electronic device, as follows:
a processing method applied to a first electronic device, comprising:
detecting whether an update condition is satisfied in the case that the identification information is a first value;
if the updating condition is satisfied, updating the identification information to the obtained second value;
the identification information is information representing the first electronic equipment, and the identification information can be acquired by the second electronic equipment through the first communication connection to establish second communication connection with the first electronic equipment.
In the above method, preferably, the first communication connection is established when the first electronic device and the second electronic device meet a connection condition; the connection conditions include: the second electronic device is present in a communication range corresponding to the first communication connection of the first electronic device;
and in the first communication connection, the first electronic device at least sends the identification information, so that the second electronic device establishes the second communication connection at least according to the identification information after obtaining the identification information, and data transmitted in the second communication connection is different from data transmitted in the first communication connection.
In the above method, preferably, the communication range of the second communication connection is larger than the communication range of the first communication connection.
In the above method, preferably, in the first communication connection, the first electronic device further sends device information of the first electronic device, so that the second electronic device establishes a second communication connection with the first electronic device by using the identification information and the device information after obtaining the device information of the first electronic device.
In the above method, preferably, after updating the identification information to the obtained second value, the method further includes:
writing the identification information into a first communication component of the first electronic device;
the first communication component establishes a first communication connection with the second electronic device under the condition that the first communication component and the second electronic device meet the connection condition, so that identification information in the first communication component is acquired by the second electronic device through the first communication connection, and then a second communication connection with the second communication component in the first electronic device is established.
The method preferably writes the identification information into a first communication component of the first electronic device, including:
creating a target process corresponding to the identification information;
and writing the identification information into a first communication component of the first electronic device by utilizing a target process corresponding to the identification information.
The above method, preferably, after writing the identification information into the first communication component of the first electronic device, the method further includes:
and deleting the target process corresponding to the identification information under the condition that the identification information is detected to meet the updating condition.
In the above method, preferably, the update condition includes: the number of times the identification information is obtained after the last time the identification information was updated is greater than or equal to a number of times threshold and/or the time period from the interval when the identification information was last updated is greater than or equal to a time period threshold.
A processing apparatus, for use with a first electronic device, comprising:
a condition detection unit configured to detect whether an update condition is satisfied in a case where the identification information is a first value;
an identification updating unit configured to update the identification information to the obtained second value, in a case where the condition detecting unit detects that the update condition is satisfied;
the identification information is information representing the first electronic equipment, and the identification information can be acquired by the second electronic equipment through the first communication connection to establish second communication connection with the first electronic equipment.
An electronic device, comprising:
a first communication component for implementing a first communication connection;
a second communication component for implementing a second communication connection;
a processing component for detecting whether the update condition is satisfied in the case that the identification information is a first value; if the updating condition is satisfied, updating the identification information to the obtained second value;
the identification information is information representing the electronic equipment, and the identification information can be acquired by other equipment through the first communication connection to establish a second communication connection with the electronic equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a processing method according to a first embodiment of the present disclosure;
FIGS. 2 and 3 are respectively exemplary diagrams of embodiments of the present application;
FIG. 4 is another flow chart of a processing method according to the first embodiment of the present application;
FIG. 5 is another exemplary diagram of an embodiment of the present application;
fig. 6 is a schematic structural diagram of a processing device according to a second embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present application;
fig. 8 to 10 are respectively exemplary diagrams of embodiments of the present application when applied to a notebook computer.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, a flowchart of a processing method according to an embodiment of the present application is provided, where the method may be applied to a first electronic device capable of performing data processing and data transmission, such as a mobile phone, a notebook, or a pad. The technical scheme in the embodiment is mainly used for improving the safety of data transmission of the electronic equipment.
Specifically, the method in this embodiment may include the following steps:
step 101: in case the identification information is a first value, it is detected whether the update condition is fulfilled, and if the update condition is fulfilled, step 102 is performed.
The identification information is information characterizing the first electronic device, such as an identification code uniquely characterizing the first electronic device, such as a universal unique identification code UUID (Universally Unique Identifier), etc. The identification information can be obtained by the second electronic device via the first communication connection, and after the identification information of the first electronic device is obtained by the second electronic device, the second electronic device can establish a second communication connection with the first electronic device, whereby the second electronic device and the first electronic device can perform data transmission via the second communication connection.
Note that, the first electronic device in this embodiment is a second electronic device in this application, and the first and second electronic devices in this application are for distinguishing two side electronic devices that perform data communication, and are not limited to a certain device.
Specifically, the case where the identification information is the first value generally refers to the case where the identification information is updated to the current value, and the case where the identification information is a specific value is not limited.
In this embodiment, when the identification information is updated to the first value, it is continuously detected whether the update condition is satisfied, that is, when the identification information is updated to the first value, it is detected whether the update condition corresponding to the identification information is satisfied in real time, if the update condition is not satisfied, it is continuously detected whether the update condition is satisfied, and if the update condition is satisfied, it is possible to execute step 102.
The update condition in this embodiment is for the identification information, and not only for the identification information of the first value. In a specific implementation, the update condition may be a condition regarding a duration in which the identification information is updated, or may be a condition regarding the number of times the identification information is acquired by other electronic devices. Based on this, in this embodiment, whether the update condition is satisfied may be determined by monitoring a parameter, such as a time length or a number of times, corresponding to the update condition.
In one implementation, the update condition may include: the number of times the identification information is obtained after the last time the identification information was updated is greater than or equal to the number of times threshold. That is, the first electronic device starts recording the number of times the identification information is obtained by other devices such as the second electronic device after the identification information is updated until the number of times the identification information is obtained is greater than or equal to the number-of-times threshold. For example, after the identification information is updated to the first value, the first electronic device records the number of times the identification information is acquired by the second electronic device through the first communication connection, and determines that the update condition is satisfied when the number of times is greater than or equal to a number of times threshold, such as greater than 5 times.
Specifically, the first electronic device may record the number of times the identification information is obtained by other devices, such as the second electronic device, by configuring a counter.
In another implementation, the update condition may include: the time period from the last interval at which the identification information was updated is greater than or equal to the time period threshold. That is, after the identification information is updated, the first electronic device starts timing until the recorded time length reaches the time length threshold. For example, after the identification information is updated to the first value, the first electronic device starts timing, and determines that the update condition is satisfied when the recorded time period exceeds 1 hour.
Specifically, the first electronic device may implement timing by configuring a timer.
In another implementation, the update condition may include: the number of times the identification information is obtained after the last identification information is updated is greater than or equal to a number of times threshold, and the time period from the interval when the last identification information is updated is greater than or equal to a time period threshold. That is, after the identification information is updated, the first electronic device starts recording the number of times the identification information is obtained by other devices such as the second electronic device while starting timing until the number of times the identification information is obtained is greater than or equal to the number of times threshold or the recorded time length reaches the time length threshold. For example, after the identification information is updated to the first value, the first electronic device starts timing while recording the number of times the identification information is acquired by the second electronic device through the first communication connection, and when the number of times is greater than or equal to a number threshold such as greater than 5 times or the recorded time period exceeds 1 hour, it may be determined that the update condition is satisfied.
Step 102: and updating the identification information to the obtained second value.
The second value may be generated in real time by the first electronic device, for example, when the update condition is satisfied, the first electronic device generates the second value, and then sets the second value as the current value of the identification information;
alternatively, the second value may be read by the first electronic device in a pre-generated and stored set of values, e.g. when the update condition is met, the first electronic device reads the second value in its stored set of values, and then sets the second value as the current value of the identification information.
The value set may include a plurality of values that are generated in advance, and the values may be arranged in a specific order, and when the first electronic device reads the values, one of the values may be read as the second value in a specific rule or order. For example, the first electronic device reads the second value randomly in the value set, or the second electronic device reads the value which has not been read or has been read less times in the order of the values, or the like.
Based on this, the second electronic device is able to establish a second communication connection with the first electronic device after the updated identification information is obtained by the second electronic device through the first communication connection.
If the second electronic device and the first electronic device perform data transmission through the second communication connection when the identification information is updated, at this time, the first electronic device notifies the second electronic device of the updated status of the identification information after updating the identification information, and the second electronic device re-acquires the updated identification information from the first electronic device through the first communication connection and re-establishes the second communication connection to continue data transmission. It can be seen that even if the identification information is acquired reversely, the communication connection cannot be established due to the change of the identification information after the identification information is updated, and thus data transmission cannot be performed.
Taking a first electronic device as a notebook computer and taking a second electronic device as a mobile phone as an example, detecting whether an update condition corresponding to a UUID (user identifier) is met on the notebook computer in real time, such as whether the number of times the UUID is read by other devices exceeds a limit or whether the update duration of the UUID is overtime, and the like, when the update condition corresponding to the UUID is met, updating the UUID once by the notebook computer, based on the update condition, firstly establishing a first communication connection between the mobile phone and the computer, such as NFC (near field communication) based on the first communication connection, obtaining the latest UUID of the computer by the mobile phone through the first communication connection, then establishing a second communication connection, such as Bluetooth connection, with the computer by the mobile phone, and transmitting data packets, such as videos or documents, between the mobile phone and the computer after the establishment of the second communication connection is completed.
As can be seen from the above technical solution, in the processing method according to the first embodiment of the present application, whether the update condition corresponding to the identification information representing the electronic device is satisfied is detected, so that when the update condition is satisfied, the identification information is updated from the first value to the obtained second value, and based on this, the identification information, after being obtained by other electronic devices through the first communication connection, can establish the second communication connection with the electronic device. Therefore, compared with the technical scheme that the fixation of the identification information of the electronic equipment can cause potential safety hazards in data transmission, in the embodiment, the value of the identification information is continuously updated by detecting whether the updating condition corresponding to the identification information is met or not in real time, so that even if the identification information is reversely acquired, the identification information reversely acquired is invalid because the identification information is updated, and effective communication connection is not established because the identification information is reversely acquired, thereby avoiding the potential safety hazards in data transmission and improving the safety of data transmission.
In one implementation, the first communication connection is established if a connection condition is satisfied between the first electronic device and the second electronic device.
Specifically, the connection conditions may be: the second electronic device is present in a communication range corresponding to the first communication connection of the first electronic device, or the distance between the second electronic device and the first electronic device is smaller than or equal to a communication distance threshold, where the communication distance threshold is related to the communication range of the first communication connection, based on which the first communication connection can be established between the second electronic device and the first electronic device.
Based on this, in the first communication connection, the first electronic device transmits at least the identification information, thereby enabling the second electronic device to establish at least a second communication connection according to the identification information after the identification information is obtained, and the established second communication connection enables data transmission between the first electronic device and the second electronic device.
The data transmitted in the second communication connection is different from the data transmitted in the first communication connection. Specifically, the data amount of the data transmitted in the first communication connection is smaller than the data amount of the data transmitted in the second communication connection, and the content of the data transmitted in the first communication connection is different from the content of the data transmitted in the second communication connection.
For example, identification information and other instruction data of the first electronic device are mainly transmitted in the first communication connection, while service data packets, such as video data or document data, between the first electronic device and the second electronic device are mainly transmitted in the second communication connection.
In addition, when the second electronic device is close to the first electronic device and within the communication range corresponding to the first communication connection, as shown in fig. 2, the second electronic device establishes a first communication connection with the first electronic device, for example, the second electronic device establishes a communication connection with the first electronic device based on near field communication NFC (Near Field Communication), and of course, a communication chip based on NFC is configured in the first electronic device; after that, after the second electronic device obtains the identification information of the first electronic device through the first communication connection, the second electronic device establishes a second communication connection, such as a bluetooth connection or a WiFi connection, with the first electronic device according to at least the identification information, so that data, such as a corresponding service data packet, can be transmitted between the second electronic device and the first electronic device through the second communication connection, at this time, the second electronic device may be unchanged in location or may be appropriately far away from the first electronic device, and the distance between the second electronic device and the first electronic device may exceed a communication distance threshold corresponding to the first communication connection, that is, the second electronic device may not be in a communication range corresponding to the first communication connection of the first electronic device, but the second electronic device is definitely in a communication range corresponding to the second communication connection of the first electronic device, as shown in fig. 3.
Taking a first electronic device as a notebook computer and taking a second electronic device as a mobile phone as an example, an NFC chip is pre-configured on the notebook computer, and the notebook computer detects whether an update condition corresponding to the UUID is met in real time, for example, whether the number of times the UUID is read by other devices exceeds a limit or whether the update time of the UUID is overtime, and the like, and when the update condition corresponding to the UUID is met, the notebook computer updates the UUID once. Based on the method, when the mobile phone is close to the notebook computer and is in the communication range of the NFC chip configured on the notebook computer, NFC-based communication connection is established between the mobile phone and the computer, based on the NFC-based communication connection, the mobile phone obtains the latest UUID of the computer, then the mobile phone can establish Bluetooth connection with the computer at least according to the UUID, and after the Bluetooth connection is established, data packets such as videos or documents can be transmitted between the mobile phone and the computer.
In one implementation, in the first communication connection, the first electronic device further sends device information of the first electronic device, such as a communication address in the first electronic device for implementing the second communication connection, such as a bluetooth address or a WiFi address, etc., a device code of the first electronic device, such as a computer serial number SN (Serial Number), etc.; based on this, the second electronic device obtains the device information of the first electronic device through the first communication connection while obtaining the identification information through the first communication connection, and thereafter, the second electronic device can establish the second communication connection with the first electronic device using the identification information together with the device information.
Taking a first electronic device as a notebook computer and taking a second electronic device as a mobile phone as an example, an NFC chip is pre-configured on the notebook computer, and the notebook computer detects whether an update condition corresponding to the UUID is met in real time, for example, whether the number of times the UUID is read by other devices exceeds a limit or whether the update time of the UUID is overtime, and the like, and when the update condition corresponding to the UUID is met, the notebook computer updates the UUID once. Based on the method, when the mobile phone approaches the notebook computer until the mobile phone is in the communication range of the NFC chip configured on the notebook computer, NFC-based communication connection is established between the mobile phone and the computer, based on the NFC-based communication connection, the mobile phone obtains the latest UUID of the computer and the Bluetooth address and SN of the computer, then the mobile phone can establish Bluetooth connection with the computer according to the UUID, the Bluetooth address and the SN, and after the Bluetooth connection is established, data packets such as videos or documents can be transmitted between the mobile phone and the computer.
In one implementation, after step 102, the method in this embodiment may further include the following steps, as shown in fig. 4:
step 103: the identification information is written into a first communication component of the first electronic device.
The first communication component may be a component in the first electronic device that implements the first communication connection, such as an NFC chip, and specifically, the first communication component establishes a first communication connection with the second electronic device when the second electronic device meets a connection condition, based on which, after the updated identification information is written in the first electronic device and the updated identification information is written in the first communication component, the identification information in the first communication component can be obtained by the second electronic device that has already established the first communication connection through the first communication connection, and after the second electronic device obtains the identification information in the first communication component, a second communication connection with the second communication component in the first electronic device may be established, where the second communication component is a component that implements the second communication connection, such as a bluetooth or WiFi module.
As shown in fig. 5, the first electronic device is configured with a first communication component and a second communication component, where when a connection condition corresponding to the first communication component is satisfied between the second electronic device and the first electronic device, the first communication component establishes a first communication connection with the second electronic device, at this time, the second electronic device may obtain, using the first communication connection established by the first communication component, identification information written in the first communication component and updated last time, and may of course also obtain device information to the first electronic device, such as a communication address of the second communication component and a serial number of the first electronic device, and then, the second electronic device may establish a second communication connection with the first electronic device according to the information obtained by the first communication connection, and based on this, data such as video may be transmitted between the first electronic device and the second electronic device.
Taking a first electronic device as a notebook computer and taking a second electronic device as a mobile phone as an example, an NFC chip and a Bluetooth module are pre-configured on the notebook computer, and the notebook computer detects whether update conditions corresponding to UUIDs are met in real time, such as whether the times of reading the UUIDs by other devices exceed the limit or whether the update time of the UUIDs is overtime, and the like, when the update conditions corresponding to the UUIDs are met, the notebook computer updates the UUIDs once, and writes the updated UUIDs into the NFC chip. Based on the information, the mobile phone can be close to the notebook computer until the mobile phone is in the communication range of the NFC chip configured on the notebook computer, NFC-based communication connection is established between the mobile phone and the computer, at the moment, the latest UUID written in the NFC chip can be read by the mobile phone, of course, the mobile phone can also read the information such as the Bluetooth address and the SN of the computer through the NFC-based communication connection, then the mobile phone can establish Bluetooth connection with the computer according to the UUID, the Bluetooth address and the SN, and after the Bluetooth connection is established, data packets such as videos or documents can be transmitted between the mobile phone and the computer.
In a specific implementation, step 103 may be implemented when writing the identification information into the first communication component, specifically by:
firstly, creating a target process corresponding to the identification information, and then writing the identification information into a first communication component of the first electronic device by utilizing the target process corresponding to the identification information.
For example, a bluetooth service process corresponding to the UUID may be established first, and then the updated UUID may be written into the NFC chip by using the bluetooth service process.
Further, in the case where it is detected that the identification information satisfies the update condition, it is necessary to delete the target process corresponding to the identification information in addition to executing step 102 to update the identification information.
That is, in this embodiment, after the identification information is updated, the identification information is written into the first communication component through the established target process, and when the identification information needs to be updated again, the previously established target process is deleted, and after the identification information is updated again, the corresponding target process is re-established to write the updated identification information into the first communication component again.
For example, taking a first electronic device as a notebook computer and taking a second electronic device as a mobile phone as an example, an NFC chip and a bluetooth module are pre-configured on the notebook computer, and the notebook computer detects in real time whether an update condition corresponding to the UUID is satisfied, for example, whether the number of times the UUID is read by other devices exceeds a limit or whether the update duration of the UUID is overtime, etc., when the update condition corresponding to the UUID is satisfied, the notebook computer updates the UUID once, and creates a bluetooth service process, so as to write the updated UUID into the NFC chip, and when the notebook computer detects again that the update condition corresponding to the UUID is satisfied, closes the previously created bluetooth service process while re-updating the UUID, re-creates the bluetooth service process, and writes the updated UUID into the NFC chip. Based on the information, the mobile phone can be close to the notebook computer until the mobile phone is in the communication range of the NFC chip configured on the notebook computer, NFC-based communication connection is established between the mobile phone and the computer, at the moment, the latest UUID written in the NFC chip can be read by the mobile phone, of course, the mobile phone can also read the information such as the Bluetooth address and the SN of the computer through the NFC-based communication connection, then the mobile phone can establish Bluetooth connection with the computer according to the UUID, the Bluetooth address and the SN, and after the Bluetooth connection is established, data packets such as videos or documents can be transmitted between the mobile phone and the computer.
Referring to fig. 6, a schematic structural diagram of a processing apparatus according to a second embodiment of the present application may be configured in a first electronic device capable of performing data processing and data transmission, such as a mobile phone, a notebook, or a pad. The technical scheme in the embodiment is mainly used for improving the safety of data transmission of the electronic equipment.
Specifically, the apparatus in this embodiment may include the following units:
a condition detection unit 601 for detecting whether an update condition is satisfied in the case where the identification information is a first value;
an identification updating unit 602, configured to update the identification information to the obtained second value if the condition detecting unit 601 detects that the update condition is satisfied;
the identification information is information representing the first electronic equipment, and the identification information can be acquired by the second electronic equipment through the first communication connection to establish second communication connection with the first electronic equipment.
As can be seen from the above technical solution, in the processing apparatus according to the second embodiment of the present application, whether the update condition corresponding to the identification information representing the electronic device is satisfied is detected, so that when the update condition is satisfied, the identification information is updated from the first value to the obtained second value, and based on this, the identification information can establish the second communication connection with the electronic device after being obtained by the other electronic device through the first communication connection. Therefore, compared with the technical scheme that the fixation of the identification information of the electronic equipment can cause potential safety hazards in data transmission, in the embodiment, the value of the identification information is continuously updated by detecting whether the updating condition corresponding to the identification information is met or not in real time, so that even if the identification information is reversely acquired, the identification information reversely acquired is invalid because the identification information is updated, and effective communication connection is not established because the identification information is reversely acquired, thereby avoiding the potential safety hazards in data transmission and improving the safety of data transmission.
In one implementation, the first communication connection is established if the first electronic device and the second electronic device satisfy a connection condition; the connection conditions include: the second electronic device is present in a communication range corresponding to the first communication connection of the first electronic device;
and in the first communication connection, the first electronic device at least sends the identification information, so that the second electronic device establishes the second communication connection at least according to the identification information after obtaining the identification information, and data transmitted in the second communication connection is different from data transmitted in the first communication connection.
In one implementation, the communication range of the second communication connection is greater than the communication range of the first communication connection.
Optionally, in the first communication connection, the first electronic device further sends device information of the first electronic device, so that the second electronic device establishes a second communication connection with the first electronic device by using the identification information and the device information after obtaining the device information of the first electronic device.
In one implementation, the identifier updating unit 602 is further configured to, after updating the identifier information to the obtained second value, further: writing the identification information into a first communication component of the first electronic device;
the first communication component establishes a first communication connection with the second electronic device under the condition that the first communication component and the second electronic device meet the connection condition, so that identification information in the first communication component is acquired by the second electronic device through the first communication connection, and then a second communication connection with the second communication component in the first electronic device is established.
Specifically, when writing the identification information into the first communication component of the first electronic device, the identification updating unit 602 creates a target process corresponding to the identification information, and then writes the identification information into the first communication component of the first electronic device by using the target process corresponding to the identification information.
Further, the identifier updating unit 602 is further configured to, after writing the identifier information into the first communication component of the first electronic device: and deleting the target process corresponding to the identification information under the condition that the identification information is detected to meet the updating condition.
Optionally, the updating condition includes: the number of times the identification information is obtained after the last time the identification information was updated is greater than or equal to a number of times threshold and/or the time period from the interval when the identification information was last updated is greater than or equal to a time period threshold.
In one implementation, the first electronic device may record the number of times the identification information is obtained by other devices, such as the second electronic device, by configuring a counter, and in addition, the timing may be implemented by configuring a timer. Based on this, the condition detection unit 601 continuously detects the number of times output by the counter and/or the duration output by the timer to detect whether the update condition is satisfied.
It should be noted that, the specific implementation of each unit in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
Referring to fig. 7, a schematic structural diagram of an electronic device according to a third embodiment of the present application may be the first electronic device in the above scheme, and specifically includes the following structures:
a first communication component 701, configured to implement a first communication connection, such as an NFC chip.
The second communication component 702 is configured to implement a second communication connection, such as a bluetooth module or a WiFi module.
A processing component 703, configured to detect whether an update condition is satisfied, in a case where the identification information is a first value; if the updating condition is satisfied, updating the identification information to the obtained second value;
the identification information is information representing the electronic equipment, and the identification information can be acquired by other equipment through the first communication connection to establish a second communication connection with the electronic equipment.
Further, the electronic device in this embodiment may be further configured with a counter and a timer, based on which the processing component 703 may detect whether the update condition is satisfied by reading the number of times output by the counter and/or the duration output by the timer, where the update condition may be: the number of times the identification information is obtained after the last identification information is updated is greater than or equal to a number of times threshold and/or the time period from the time of the last interval when the identification information is updated is greater than or equal to a time period threshold.
As can be seen from the above technical solution, in the electronic device according to the third embodiment of the present application, whether the update condition corresponding to the identification information representing the electronic device is satisfied is detected, so that when the update condition is satisfied, the identification information is updated from the first value to the obtained second value, and based on this, the identification information, after being obtained by other electronic devices through the first communication connection, can establish the second communication connection with the electronic device. Therefore, compared with the technical scheme that the fixation of the identification information of the electronic equipment can cause potential safety hazards in data transmission, in the embodiment, the value of the identification information is continuously updated by detecting whether the updating condition corresponding to the identification information is met or not in real time, so that even if the identification information is reversely acquired, the identification information reversely acquired is invalid because the identification information is updated, and effective communication connection is not established because the identification information is reversely acquired, thereby avoiding the potential safety hazards in data transmission and improving the safety of data transmission.
It should be noted that, the specific implementation of each component in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
Taking a first electronic device as a notebook and a second electronic device as a mobile phone as an example, the following describes the technical scheme of the application in detail:
in the application, dynamic data generation and transmission are realized by using a built-in NFC SWP (Single Wire Protocol) SIM (Subscriber Identity Module) card, and the data security problem is effectively avoided by combining software realization of Bluetooth service, specifically as follows:
firstly, the NFC SWP SIM card is placed inside the notebook computer, as shown in fig. 8, the NFC SWP SIM card can be arranged in the notebook computer at a position close to the edge, such as an edge position close to the keyboard and the touch area on the C surface, so that the risk that the static NFC device attached to the surface layer of the computer is easy to remove and forge is avoided;
secondly, bluetooth RFComm Service UUID can be dynamically generated and written into the NFC SWP SIM card in the operation process of the notebook computer, and is updated periodically, the mobile phone terminal can dynamically obtain Bluetooth RFComm Service UUID by scanning NFC when data transmission is needed, and Bluetooth RFComm connection between the mobile phone terminal and the computer is established through the Bluetooth module of the mobile phone terminal so as to facilitate data transmission, and the situation that Bluetooth RFComm Service UUID is randomly transmitted after reverse engineering is obtained is avoided.
Therefore, in the application, the security problem that the data is randomly sent after Bluetooth RFComm Service UUID is reversed and the static NFC device is easy to replace is solved by arranging the NFC SWP SIM card in the computer end and dynamically generating Bluetooth RFComm Service UUID.
In conjunction with the respective architecture diagrams of the mobile phone and the computer shown in fig. 9, the following is a flow of UUID processing through Bluetooth service in the computer, as shown in fig. 10:
firstly, monitoring whether a Bluetooth service is started or not in a computer, and detecting whether an update condition of a UUID is met or not under the condition that the Bluetooth service is started, namely judging whether the UUID is out of date and needs to be updated or not;
under the condition that the Bluetooth service is not started or the UUID is out of date, regenerating the UUID in the computer and creating a Bluetooth service process, writing the UUID into a NFC SWP SIM card arranged in the computer end through the Bluetooth service process, waiting for the mobile phone to be connected with the computer, and continuously detecting whether the UUID is out of date;
under the condition that the mobile phone reads UUID in the computer and establishes Bluetooth connection and the UUID is not expired, the mobile phone and the computer can transmit data such as video through the Bluetooth connection.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A processing method applied to a first electronic device, comprising:
detecting whether an update condition is satisfied in the case that the identification information is a first value;
if the updating condition is satisfied, updating the identification information to the obtained second value;
the identification information is information representing the first electronic equipment, and the identification information can be acquired by the second electronic equipment through the first communication connection to establish second communication connection with the first electronic equipment.
2. The method of claim 1, the first communication connection being established if the first electronic device and the second electronic device satisfy a connection condition; the connection conditions include: the second electronic device is present in a communication range corresponding to the first communication connection of the first electronic device;
and in the first communication connection, the first electronic device at least sends the identification information, so that the second electronic device establishes the second communication connection at least according to the identification information after obtaining the identification information, and data transmitted in the second communication connection is different from data transmitted in the first communication connection.
3. The method of claim 1 or 2, the communication range of the second communication connection being greater than the communication range of the first communication connection.
4. The method of claim 2, wherein in the first communication connection, the first electronic device further transmits device information of the first electronic device, so that the second electronic device establishes a second communication connection with the first electronic device using the identification information and the device information after obtaining the device information of the first electronic device.
5. The method of claim 1, after updating the identification information to the obtained second value, the method further comprising:
writing the identification information into a first communication component of the first electronic device;
the first communication component establishes a first communication connection with the second electronic device under the condition that the first communication component and the second electronic device meet the connection condition, so that identification information in the first communication component is acquired by the second electronic device through the first communication connection, and then a second communication connection with the second communication component in the first electronic device is established.
6. The method of claim 5, writing the identification information into a first communication component of the first electronic device, comprising:
creating a target process corresponding to the identification information;
and writing the identification information into a first communication component of the first electronic device by utilizing a target process corresponding to the identification information.
7. The method of claim 6, after writing the identification information into the first communication component of the first electronic device, the method further comprising:
and deleting the target process corresponding to the identification information under the condition that the identification information is detected to meet the updating condition.
8. The method of claim 1, the update condition comprising: the number of times the identification information is obtained after the last time the identification information was updated is greater than or equal to a number of times threshold and/or the time period from the interval when the identification information was last updated is greater than or equal to a time period threshold.
9. A processing apparatus, for use with a first electronic device, comprising:
a condition detection unit configured to detect whether an update condition is satisfied in a case where the identification information is a first value;
an identification updating unit configured to update the identification information to the obtained second value, in a case where the condition detecting unit detects that the update condition is satisfied;
the identification information is information representing the first electronic equipment, and the identification information can be acquired by the second electronic equipment through the first communication connection to establish second communication connection with the first electronic equipment.
10. An electronic device, comprising:
a first communication component for implementing a first communication connection;
a second communication component for implementing a second communication connection;
a processing component for detecting whether the update condition is satisfied in the case that the identification information is a first value; if the updating condition is satisfied, updating the identification information to the obtained second value;
the identification information is information representing the electronic equipment, and the identification information can be acquired by other equipment through the first communication connection to establish a second communication connection with the electronic equipment.
CN202011202350.8A 2020-11-02 2020-11-02 Processing method and device and electronic equipment Active CN112383970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011202350.8A CN112383970B (en) 2020-11-02 2020-11-02 Processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011202350.8A CN112383970B (en) 2020-11-02 2020-11-02 Processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112383970A CN112383970A (en) 2021-02-19
CN112383970B true CN112383970B (en) 2023-04-28

Family

ID=74577100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011202350.8A Active CN112383970B (en) 2020-11-02 2020-11-02 Processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112383970B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10405163B2 (en) * 2013-10-06 2019-09-03 Staton Techiya, Llc Methods and systems for establishing and maintaining presence information of neighboring bluetooth devices
CN104301011B (en) * 2014-11-07 2017-01-18 绵阳市维博电子有限责任公司 Method and system for realizing voice encryption communication between bluetooth devices
CN108540552B (en) * 2018-04-08 2021-05-04 广州视源电子科技股份有限公司 Device interconnection method, apparatus, system, device and storage medium
CN111581994B (en) * 2020-05-06 2024-05-03 维沃移动通信有限公司 Near field communication NFC communication method and device and electronic equipment

Also Published As

Publication number Publication date
CN112383970A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
EP3082353B1 (en) Method and terminal device for sending and receiving user data
EP3714612B1 (en) Quick pairing of peripheral and host devices
KR101595751B1 (en) Method for storing data of video telephony call in mobile terminal and system thereof
EP3955694A1 (en) Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium
CN106445743A (en) Data backup transmission method and mobile terminal
JP6374666B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
US8855599B2 (en) Method and apparatus for auxiliary communications with mobile communications device
CN112383970B (en) Processing method and device and electronic equipment
JP2007201544A (en) Mobile communication terminal
EP2911087A1 (en) Method, device and apparatus for storing and reading data
KR101364540B1 (en) Method and apparatus for reconnecting to other Bluetoooth apparatus
CN108834116B (en) Bluetooth pairing method, electronic device and storage medium
KR20070028960A (en) Mobile communication terminal transmitting data and its operating method
CN105025482A (en) Communication information processing method and device
WO2019011328A1 (en) Wireless access method and device
CN107851211B (en) Object and communication program
CN115052048B (en) Data processing method and device and electronic equipment
WO2023176884A1 (en) Number providing system and number providing method
EP3041281A1 (en) A method for accessing a shared wireless device using a client wireless communications device, and devices for the same .
JP4741984B2 (en) Communication terminal, communication control method, and communication control program
CN105516951A (en) Method and device for setting call forwarding function and mobile terminal
JP6532488B2 (en) Management device, communication terminal device and program
JP6938994B2 (en) Wireless network equipment, image forming equipment, wireless network systems and programs
WO2016197652A1 (en) Identity recognition module switching method and mobile terminal
JP2020170927A (en) Data collection device and data collection program

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