A device communication method and apparatus, an electronic device, and a readable storage medium
By generating noise signals to interfere with the clock signal of the security card, its monitoring of the target device is blocked, which solves the problem of cumbersome communication between the terminal device and the dedicated server, and realizes remote access and cost savings.
Patent Information
- Application Number
- CN202310788551.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-06-29
AI Technical Summary
In the existing technology, communication between terminal devices and the baseboard management controller of a dedicated server requires physical connection and driver installation, resulting in high time and labor costs and a cumbersome communication process.
By generating noise signals to interfere with the clock signal of the security card, and using the motherboard clock signal to generate noise signals, the security card's monitoring of the target device is blocked, enabling remote access and simplifying the communication process.
It enables users to remotely access target devices, simplifies the communication process, and saves time and manpower costs.
Smart Images

Figure CN116760482B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of communication, and particularly relates to a device communication method and device, an electronic device and a readable storage medium. BACKGROUND
[0002] With the rapid development of computer technology, servers are increasingly widely used in the Internet and daily work and life. In the running process of the server, a baseboard management controller (BMC) can be used to monitor and manage the server. When the baseboard management controller monitors and manages the server, communication between the terminal device and the baseboard management controller is needed to realize monitoring and debugging of the server. In a special server, a unique security card hardware can be installed. Due to the need for protection of the special server, the special server can strictly limit the communication function of the BMC connected thereto, for example, cannot connect to the Internet, cannot remotely operate the special server through the management page of the BMC, and the like. In addition, the room where the special server is located usually shields wireless signals to prevent wireless devices from communicating with the BMC.
[0003] In the related art, communication between the terminal device and the baseboard management controller of the special server is mainly realized by using a communication port. If a user needs to perform various operations on the server through the baseboard management controller, the terminal device needs to be physically connected to the communication port of the baseboard management controller, and the device needs to install the driver corresponding to the baseboard management controller, and then the server can be operated in various ways.
[0004] However, this method has the following problems. First, before the terminal device is connected to the communication port of the baseboard management controller, the communication port of the baseboard management controller needs to be welded and modified, which is time-consuming and labor-intensive. Second, the operation process of the special server is limited by the communication port and physical connection, and the communication process is relatively cumbersome. SUMMARY
[0005] The embodiments of the present application provide a device communication method, device, electronic device and readable storage medium, which can solve the problem of poor accuracy and efficiency of device communication in the related art.
[0006] In a first aspect, the embodiments of the present application provide a device communication method, which comprises:
[0007] generating a noise signal based on a mainboard clock signal;
[0008] sending the noise signal to a target port of a security card; wherein the target port is used to monitor the running state of the target device;
[0009] determining a first signal based on the first access instruction sent by the second terminal and the target device;
[0010] sending the first signal to the second terminal based on a preset wireless communication protocol and a preset transmission frequency.
[0011] Optionally, the generating the noise signal based on the mainboard clock signal comprises:
[0012] obtaining a first communication state of the security card; the first communication state comprises a transceiving state and a receiving state;
[0013] in a case where the first communication state is the receiving state, generating a noise signal based on a mainboard clock signal.
[0014] Optionally, the method further comprises:
[0015] in a case where the first communication state is the receiving state, obtaining a mainboard time;
[0016] setting a security card time based on the mainboard time and a preset time length; wherein a difference between the security card time and the mainboard time is equal to the preset time length.
[0017] Optionally, the generating the noise signal based on the mainboard clock signal comprises:
[0018] obtaining a first phase, a first frequency and a first amplitude value of the mainboard clock signal;
[0019] performing an inverse phase processing on the first phase to obtain a second phase;
[0020] generating the noise signal based on the second phase, the first frequency and the first amplitude value.
[0021] Optionally, the sending the noise signal to the target port of the security card comprises:
[0022] receiving a connection request instruction sent by the second terminal;
[0023] in response to the connection request instruction, sending, based on the connection request instruction, connection information of the target device to the second terminal; wherein the connection information is used for establishing a connection between the second terminal and the target device;
[0024] receiving a connection information feedback signal sent by the second terminal; wherein the connection information feedback signal is used for indicating a connection state between the second terminal and the target device;
[0025] In a case where the connection information feedback signal indicates that the second terminal is successfully connected with the target device, the noise signal is sent to the target port of the security card.
[0026] Optionally, the first signal is determined based on the first access instruction sent by the second terminal and the target device, and the first signal comprises:
[0027] The second signal sent by the second terminal is received and decoded to obtain the first access instruction, wherein the second signal is obtained by encoding the first access instruction by the second terminal, and the second signal is sent by the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0028] The first reply instruction sent by the target device corresponding to the first access instruction is determined.
[0029] The first reply instruction is encoded to obtain the first signal.
[0030] Optionally, the first signal is determined based on the first access instruction sent by the second terminal and the target device, and the first signal comprises:
[0031] The second communication state of the target device is determined.
[0032] In a case where the second communication state indicates that the target device cannot communicate, the second phase is adjusted to be opposite to the first phase, and the step of determining the second communication state of the target device is performed.
[0033] In a case where the second communication state indicates that the target device can communicate normally, the first signal is determined based on the first access instruction sent by the second terminal and the target device.
[0034] Optionally, the first signal is sent to the second terminal based on the preset wireless communication protocol and the preset transmission frequency, and the first signal comprises:
[0035] An environmental interference signal is obtained, and an interference frequency is determined based on the environmental interference signal.
[0036] The preset wireless communication protocol and the preset transmission frequency are determined based on the interference frequency.
[0037] The first signal is sent to the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0038] Optionally, the preset wireless communication protocol comprises a Bluetooth protocol, and / or the preset transmission frequency comprises a terahertz frequency.
[0039] In a second aspect, the embodiments of the present application provide a device communication apparatus, which comprises:
[0040] a generating module configured to generate a noise signal based on a mainboard clock signal; the noise signal is used to interfere with the mainboard clock signal sent by a target device to a security card;
[0041] a first sending module configured to send the noise signal to a target port of the security card; wherein the target port is used for the security card to monitor a running state of the target device;
[0042] a determining module configured to determine a first signal based on a first access instruction sent by a second terminal and the target device;
[0043] a second sending module configured to send the first signal to the second terminal based on a preset wireless communication protocol and a preset transmission frequency.
[0044] Optionally, the generating module comprises:
[0045] a first obtaining sub-module configured to obtain a first communication state of the security card; the first communication state comprises a transceiving state and a receiving state;
[0046] a first generating sub-module configured to generate a noise signal based on a mainboard clock signal in a case where the first communication state is the receiving state.
[0047] Optionally, the apparatus further comprises:
[0048] a first obtaining module configured to obtain a mainboard time in a case where the first communication state is the receiving state;
[0049] a setting module configured to set a security card time based on the mainboard time and a preset time length; wherein a difference between the security card time and the mainboard time is equal to the preset time length.
[0050] Optionally, the generating module comprises:
[0051] a second obtaining sub-module configured to obtain a first phase, a first frequency and a first amplitude value of the mainboard clock signal;
[0052] a phase inversion sub-module configured to perform phase inversion processing on the first phase to obtain a second phase;
[0053] a second generating sub-module configured to generate the noise signal based on the second phase, the first frequency and the first amplitude value.
[0054] Optionally, the first sending module comprises:
[0055] The first receiving submodule is configured to receive a connection request instruction sent by the second terminal.
[0056] The first sending submodule is configured to, in response to the connection request instruction, send, based on the connection request instruction, connection information of the target device to the second terminal, where the connection information is used for the second terminal to establish a connection with the target device.
[0057] The second receiving submodule is configured to receive a connection information feedback signal sent by the second terminal, where the connection information feedback signal is used to indicate a connection state of the second terminal with the target device.
[0058] The second sending submodule is configured to, in a case where the connection information feedback signal indicates that the second terminal successfully connects with the target device, send the noise signal to the target port of the security card.
[0059] Optionally, the determining module comprises:
[0060] The decoding submodule is configured to receive a second signal sent by the second terminal and decode the second signal to obtain the first access instruction, where the second signal is obtained by encoding the first access instruction by the second terminal, and the second signal is sent by the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0061] The first determining submodule is configured to determine a first reply instruction sent by the target device corresponding to the first access instruction.
[0062] The encoding submodule is configured to encode the first reply instruction to obtain the first signal.
[0063] Optionally, the determining module comprises:
[0064] The second determining submodule is configured to determine a second communication state of the target device.
[0065] The phase adjusting submodule is configured to, in a case where the second communication state indicates that the target device cannot communicate, adjust the second phase to make the second phase opposite to the first phase, and perform the step of determining the second communication state of the target device.
[0066] The third determining submodule is configured to, in a case where the second communication state indicates that the target device normally communicates, determine the first signal based on the first access instruction sent by the second terminal and the target device.
[0067] Optionally, the second sending module comprises:
[0068] A fourth determining sub-module is configured to acquire an environmental interference signal and determine an interference frequency based on the environmental interference signal.
[0069] A fifth determining sub-module is configured to determine the preset wireless communication protocol and the preset transmission frequency based on the interference frequency.
[0070] A sending sub-module is configured to send the first signal to the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0071] Optionally, the preset wireless communication protocol comprises a Bluetooth protocol, and / or the preset transmission frequency comprises a terahertz frequency.
[0072] In a third aspect, an electronic device is provided, which comprises a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the device communication method described above is implemented.
[0073] In a fourth aspect, a readable storage medium is provided, which stores programs or instructions. When the programs or instructions are executed by a processor, the device communication method described above is implemented.
[0074] In the embodiments of the present application, a device communication method is provided, which comprises: generating a noise signal based on a mainboard clock signal; the noise signal is used to interfere with a clock signal sent by a target device to a security card; sending the noise signal to a target port of the security card; the target port is used for the security card to monitor the running state of the target device; determining a first signal based on a first access instruction sent by a second terminal and the target device; and sending the first signal to the second terminal based on a preset wireless communication protocol and a preset transmission frequency. The monitoring effect of the security card on the target device can be shielded, so that the remote access of the user to the target device can be realized, the communication process is simplified, and the time cost and the labor cost are saved. BRIEF DESCRIPTION OF DRAWINGS
[0075] Figure 1 is a step flowchart of a device communication method provided by the embodiments of the present application;
[0076] Figure 2 is a step flowchart of another device communication method provided by the embodiments of the present application;
[0077] Figure 3 is a general principle diagram of a phase-locked loop;
[0078] Figure 4 is a schematic diagram of communication between devices provided by the embodiments of the present application;
[0079] Figure 5is a processing flow schematic diagram provided by an embodiment of the present application.
[0080] Figure 6 is a logical block diagram of a device communication device provided by an embodiment of the present application.
[0081] Figure 7 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0082] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0083] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be exchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually a category, and are not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship.
[0084] The device communication method provided by the embodiments of the present application will be described in detail below with reference to the drawings, specific embodiments and application scenarios.
[0085] Referring to Figure 1 , Figure 1 A step flow chart of a device communication method provided by an embodiment of the present application is shown, as Figure 1 shown, specifically comprising the following steps:
[0086] Step 101, generating a noise signal based on a mainboard clock signal; the noise signal is used to interfere with the mainboard clock signal sent by a target device to a security card.
[0087] In the embodiments of the present application, the target device can be a baseboard management controller, the target device can be connected with a dedicated server and a security card, the security card can be used to monitor the communication activities between the target device and the dedicated server, and the security card can receive a mainboard clock signal and a data signal. The security card can interpret the data signal based on the clock signal. When the security card interprets the information corresponding to the data signal, the security card can prevent the target device from communicating with the dedicated server. Therefore, in order to realize the communication between the target device and the dedicated server, a noise signal can be generated, and since the frequency, amplitude, phase and other characteristics of the data signal are often changed, the noise signal corresponding to the mainboard clock signal can be generated based on the mainboard clock signal, and the noise signal can interfere with the mainboard clock signal when the target device sends the mainboard clock signal to the security card.
[0088] In step 102, the noise signal is sent to a target port of the security card; wherein the target port is used for the security card to monitor the running state of the target device.
[0089] In the embodiments of the present application, after the noise signal corresponding to the mainboard clock signal is obtained, the noise signal can be sent to the target port of the security card. The target port can be a receiving port of the security card for receiving the mainboard clock signal from the target device. The noise signal can be sent synchronously when the target device sends the mainboard clock signal to the security card. If the synchronous sending is not correctly performed during the sending process, the initial phase of the noise signal can be adaptively adjusted to achieve the effect of synchronous sending.
[0090] In step 103, a first signal is determined based on a first access instruction sent by a second terminal and the target device.
[0091] In the embodiments of the present application, the second terminal can be a terminal device directly controlled by a user, and the second terminal and the first terminal can be connected through a wireless communication module. The second terminal can send a first access instruction to the first terminal through the wireless communication module. The second terminal can first generate the first access instruction, and then send the first access instruction to the wireless communication module of the second terminal. The wireless communication module of the second terminal can encode the first access instruction and send the encoded signal, and the wireless communication module of the first terminal can receive the encoded signal and decode the signal, so as to obtain the first access instruction. The first terminal can access the related information in the target device according to the content of the first access instruction after obtaining the first access instruction. After obtaining the related information, the first terminal can encode the information, so as to obtain the first signal.
[0092] In step 104, the first signal is sent to the second terminal based on a preset wireless communication protocol and a preset transmission frequency.
[0093] In the embodiment of the present application, after obtaining the first signal, the wireless communication protocol and the transmission frequency used for communication between the first terminal and the second terminal can be preset, and then the first signal can be sent to the second terminal based on the preset wireless communication protocol and at the preset transmission frequency. After receiving the first signal, the wireless communication module of the second terminal can decode the first signal, so that the relevant information corresponding to the first access instruction can be obtained, thereby completing the communication between the first terminal and the second terminal.
[0094] In the embodiment of the present application, the noise signal is generated based on the mainboard clock signal; the noise signal is used to interfere with the clock signal sent by the target device to the security card; the noise signal is sent to the target port of the security card; the target port is used for the security card to monitor the running state of the target device; the first signal is determined based on the first access instruction sent by the second terminal and the target device; the first signal is sent to the second terminal based on the preset wireless communication protocol and the preset transmission frequency. The monitoring effect of the security card on the target device can be shielded, so that the remote access of the user to the target device can be realized, the communication process is simplified, and the time cost and the labor cost are saved.
[0095] As shown in Figure 2 , the method provided by the embodiment of the present application can include: Figure 2
[0096] Step 201, obtaining a first communication state of the security card; the first communication state includes a transceiving state and a receiving state.
[0097] In the embodiment of the present application, the security card can have two communication states, which are the transceiving state and the receiving state. In the transceiving state, the security card can receive external signals and also can send signals to the outside; in the receiving state, the security card can only receive external signals. Therefore, after the security card is powered on, the first communication state of the security card can be obtained. The security card can be loaded with a basic input output system (BIOS), and within a period of time after the security card is powered on, the basic input output system can be in a starting stage, at this time, the security card can be in the receiving state, and when the basic input output system is started, the security card can be in the transceiving state.
[0098] Step 202, in the case that the first communication state is the receiving state, generating a noise signal based on a mainboard clock signal.
[0099] In the embodiment of the present application, when the communication state of the security card is the receiving state, the communication bus of the security card can be in the free state, at this time, the noise signal can be generated by the first terminal according to the mainboard clock signal. The noise signal can be used to interfere with the mainboard clock signal received by the security card.
[0100] Specifically, in step 202, the following sub-steps can be included:
[0101] Sub-step 2021, obtaining the first phase, the first frequency and the first amplitude value of the mainboard clock signal.
[0102] In the embodiment of the present application, in order to generate the noise signal that can be used for interference, it is necessary to determine various information of the mainboard clock signal, including the first phase, the first frequency, the first amplitude value and the duty cycle, etc. The clock signal can usually be a square wave signal including only high level information and low level information, and in general cases, the duty cycle of the clock signal can be 50%, so the duty cycle of the mainboard clock signal can be defaulted here. Therefore, the information of the mainboard clock signal obtained can include the first phase, the first frequency and the first amplitude value. The first phase can be the initial phase of the mainboard clock signal, or the phase value at any time.
[0103] Sub-step 2022, inverting the first phase to obtain the second phase.
[0104] In the embodiment of the present application, in order to make the noise signal have the function of interfering with the clock signal, the first phase of the mainboard clock signal can be inverted to obtain the second phase. At the same time, the second phase and the first phase can be opposite numbers, that is, the sum of the second phase and the first phase can be 0.
[0105] Sub-step 2023, generating the noise signal based on the second phase, the first frequency and the first amplitude value.
[0106] In the embodiment of the present application, in the case where the second phase, the first frequency and the first amplitude value have been determined, the noise signal can be generated in combination with the defaulted duty cycle. The frequency, amplitude value and duty cycle of the noise signal are the same as those of the mainboard clock signal, and the phase is opposite, so the noise signal has the ability to interfere with the mainboard clock signal. It should be noted that in the case where the duty cycle of the mainboard clock signal is other values, the duty cycle of the noise signal can be set to be complementary to the duty cycle of the mainboard clock signal, that is, the sum of the duty cycle of the noise signal and the duty cycle of the mainboard clock signal is 1, at this time, the duty cycle of the mainboard clock signal can be included in the information used to generate the noise signal. In addition, a phase-locked loop can be used to stabilize the phase of the noise signal.
[0107] In the embodiment of the present application, Figure 3It is a general schematic diagram of phase-locked loop. The working principle of phase-locked loop is to detect the phase difference between the input signal and the output signal, and convert the detected phase difference signal into a voltage signal output through a phase detector, filter the voltage signal output through a low-pass filter to form a control voltage of a voltage-controlled oscillator, control the frequency of the oscillator output signal, and feedback the frequency and phase of the oscillator output signal to the phase detector through a feedback path. When the frequency of the output signal is proportional to the frequency of the input signal, the output voltage and the input voltage maintain a fixed phase difference value, so that the phase of the output voltage and the input voltage is locked.
[0108] In the embodiment of the present application, by acquiring the first phase, the first frequency and the first amplitude value of the mainboard clock signal, the first phase is inverted to obtain the second phase, and the noise signal opposite to the mainboard clock signal can be generated based on the second phase, the first frequency and the first amplitude value, and the interference performance of the noise signal is further improved.
[0109] In addition, step 202 can further include the following sub-steps:
[0110] Sub-step A1, in the case where the first communication state is the receiving state, acquiring the mainboard time.
[0111] In the embodiment of the present application, in the case where the first communication state of the security card is the receiving state, the mainboard time can also be acquired to determine the time information of the first terminal.
[0112] Sub-step A2, setting the security card time based on the mainboard time and a preset time length; wherein the difference between the security card time and the mainboard time is equal to the preset time length.
[0113] In the embodiment of the present application, a preset time length can be calibrated, and after the mainboard time is acquired, the security card time can be set according to the mainboard time and the preset time length, and the difference between the security card time and the mainboard time can be the preset time length. It should be noted that the security card time can be lagging compared to the mainboard time, that is, the time corresponding to the time indicated by the mainboard time after the time period corresponding to the preset time length can be the time indicated by the security card. For the time indicated by the mainboard time, the time indicated by the security card belongs to the "future time".
[0114] In the embodiment of the present application, by acquiring the mainboard time in the case where the first communication state is the receiving state, and setting the security card time based on the mainboard time and the preset time length, wherein the difference between the security card time and the mainboard time is equal to the preset time length, the security card can not generate a detection record, and the interference effect on the security card is further enhanced.
[0115] In the embodiments of the present application, the first communication state of the security card is acquired, the first communication state includes a transceiving state and a receiving state, and in the case that the first communication state is the receiving state, a noise signal is generated based on the mainboard clock signal. The noise signal can be generated when the security card is in the receiving state, thereby improving the availability of the noise signal.
[0116] In step 203, the noise signal is sent to a target port of the security card, and the target port is used to monitor the running state of the target device.
[0117] In the embodiments of the present application, the security card can be connected with the target device through the target port, so that the mainboard clock signal sent by the target device can be obtained. After the noise signal is acquired, the noise signal can be sent to the target port, so that the mainboard clock signal can be interfered, and then the security card receiving the mainboard clock signal can be interfered. The noise signal can be transmitted based on a phase-locked loop, that is, the noise signal transmitted by the phase-locked loop can continuously receive the signal of the communication bus slot of the security card during the loading and starting of the operating system in the starting process, and an inverted noise signal can be output at the same time, so as to ensure that the security card does not detect the signal of the transmission end of the BMC network port during the whole process. The transmission principle of the phase-locked loop controlled by the script is as follows:
[0118] Suppose the transfer function of the phase-locked loop is H(s), the noise power density of the input reference signal, that is, the security card signal, is N in , the noise power density of the pressure cavity oscillator V CO is N vco , the noise power density of the loop filter is N lp , and the crystal clock signal is N OSC . The output noise power density N out can be represented as:
[0119] N out = |H(jω)|2 × (N in + N vco + N lp +N OSC ) (Formula 1)
[0120] In formula 1, |H(jω)|2 is the square of the amplitude-frequency response of the transfer function of the phase-locked loop at the frequency ω.
[0121] Specifically, in step 203, the following sub-steps can be included:
[0122] Sub-step 2031, receiving the connection request instruction sent by the second terminal.
[0123] In the embodiments of the present application, the connection request instruction sent by the second terminal can be received before the noise signal is sent to the target port of the security card. The connection request instruction can represent the connection intention of the second terminal to the target device.
[0124] In response to the connection request instruction, connection information of the target device is sent to the second terminal based on the connection request instruction in substep 2032. The connection information is used for the second terminal to establish a connection with the target device.
[0125] In the embodiments of the present application, the first terminal can request the corresponding connection information of the target device in response to the connection request from the second terminal, wherein the connection information is used for the second terminal to establish a connection with the target device. After obtaining the connection information of the target device, the connection information can be sent to the second terminal.
[0126] In substep 2033, a connection information feedback signal sent by the second terminal is received. The connection information feedback signal is used to indicate the connection state of the second terminal and the target device.
[0127] In the embodiments of the present application, after receiving the connection information of the target device, the second terminal can establish a connection with the target device according to the connection information, and send a connection information feedback signal to the first terminal. The connection information feedback signal is used to indicate the connection state of the second terminal and the target device, i.e., whether the second terminal and the target device are successfully connected.
[0128] In substep 2034, the noise signal is sent to the target port of the security card when the connection information feedback signal indicates that the second terminal and the target device are successfully connected.
[0129] In the embodiments of the present application, when the connection information feedback signal indicates that the second terminal and the target device are successfully connected, the noise signal can be sent to the target port of the security card. The specific sending process can refer to the embodiments of step 203, which will not be described here.
[0130] In the embodiments of the present application, the connection information of the target device is sent to the second terminal based on the connection request instruction in response to the connection request instruction received by the second terminal, the connection information being used for the second terminal to establish a connection with the target device, the connection information feedback signal sent by the second terminal is received, the connection information feedback signal being used for indicating the connection state of the second terminal with the target device, and the noise signal is sent to the target port of the security card in the case that the connection information feedback signal indicates that the second terminal is successfully connected with the target device, so that whether an external device is connected with the target device can be confirmed before the noise signal is sent, and the power consumption of the first terminal can be saved.
[0131] In step 204, the first signal is determined based on the target device and the first access instruction sent by the second terminal.
[0132] In the embodiments of the present application, after the noise signal is sent to the target port of the security card, the first access instruction of the second terminal can be received, the access information corresponding to the first access instruction can be obtained from the target device based on the first access instruction, and the first signal can be generated based on the access information.
[0133] Specifically, in step 204, the following sub-steps can be included:
[0134] In sub-step 2041, the second signal sent by the second terminal is received and decoded to obtain the first access instruction, the second signal being obtained by encoding the first access instruction by the second terminal, and the second signal being sent by the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0135] In the embodiments of the present application, the second terminal can generate the first access instruction, encode the first access instruction to obtain the second signal, and then send the second signal, the first terminal can receive the second signal and decode the second signal to obtain the first access instruction. Since the first terminal can preset the wireless communication protocol and the transmission and reception frequency of the signal, the second terminal can send the second signal according to the preset wireless communication protocol and the preset transmission frequency when sending the second signal.
[0136] In sub-step 2042, the first reply instruction sent by the target device corresponding to the first access instruction is determined.
[0137] In the embodiments of the present application, since the first terminal can be pre-connected with the target device, after obtaining the first access instruction, the first terminal can request the target device for information corresponding to the first access instruction, and the target device can respond to the request and send the first terminal a first reply instruction generated based on the information corresponding to the first access instruction.
[0138] In substep 2043, the first reply instruction is encoded to obtain the first signal.
[0139] In the embodiments of the present application, after obtaining the first reply instruction, the first reply instruction can be encoded based on a preset wireless communication protocol, so that the first signal can be obtained.
[0140] In the embodiments of the present application, the first access instruction is obtained by receiving and decoding the second signal sent by the second terminal, wherein the second signal is obtained by encoding the first access instruction by the second terminal; the second signal is sent by the second terminal based on a preset wireless communication protocol and a preset transmission frequency, and the first reply instruction corresponding to the first access instruction sent by the target device is encoded to obtain the first signal. After the noise signal is transmitted, the communication between the second terminal and the target device can be realized based on the first terminal, and the communication efficiency in the presence of a security card is improved.
[0141] In addition, in step 204, the following substeps can also be included:
[0142] In substep B1, the second communication state of the target device is determined.
[0143] In the embodiments of the present application, the second communication state of the target device can be determined first. The second communication state can be the communication state of the target device with the second terminal, or the communication state of the target device with other external devices except the security card.
[0144] In substep B2, in the case that the second communication state indicates that the target device cannot communicate, the second phase is adjusted so that the second phase is opposite to the first phase, and the step of determining the second communication state of the target device is performed.
[0145] In the embodiments of the present application, when the target device cannot communicate with the external device, it indicates that the shielding of the security card does not take effect. At this time, the second phase of the noise signal can be adjusted so that the second phase is opposite to the first phase, and after adjusting the second phase, the second communication state of the target device is determined again.
[0146] Sub-step B3, in a case where the second communication state indicates that the target device is in normal communication, determining the first signal based on the first access instruction sent by the second terminal and the target device.
[0147] In embodiments of the present application, when the target device can communicate with the external device, the first signal can be determined based on the first access instruction and the target device. The related embodiment content of determining the first signal can refer to the embodiment content of step 204, which will not be described here.
[0148] In embodiments of the present application, by determining the second communication state of the target device, in a case where the second communication state indicates that the target device cannot communicate, the second phase is adjusted to be opposite to the first phase, and the step of determining the second communication state of the target device is performed, in a case where the second communication state indicates that the target device is in normal communication, the first signal is determined based on the first access instruction sent by the second terminal and the target device. In a case where the target device cannot communicate with the external device, the repair can be performed, thereby improving the reliability of the target device communicating with the external device.
[0149] Step 205, obtaining an environmental interference signal, and determining an interference frequency based on the environmental interference signal.
[0150] In embodiments of the present application, the first terminal can obtain the environmental interference signal of the environment where the target device is located, and then can analyze the environmental interference signal, thereby determining the corresponding interference frequency. Generally, the interference frequency of the environmental interference signal can be one or more frequency bands. In the area where the environmental interference signal is located, if there is a wireless communication activity, and the signal frequency of the communication activity is in the frequency band of the environmental interference signal, the wireless communication activity will not be able to proceed.
[0151] Step 206, determining the preset wireless communication protocol and the preset transmission frequency based on the interference frequency.
[0152] In embodiments of the present application, after obtaining the interference frequency corresponding to the environmental interference signal, the first terminal can determine the usable wireless communication protocol and signal transmission frequency, so that the frequency of the wireless communication signal can bypass the interference and shielding of the environmental interference signal.
[0153] Step 207, sending the first signal to the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0154] In the embodiments of the present application, after the available wireless communication protocol and the transmission frequency are determined, the first signal can be sent to the second terminal according to the wireless communication protocol and the transmission frequency, that is, the frequency of the first signal can be the preset transmission frequency, and the communication protocol for transmitting the first signal can be the preset wireless communication protocol.
[0155] In the embodiments of the present application, by acquiring the environmental interference signal, determining the interference frequency based on the environmental interference signal, determining the preset wireless communication protocol and the preset transmission frequency based on the interference frequency, and sending the first signal to the second terminal based on the preset wireless communication protocol and the preset transmission frequency, the communication between the first terminal and the second terminal can bypass the shielding of the environmental interference signal, and the stability and reliability of the communication activity are improved.
[0156] Optionally, in the embodiments of the present application, the preset wireless communication protocol includes a Bluetooth protocol, and / or the preset transmission frequency includes a terahertz frequency.
[0157] In the embodiments of the present application, by using the Bluetooth protocol and / or the terahertz frequency, the communication activity can avoid detection of the mobile hotspot (WI-FI) signal by the security card, and the communication signal can have strong penetration ability, and the convenience of the communication activity is improved.
[0158] In the embodiments of the present application, Figure 4 The schematic diagram of the communication between the devices provided in the embodiments of the present application is shown in the figure. In the figure, the second terminal can include a remote terminal, and the first terminal can include a baseband transmission processing unit, an intermediate frequency signal processing unit and a radio frequency sending unit. The second terminal can communicate with the radio frequency unit of the first terminal, the radio frequency unit can transmit the received external signal to the intermediate frequency signal processing unit, the intermediate frequency signal processing unit can send the processed signal to the baseband transmission processing unit after processing the signal, the baseband transmission processing unit can send the processed signal to the baseboard management controller and receive the signal returned by the baseboard management controller, the baseband transmission processing unit can send the returned signal to the intermediate frequency signal processing unit for processing, and then send it to the radio frequency unit for sending to the external device. In addition, the second terminal and the first terminal can also communicate through a repeater to realize a longer distance communication activity.
[0159] As Figure 5 shown, Figure 5Fig. 1 is a schematic diagram of a processing flow provided by an embodiment of the present application. As shown in Fig. 1, after the processing flow starts, first, power is supplied to a security card, then a connection between a second terminal and a target device is established through a first terminal, and it is determined whether the connection is successfully established. In the case that the connection establishment fails, it is determined whether a terahertz module works normally, if the terahertz module works normally, a frequency band is replaced, the terahertz module is reconnected, and then the security card is powered again, if the terahertz module works abnormally, the terahertz module is reconnected, and then the security card is powered again; in the case that the connection establishment succeeds, the second terminal can send information to the target device, the target device can send feedback information to the second terminal, and it is determined whether the feedback information is successfully sent. In the case that the feedback information sending fails, it is determined whether a system has an error, if the system has an error, it is determined whether the terahertz module works normally, if the system does not have an error, a frequency band of the terahertz module is replaced, the terahertz module is reconnected, and then the security card is powered again; in the case that the feedback information sending succeeds, the processing flow ends.
[0160] As shown in Fig. 1, Figure 6 Figure 6 Fig. 2 is a logic block diagram of a device communication apparatus provided by an embodiment of the present application. The apparatus 400 can include:
[0161] A generating module 401 is configured to generate a noise signal based on a mainboard clock signal; the noise signal is used to interfere with the mainboard clock signal sent by a target device to a security card;
[0162] A first sending module 402 is configured to send the noise signal to a target port of the security card; wherein the target port is used for the security card to monitor a running state of the target device;
[0163] A determining module 403 is configured to determine a first signal based on a first access instruction sent by a second terminal and the target device;
[0164] A second sending module 404 is configured to send the first signal to the second terminal based on a preset wireless communication protocol and a preset transmission frequency.
[0165] Optionally, the generating module 401 includes:
[0166] A first obtaining sub-module is configured to obtain a first communication state of the security card; the first communication state includes a transceiving state and a receiving state;
[0167] A first generating sub-module is configured to generate a noise signal based on a mainboard clock signal in the case that the first communication state is the receiving state.
[0168] Optionally, the apparatus further includes:
[0169] The first obtaining module is configured to obtain a mainboard time when the first communication state is the receiving state.
[0170] The setting module is configured to set a security card time based on the mainboard time and a preset time length, wherein a difference between the security card time and the mainboard time is equal to the preset time length.
[0171] Optionally, the generation module 401 comprises:
[0172] The second obtaining sub-module is configured to obtain a first phase, a first frequency and a first amplitude value of the mainboard clock signal.
[0173] The inversion sub-module is configured to perform inversion processing on the first phase to obtain a second phase.
[0174] The second generation sub-module is configured to generate the noise signal based on the second phase, the first frequency and the first amplitude value.
[0175] Optionally, the first sending module 402 comprises:
[0176] The first receiving sub-module is configured to receive a connection request instruction sent by the second terminal.
[0177] The first sending sub-module is configured to, in response to the connection request instruction, send, to the second terminal, connection information of the target device based on the connection request instruction, wherein the connection information is used for the second terminal to establish a connection with the target device.
[0178] The second receiving sub-module is configured to receive a connection information feedback signal sent by the second terminal, wherein the connection information feedback signal is used to indicate a connection state of the second terminal with the target device.
[0179] The second sending sub-module is configured to, in a case where the connection information feedback signal indicates that the second terminal is successfully connected with the target device, send the noise signal to a target port of the security card.
[0180] Optionally, the determination module 403 comprises:
[0181] The decoding sub-module is configured to receive a second signal sent by the second terminal and decode the second signal to obtain the first access instruction, wherein the second signal is obtained by encoding the first access instruction by the second terminal, and the second signal is sent by the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0182] The first determination sub-module is configured to determine a first reply instruction sent by the target device and corresponding to the first access instruction.
[0183] a coding submodule, configured to code the first reply instruction to obtain the first signal.
[0184] Optionally, the determining module 403 comprises:
[0185] a second determining submodule, configured to determine a second communication state of the target device;
[0186] a phase adjusting submodule, configured to, in a case where the second communication state indicates that the target device is unable to communicate, adjust the second phase so that the second phase is opposite to the first phase, and perform the step of determining the second communication state of the target device;
[0187] a third determining submodule, configured to, in a case where the second communication state indicates that the target device is able to communicate normally, determine the first signal based on the first access instruction sent by the second terminal and the target device.
[0188] Optionally, the second sending module 404 comprises:
[0189] a fourth determining submodule, configured to acquire an environmental interference signal, and determine an interference frequency based on the environmental interference signal;
[0190] a fifth determining submodule, configured to determine the preset wireless communication protocol and the preset transmission frequency based on the interference frequency;
[0191] a sending submodule, configured to send the first signal to the second terminal based on the preset wireless communication protocol and the preset transmission frequency.
[0192] Optionally, the preset wireless communication protocol comprises a Bluetooth protocol, and / or the preset transmission frequency comprises a terahertz frequency.
[0193] In summary, the device communication apparatus provided by the embodiment of the present application comprises a generating module configured to generate a noise signal based on a mainboard clock signal; the noise signal is used to interfere with the mainboard clock signal sent by a target device to a security card; a first sending module configured to send the noise signal to a target port of the security card; the target port is used for the security card to monitor a running state of the target device; a determining module configured to determine a first signal based on a first access instruction sent by a second terminal and the target device; and a second sending module configured to send the first signal to the second terminal based on a preset wireless communication protocol and a preset transmission frequency. The device communication apparatus can shield the monitoring effect of the security card on the target device, so that remote access of the target device by a user can be realized, the communication process between the first terminal and the target device is simplified, and time cost and labor cost are saved.
[0194] The device communication apparatus in the embodiments of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. For example, the electronic device can be a GPU BOX, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present application are not limited in this regard. The device communication apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, can be a Linux or Windows operating system, etc., or can be other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0195] The device communication apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, can be a Linux or Windows operating system, etc., or can be other possible operating systems, and the embodiments of the present application are not limited in this regard. The device communication apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, can be a Linux or Windows operating system, etc., or can be other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0196] The device communication apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, can be a Linux or Windows operating system, etc., or can be other possible operating systems, and the embodiments of the present application are not limited in this regard. Figures 1 to 3 The device communication apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, can be a Linux or Windows operating system, etc., or can be other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0197] Optionally, as shown in Figure 7 The device communication apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, can be a Linux or Windows operating system, etc., or can be other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0198] In embodiments of this application, the memory M02 can be used to store software programs and various data. The memory M02 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, applications or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory M02 may include volatile memory or non-volatile memory, or the memory x09 may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory M02 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0199] The processor M01 may include one or more processing units; optionally, the processor M01 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor M01.
[0200] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described device communication method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0201] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0202] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the device communication method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0203] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.
[0204] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to realize the processes of the device communication method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0205] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "includes a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of the functions shown or discussed, but can also include the functions performed in a substantially simultaneous manner or in the opposite order, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.
[0206] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a contribution to the related art. The computer software product is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0207] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. A device communication method, characterized by, The method applied to a first terminal comprises: generating a noise signal based on a mainboard clock signal; sending the noise signal to a target port of a security card on a server; wherein the target port is used to monitor the running state of a target device; determining a first signal based on a first access instruction sent by a second terminal and the target device; sending the first signal to the second terminal based on a preset wireless communication protocol and a preset transmission frequency; the generating of the noise signal based on the mainboard clock signal comprises: obtaining a first phase, a first frequency and a first amplitude value of the mainboard clock signal; performing inverse phase processing on the first phase to obtain a second phase; generating the noise signal based on the second phase, the first frequency and the first amplitude value.
2. The method of claim 1, wherein, the generating of the noise signal based on the mainboard clock signal comprises: obtaining a first communication state of the security card; the first communication state comprises a transceiving state and a receiving state; in the case that the first communication state is the receiving state, generating the noise signal based on the mainboard clock signal.
3. The method of claim 2, wherein, the method further comprises: in the case that the first communication state is the receiving state, obtaining a mainboard time; setting a security card time based on the mainboard time and a preset time length; wherein the difference between the security card time and the mainboard time is equal to the preset time length.
4. The method of claim 1, wherein, the sending of the noise signal to the target port of the security card comprises: receiving a connection request instruction sent by the second terminal; in response to the connection request instruction, sending connection information of the target device to the second terminal based on the connection request instruction; wherein the connection information is used for the second terminal to establish a connection with the target device; receiving a connection information feedback signal sent by the second terminal; wherein the connection information feedback signal is used to indicate the connection state of the second terminal with the target device; in the case that the connection information feedback signal indicates that the second terminal is successfully connected with the target device, sending the noise signal to the target port of the security card.
5. The method of claim 1, wherein, the determination of the first signal based on the first access instruction sent by the second terminal and the target device comprises: receiving a second signal sent by the second terminal and decoding the second signal to obtain the first access instruction; wherein the second signal is obtained by encoding the first access instruction by the second terminal; the second signal is sent by the second terminal based on the preset wireless communication protocol and the preset transmission frequency; determining a first reply instruction sent by the target device corresponding to the first access instruction; encoding the first reply instruction to obtain the first signal.
6. The method of claim 1, wherein, the determination of the first signal based on the first access instruction sent by the second terminal and the target device comprises: determining a second communication state of the target device; in the case that the second communication state indicates that the target device cannot communicate, adjusting the second phase so that the second phase is inverse to the first phase, and performing the step of determining the second communication state of the target device. In a case where the second communication state indicates that the target device is in normal communication, the first signal is determined based on the first access instruction sent by the second terminal and the target device.
7. The method of claim 1, wherein, The first signal is sent to the second terminal based on a preset wireless communication protocol and a preset transmission frequency. An environmental interference signal is acquired, and an interference frequency is determined based on the environmental interference signal. The preset wireless communication protocol and the preset transmission frequency are determined based on the interference frequency. The first signal is sent to the second terminal based on a preset wireless communication protocol and a preset transmission frequency.
8. The method of claim 1, wherein, The preset wireless communication protocol includes a Bluetooth protocol, and / or the preset transmission frequency includes a terahertz frequency.
9. An apparatus for communicating comprising: The device includes: A generation module configured to generate a noise signal based on a mainboard clock signal, the noise signal being used to interfere with the mainboard clock signal sent by a target device to a security card; A first sending module configured to send the noise signal to a target port of the security card on a server, the target port being used by the security card to monitor a running state of the target device; A determination module configured to determine a first signal based on a first access instruction sent by a second terminal and the target device; A second sending module configured to send the first signal to the second terminal based on a preset wireless communication protocol and a preset transmission frequency; The generation module includes: A second acquisition sub-module configured to acquire a first phase, a first frequency, and a first amplitude value of the mainboard clock signal; An inversion sub-module configured to perform inversion processing on the first phase to obtain a second phase; A second generation sub-module configured to generate the noise signal based on the second phase, the first frequency, and the first amplitude value.
10. An electronic device, comprising: The electronic device includes a processor and a memory, the memory storing a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the device communication method of any one of claims 1 to 8.
11. A readable storage medium, characterized by, The readable storage medium stores a program or instructions, and the program or instructions, when executed by a processor, implement the device communication method of any one of claims 1 to 8.
Citation Information
Patent Citations
setsukinseigyosochi
JP1976016198A
Communication method using a secure element and apparatus for performing the method
KR1020180118306A