Communication methods, devices, electronic equipment and storage media
By modulating communication signals using spread spectrum technology and combining error correction codes and power control, the problems of communication distance and stability between terminals and devices were solved, enabling stable long-distance communication even in situations with poor cellular signal.
Patent Information
- Application Number
- CN202310205867.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2043-03-06
AI Technical Summary
In existing technologies, it is difficult to balance communication distance and connection stability between terminals and devices. Cellular communication requires network traffic costs and has high signal requirements, while short-range communication has too short a distance and limited applicable environments.
Spread spectrum technology is used to modulate the communication signal. By adjusting the data length of the identification code and adding error correction codes, the spread spectrum gain is improved. Combined with power control and signal parameter detection, a stable long-distance connection is achieved.
Even in environments with poor cellular signal, stable communication connections between terminals and devices and communication distances of kilometers were achieved, reducing data transmission volume and improving connection stability.
Smart Images

Figure CN116208941B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, specifically relating to a communication method, apparatus, electronic device, and storage medium. Background Technology
[0002] Wireless control of devices by terminals is mainly achieved in two ways: one is that the terminal controls the device remotely through cellular communication technology, and the other is that the terminal controls the device through short-range communication technology.
[0003] Cellular communication technology requires users to pay for network traffic and has high requirements for network signal strength, while short-range communication technology has too short a communication distance and is applicable to fewer environments. The wireless control schemes in related technologies cannot take into account both the communication distance and connection stability between the terminal and the device. Summary of the Invention
[0004] The purpose of this application is to provide a communication method, apparatus, electronic device, and storage medium that improves the stability and communication distance of the communication connection between the terminal and the device, enabling a stable communication connection even in environments with poor cellular signal coverage.
[0005] In a first aspect, embodiments of this application provide a communication method applied to a first electronic device, comprising: modulating first communication data using a spreading code and an identification code to generate a first communication signal; adjusting the data length of the identification code during the transmission of the first communication signal through a first communication link to increase the spreading gain of the first communication signal until a second communication signal is received from a second electronic device, wherein the first communication signal is used to enable the second electronic device to transmit the second communication signal back to the first electronic device upon receiving the first communication signal; and establishing a communication connection with the second electronic device when the signal parameters of the second communication signal meet preset conditions.
[0006] Secondly, embodiments of this application provide a communication method applied to a second electronic device, comprising: upon receiving a first communication signal from a first electronic device, acquiring the signal strength of the first communication signal; and when the signal strength is greater than a preset threshold, sending a second communication signal to the first electronic device, wherein the second communication signal is used to establish a communication connection with the first electronic device, the second communication signal being a communication signal obtained by modulating second communication data, and the second communication data being response data of the first communication data.
[0007] Thirdly, embodiments of this application provide a communication device applied to a first electronic device, comprising: a modulation module for modulating first communication data using a spreading code and an identification code to generate a first communication signal; a first processing module for adjusting the data length of the identification code during the transmission of the first communication signal via a first communication link to increase the spreading gain of the first communication signal until a second communication signal is received from a second electronic device, wherein the first communication signal is used to enable the second electronic device to transmit the second communication signal back to the first electronic device upon receiving the first communication signal; and a first communication module for establishing a communication connection with the second electronic device when the signal parameters of the second communication signal meet preset conditions.
[0008] Fourthly, embodiments of this application provide a communication device applied to a second electronic device, comprising: a second processing module, configured to acquire the signal strength of the first communication signal upon receiving a first communication signal from a first electronic device; and a second communication module, configured to send a second communication signal to the first electronic device when the signal strength is greater than a preset threshold, wherein the second communication signal is used to establish a communication connection with the first electronic device, the second communication signal being a communication signal obtained by modulating second communication data, and the second communication data being response data of the first communication data.
[0009] Fifthly, embodiments of this application provide an electronic device, including: a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and when the program or instructions are executed by the processor, they implement the steps of the communication method as described in the first or second aspect.
[0010] In a sixth aspect, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the communication method as described in the first or second aspect.
[0011] In a seventh aspect, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor, the processor being used to run programs or instructions to implement the steps of the communication method as described in the first or second aspect.
[0012] Eighthly, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the communication method as described in the first or second aspect.
[0013] In this embodiment, the communication signal transmitted from the first electronic device to the second electronic device is used to control the operation of the second electronic device. Therefore, the data transmission volume of the first communication signal is low. Spread spectrum technology is used to enhance the communication connection between the first electronic device and the second electronic device by reducing the transmission rate, so that the first communication signal sent by the first electronic device to the second electronic device can achieve long-distance communication.
[0014] In this embodiment of the application, when the terminal controls the device via wireless communication, the amount of data transmitted for the control commands is relatively small. The terminal uses spread spectrum technology to spread the transmitted control signals, thereby improving the stability of the communication connection and the communication distance between the terminal and the device. This enables the communication signals sent by the terminal to cover the kilometer level and also enables a stable communication connection between the terminal and the device even in poor cellular signal environments. Attached Figure Description
[0015] Figure 1 One of the flowcharts of a communication method according to some embodiments of this application is shown;
[0016] Figure 2 This application provides a block diagram of radio frequency signals in a first electronic device according to some embodiments;
[0017] Figure 3 This application provides a block diagram of radio frequency signals in a second electronic device according to some embodiments;
[0018] Figure 4 A second flowchart of a communication method according to some embodiments of this application is shown;
[0019] Figure 5 This application provides a block diagram of radio frequency signals in a second electronic device according to some embodiments;
[0020] Figure 6 This application provides a block diagram of radio frequency signals in a first electronic device according to some embodiments;
[0021] Figure 7 A flowchart illustrating a remote vehicle control method provided in some embodiments of this application is shown;
[0022] Figure 8 One of the structural block diagrams of a communication device according to an embodiment of this application is shown;
[0023] Figure 9 A second structural block diagram of a communication device according to an embodiment of this application is shown;
[0024] Figure 10 A structural block diagram of an electronic device according to an embodiment of this application is shown;
[0025] Figure 11 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of this application. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0027] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0028] The following is in conjunction with the appendix Figure 1 To be continued Figure 11 The communication methods, devices, electronic devices, and storage media provided in this application will be described in detail through specific embodiments and application scenarios.
[0029] In some embodiments of this application, a communication method is provided, performed by a first electronic device. Figure 1 One of the flowcharts of a communication method according to some embodiments of this application is shown, such as Figure 1 As shown, the communication methods include:
[0030] Step 102: Modulate the first communication data using a spreading code and an identification code to generate a first communication signal;
[0031] In this embodiment of the application, the first communication data is a data signal, which includes the first communication data between the first electronic device and the second electronic device.
[0032] In this embodiment, the first communication signal is a communication signal obtained by spreading and modulating the first communication data. After receiving the first communication signal, the second electronic device can decode the first communication signal and read the first communication data in the first communication signal.
[0033] In this embodiment, the spreading code is used to spread spectrum modulate the first communication data. Spreading the first communication data using spreading technology increases the transmission distance of the received first communication signal.
[0034] In this embodiment, by modulating an identification code into the first communication data, the first electronic device and the second electronic device can be paired via the identification code. Specifically, after the second electronic device receives the first communication signal, it decodes the first communication signal to obtain the identification code. After successful pairing via the identification code, the second electronic device can read the first communication data in the first communication signal.
[0035] For example, the identification code can be a dynamic pseudo-random code, and a matching first electronic device and a matching second electronic device can generate a matching identification code.
[0036] Step 104: During the process of sending the first communication signal through the first communication link, the data length of the identification code is adjusted to increase the spread spectrum gain of the first communication signal until the second communication signal from the second electronic device is received. The first communication signal is used to enable the second electronic device to send the second communication signal back to the first electronic device when the first communication signal is received.
[0037] In this embodiment of the application, the second communication signal is a communication signal of the second electronic device responding to the first communication data sent by the first electronic device. When the first electronic device receives the second communication signal, the first electronic device can determine that the first communication data has been successfully received by the second electronic device.
[0038] In this embodiment of the application, the first communication link is the uplink of the first electronic device, used to modulate the first communication data and transmit the modulated first communication signal.
[0039] For example, the first communication link is a Bluetooth communication link, and the first communication link transmits the first communication signal by modulating the first communication signal using GFSK, 8DPSK, or Pi / 4DQPSK.
[0040] Specifically, during the transmission of the first communication signal, the length of the identification code modulated into the first communication signal is continuously adjusted. For example, the first electronic device is a mobile phone, the second electronic device is a vehicle, and the identification code is a pseudo-random code. After the mobile phone begins transmitting the first communication signal, the length of the pseudo-random code is gradually increased, thereby improving the spreading gain of the first communication signal. For example, adjusting the length of the pseudo-random code from 1 bit to 100 bits can adjust the spreading gain of the first communication signal from 0 dB to 20 dB. The pseudo-random code increases from small to large between 1 bit and 100 bits, adjusting the PA gain level to complete the scanning of the vehicle.
[0041] Figure 2 The following is a block diagram of radio frequency signals in a first electronic device provided by some embodiments of this application, such as... Figure 2 As shown, exemplarily, the first electronic device modulates the first communication signal, spreading code, and pseudo-random code using a signal modulator to generate the first communication signal, and then amplifies and outputs the first communication signal through amplifier 204. A pseudo-randomly generated transition signal is transmitted to the signal modulator for modulation via carrier signal generator 206. Amplifier 204 is a signal amplifier, and the signal modulator is a GFSK, 8DPSK, or Pi / 4DQPSK modulator 202.
[0042] Figure 3 The following are block diagrams of radio frequency signals in a second electronic device provided by some embodiments of this application, such as... Figure 3 As shown, exemplarily, after the second electronic device receives the first communication signal through the low-noise amplifier 302, it demodulates the first communication signal through the signal demodulator, generates a transition signal through pseudo-random generation, and transmits it to the signal demodulator for comparison and pairing through the carrier signal generator 306. After successful pairing, the demodulated second communication data is despread. The signal demodulator is a GFSK, 8DPSK, or Pi / 4DQPSK demodulator 304.
[0043] Step 106: If the signal parameters of the second communication signal meet the preset conditions, establish a communication connection with the second electronic device.
[0044] In this embodiment, the signal parameters of the second communication signal include parameters such as signal strength and signal transmission speed. The first electronic device can determine the quality and stability of signal transmission between the first electronic device and the second electronic device based on the signal parameters of the second communication signal. When the first electronic device determines that the signal parameters of the second communication signal meet preset conditions, it determines that the communication between the first electronic device and the second electronic device is relatively stable, and thus establishes a stable communication connection with the second electronic device.
[0045] Specifically, the amount of data in the first communication signal sent by the first electronic device is less than the preset amount of data, that is, the amount of data in the first communication signal that the first electronic device needs to send is low. Therefore, by modulating the spreading code in the first communication data and using an identification code that can adjust the data length, the transmission distance of the first communication signal can be increased, and kilometer-level data transmission between the first electronic device and the second electronic device can be realized.
[0046] For example, the first electronic device is a mobile phone, and the second electronic device is a car. After the mobile phone receives the second communication signal from the car, it detects the signal strength of the second communication signal. If the strength of the second communication signal is greater than a strength threshold, the mobile phone establishes a communication connection with the car. The car transmits video data and location data of its environment, while the mobile phone continues to send control commands to the car to control its operation, thus realizing remote control of the car.
[0047] In this embodiment, the communication signal transmitted from the first electronic device to the second electronic device is used to control the operation of the second electronic device. Therefore, the data transmission volume of the first communication signal is low. Spread spectrum technology is used to enhance the communication connection between the first electronic device and the second electronic device by reducing the transmission rate, so that the first communication signal sent by the first electronic device to the second electronic device can achieve long-distance communication.
[0048] In this embodiment of the application, when the terminal controls the device via wireless communication, the amount of data transmitted for the control commands is relatively small. The terminal uses spread spectrum technology to spread the transmitted control signals, thereby improving the stability of the communication connection and the communication distance between the terminal and the device. This enables the communication signals sent by the terminal to cover the kilometer level and also enables a stable communication connection between the terminal and the device even in poor cellular signal environments.
[0049] In some embodiments of this application, before modulating the first communication data with a spreading code and an identification code to generate the first communication signal, the method further includes adding an error correction code to the data packet header of the first communication data.
[0050] In this embodiment of the application, by adding error correction codes to the header of the first communication data in the first communication signal, the reliability of the first communication data in the first communication signal can be improved.
[0051] Specifically, the error correction code is a forward error correction code. By adding a forward error correction code to the first communication data in the first communication signal, the second electronic device can perform error correction processing on the first communication signal when it receives it, thereby improving the accuracy of the first communication signal received by the second electronic device.
[0052] like Figure 2 and Figure 3 As shown, before modulating the first communication data, the first electronic device adds forward error correction codes to the first communication data. After decoding the received first communication signal, the second electronic device can correct errors in the first communication signal by adding forward error correction codes, thereby improving the error correction capability of the second electronic device for the received first communication signal.
[0053] For example, the first electronic device is a mobile phone, the second electronic device is a car, the first communication data is the control command sent by the mobile phone to the car, and forward error correction code is added to the first communication signal. After the car receives the first communication signal, if an error is found in the first communication signal, the car receiver can reconstruct the first communication data in the first communication signal to realize the error correction of the first communication data by the car.
[0054] In this embodiment of the application, by adding error correction codes to the first communication data before modulating the first communication signal, the error correction capability of the receiving signal of the second electronic device can be improved, and the receiving gain of the second electronic device can be increased.
[0055] In some embodiments of this application, the data size of the identification code ranges from 1 bit to 100 bits.
[0056] In this embodiment of the application, both the first electronic device and the second electronic device are capable of generating an identification code. When the first electronic device sends a first communication signal to the second electronic device, the identification code is modulated into the first communication signal, so that the second electronic device can pair with the first electronic device through the identification code obtained after decoding the first communication signal.
[0057] Specifically, the first electronic device adds the spreading code to the modulation and increases the length of the identification code from 1 bit to 100 bits, so that the spreading gain ranges from 1 dB to 20 dB. The spreading code is a DSSS spreading code using sequence spread spectrum technology, and the identification code is a pseudo-random identification code.
[0058] In this embodiment of the application, by adding the spreading code and the identification code to the modulation to generate the first communication signal, and continuously increasing the length of the identification code during the output of the first communication signal, the first electronic device can increase the transmission distance of the first communication signal while maintaining low power consumption and high integration.
[0059] In some embodiments of this application, during the process of transmitting the first communication signal through the first communication link, before adjusting the data length of the identification code until the second communication signal from the second electronic device is received, the method further includes: determining the transmission loss value during the transmission of the first communication signal; determining the first transmission power of the first communication signal based on the transmission loss value; and transmitting the first communication signal through the first communication link at the first transmission power.
[0060] In this embodiment of the application, the transmission loss value is the loss caused by the transmission of the first communication signal in space. Based on the transmission loss value of the first communication signal in space, the first transmission power required for the first communication signal can be calculated, and the first electronic device can be controlled to send the first communication signal with the calculated first transmission power.
[0061] Specifically, the first transmission power of the first communication signal is related to the signal receiving sensitivity and transmission loss value of the second electronic device.
[0062] For example, the first transmission power satisfies the following relationship with the signal receiving sensitivity and transmission loss value of the second electronic device:
[0063] PTx(dBm)-PRx(dBm)=FL(dB)+ATT(dB)(1);
[0064] Where PTx is the first transmission power, PRx is the signal receiving sensitivity of the second electronic device, ATT is the actual environmental attenuation increment, and FL is the transmission loss value.
[0065] In this embodiment of the application, when the transmission loss value is obtained, the first transmission power corresponding to the first communication signal can be calculated through the above-mentioned relationship.
[0066] Specifically, the transmission loss value can be calculated by using the operating frequency of the first electronic device that transmits the first communication signal and the ideal spatial transmission distance.
[0067] For example, the transmission loss value satisfies the following relationship with the operating frequency and the ideal spatial transmission distance (2):
[0068] FL(dB)=32.45+20lgF(MHz)+20lgR(km)(2);
[0069] Where FL is the transmission loss value, F is the operating frequency, and R is the ideal spatial transmission distance.
[0070] In this embodiment of the application, the first electronic device calculates the transmission loss value and, based on the transmission loss value, calculates the first transmission power for transmitting the first communication signal. By outputting the first communication signal according to the first transmission power, the first electronic device can achieve long-distance transmission of the first communication signal.
[0071] In some embodiments of this application, the operating frequency and ideal spatial transmission distance are data obtained through prior experiments, as shown in Table 1 below:
[0072] Table 1
[0073]
[0074] As shown in Table 1, an additional 34dB of loss is required to achieve long-distance communication between the first electronic device and the second electronic device. This 34dB loss can be improved by increasing the first transmission power by 17dB to 32dBm, by adding an error correction code by 6dB, and by adding a spreading code and adjusting the data volume in the identification code by 10dB.
[0075] In any of the above embodiments, after establishing a communication connection with the second electronic device when the signal parameters of the second communication signal meet the preset conditions, the method further includes: receiving operating data from the second electronic device; sending control instructions to the second electronic device based on the operating data to control the operation of the second electronic device, wherein the control instructions are instructions determined according to the operating data; wherein the operating data includes at least one of the following: positioning data and video data.
[0076] In this embodiment of the application, after the first electronic device and the second electronic device establish a communication connection, that is, when the first electronic device and the second electronic device can transmit signals stably, the second electronic device transmits its own operating data to the first electronic device, so that the first electronic device can generate control commands based on the operating data and send the control commands to the second electronic device to control the operation of the second electronic device.
[0077] For example, the first electronic device is a mobile phone, and the second electronic device is a vehicle. The user remotely controls the vehicle via the mobile phone. Once a communication connection is established between the mobile phone and the vehicle, the vehicle transmits its location data and collected video data to the mobile phone, which then outputs this data, allowing the user to stay informed about the vehicle's current status. The user can send control commands to the vehicle via the mobile phone to control its operation. The first electronic device can be a mobile phone, tablet, or similar device, while the second electronic device can be a remotely wirelessly controllable device such as a drone.
[0078] In this embodiment of the application, after the first electronic device and the second electronic device are successfully paired, the second electronic device can transmit a large amount of running data to the first electronic device, so that the user can control the second electronic device through the first electronic device.
[0079] In some embodiments of this application, a communication method is provided, applied to a second electronic device. Figure 4 A second flowchart of a communication method according to some embodiments of this application is shown, such as... Figure 4 As shown, the communication methods include:
[0080] Step 402: Upon receiving a first communication signal from the first electronic device, obtain the signal strength of the first communication signal;
[0081] In this embodiment of the application, the first communication signal is a communication signal sent from the first electronic device to the second electronic device, and the first communication signal includes first communication data.
[0082] For example, the first electronic device is a mobile phone, the second electronic device is a vehicle, and the data signal is a control command sent from the mobile phone to the vehicle.
[0083] Step 404: When the signal strength is greater than a preset threshold, a second communication signal is sent to the first electronic device. The second communication signal is used to establish a communication connection with the first electronic device. The second communication signal is a communication signal obtained by modulating the second communication data. The second communication data is the response data of the first communication data.
[0084] In this embodiment of the application, the second communication signal is a communication signal sent back from the second electronic device to the first electronic device. The second communication signal includes second communication data, which is used to respond to the first communication data.
[0085] Specifically, when the second electronic device receives the first communication signal sent by the first electronic device, it detects the signal strength of the received first communication signal. If the strength of the first communication signal is detected to be greater than a preset threshold, it determines that it can communicate with the first electronic device, and then sends back a second communication signal as a response signal to the first electronic device.
[0086] In this embodiment, the second electronic device detects the signal strength of the communication signal sent by the first electronic device. By analyzing the numerical relationship between this signal strength and a preset threshold, it determines whether the second electronic device can maintain a stable communication connection with the first electronic device. If it is determined that the first electronic device can maintain a stable communication connection with the second electronic device, it sends back a response signal. This enables the second electronic device to detect the quality of the communication signal sent by the first electronic device, avoiding communication with the first electronic device when the signal quality is poor.
[0087] In this embodiment, the second communication data is the response data of the first communication data. When the second electronic device responds to the first communication signal with the second communication signal, the second communication data is amplified and modulated to obtain the corresponding second communication signal, ensuring that the second communication signal can be transmitted over a long distance. This enables long-distance communication between the first electronic device and the second electronic device, thereby improving the stability and communication distance of the communication connection between the terminal and the device. It also enables a stable communication connection between the terminal and the device even in poor cellular signal environments.
[0088] In some embodiments of this application, when the signal strength is greater than a preset threshold, sending a second communication signal to the first electronic device includes: when the signal strength is greater than the preset threshold, modulating the second communication data by broadband modulation to obtain the second communication signal; and sending the second communication signal to the first electronic device through the second communication link at a second transmission power.
[0089] In this embodiment, when the second electronic device detects that the signal strength of the first communication signal is greater than a preset threshold, it modulates the second communication data using an OFDM broadband modulator to obtain a response signal for the first communication signal, i.e., the second communication signal. After generating the second communication signal, it sends the second communication signal to the first electronic device at a second transmission power to achieve a response to the first communication signal sent by the first electronic device.
[0090] Figure 5 The following are block diagrams of radio frequency signals in a second electronic device provided by some embodiments of this application, such as... Figure 5 As shown, the second electronic device amplifies and modulates the second communication data through a signal modulator. The modulated second communication signal is then amplified by amplifier 504 and transmitted to the first electronic device. Amplifier 504 is a signal amplifier, and signal modulator is OFDM broadband modulation 502.
[0091] Figure 6 The following is a block diagram of radio frequency signals in a first electronic device provided by some embodiments of this application, such as... Figure 6 As shown, after the first electronic device receives the second communication signal, it passes through a low-noise amplifier 602 and then demodulates it through a signal demodulator to obtain the second communication data. The signal demodulator is an OFDM broadband demodulator 604.
[0092] For example, the second electronic device is equipped with a power amplifier, which can amplify the transmission power of the output second communication signal, thereby enabling the second communication signal to be transmitted to the first electronic device over a long distance.
[0093] Figure 7 The diagram illustrates a flowchart of a remote vehicle control method provided in some embodiments of this application. In some embodiments, the first electronic device can be a mobile phone, and the second electronic device can be a vehicle. The first electronic device has a vehicle control program installed, and the user remotely controls the vehicle by operating the vehicle control program in the first electronic device. The remote vehicle control method includes:
[0094] Step 701: The mobile phone runs the car control program;
[0095] Step 702: If the mobile phone detects that the vehicle threshold signal exceeds the threshold, it attempts to connect to the vehicle's Wi-Fi and determines whether the connection is successful. If the result is yes, proceed to step 712; otherwise, proceed to step 703.
[0096] Step 703: Turn off Wi-Fi connection to the vehicle system on your mobile phone;
[0097] Step 704: Enter the long-distance communication module, set the wifi to DSSS 1M 2PSK, add forward error correction code to the first communication data to increase the receiving gain by 6dB, and adjust the length of the identification code from 1 bit to 100 bits to achieve a spread spectrum gain of 0 to 20dB.
[0098] Step 705: Gradually increase the identification code length from 1 bit to 100 bits, adjust the PA gain level, and attempt to scan the vehicle terminal. The vehicle receives the information through the uplink communication link.
[0099] Step 706: Assess whether the mobile signal strength is sufficient for access. If the result is yes, proceed to step 707; otherwise, return to step 704.
[0100] Step 707: The vehicle's downlink communication link is activated in the broadband OFDM model. The vehicle replies to the mobile phone's second communication signal through the downlink communication link and establishes a communication connection with the mobile phone.
[0101] Step 708: Determine whether the communication connection meets the conditions for autonomous driving of the vehicle. If the result is yes, proceed to step 709; otherwise, proceed to step 711.
[0102] Step 709: The mobile phone obtains the environmental information of the car based on the video transmitted back through the downlink communication link, and transmits the car control command through the uplink communication to remotely control the car's driving speed and direction, so as to realize the remote control of the car to reach the destination.
[0103] Step 710: The mobile phone controls the car to drive to the designated location via the uplink and downlink communication links;
[0104] Step 711: Abandon connection. The mobile device outputs that there is no available remote car wireless network and the car cannot be controlled.
[0105] Step 712: The mobile phone establishes a connection with the car's central control via Wi-Fi.
[0106] In this embodiment, the uplink communication link is the first communication link and the downlink communication link is the second communication link.
[0107] The communication method provided in this application can be executed by a communication device. This application uses a communication device executing a communication method as an example to illustrate the communication device provided in this application.
[0108] In some embodiments of this application, a communication device is provided, applied to a first electronic device. Figure 8 One of the structural block diagrams of a communication device according to an embodiment of this application is shown, such as Figure 8 As shown, the communication device 800 includes:
[0109] The modulation module 802 is used to modulate the first communication data using a spreading code and an identification code to generate a first communication signal.
[0110] The first processing module 804 is used to adjust the data length of the identification code during the transmission of the first communication signal through the first communication link in order to increase the spread spectrum gain of the first communication signal until the second communication signal from the second electronic device is received. The first communication signal is used to enable the second electronic device to transmit the second communication signal back to the first electronic device when the first communication signal is received.
[0111] The first communication module 806 is used to establish a communication connection with the second electronic device when the signal parameters of the second communication signal meet preset conditions.
[0112] In this embodiment, the communication signal transmitted from the first electronic device to the second electronic device is used to control the operation of the second electronic device. Therefore, the data transmission volume of the first communication signal is low. Spread spectrum technology is used to enhance the communication connection between the first electronic device and the second electronic device by reducing the transmission rate, so that the first communication signal sent by the first electronic device to the second electronic device can achieve long-distance communication.
[0113] In this embodiment of the application, when the terminal controls the device via wireless communication, the amount of data transmitted for the control commands is relatively small. The terminal uses spread spectrum technology to spread the transmitted control signals, thereby improving the stability of the communication connection and the communication distance between the terminal and the device. This enables the communication signals sent by the terminal to cover the kilometer level and also enables a stable communication connection between the terminal and the device even in poor cellular signal environments.
[0114] In some embodiments of this application, the first processing module 804 is used to add error correction codes to the header of the first communication data packet.
[0115] In this embodiment of the application, by adding error correction codes to the first communication data before modulating the first communication signal, the error correction capability of the receiving signal of the second electronic device can be improved, and the receiving gain of the second electronic device can be increased.
[0116] In some embodiments of this application, the data size of the identification code ranges from 1 bit to 100 bits.
[0117] In this embodiment of the application, by adding the spreading code and the identification code to the modulation to generate the first communication signal, and continuously increasing the length of the identification code during the output of the first communication signal, the first electronic device can increase the transmission distance of the first communication signal while maintaining low power consumption and high integration.
[0118] In some embodiments of this application, the first processing module 804 is used to determine the transmission loss value during the first communication data transmission process;
[0119] The first processing module 804 is used to determine the first transmission power of the first communication signal based on the transmission loss value;
[0120] The first communication module 806 is used to transmit a first communication signal at a first transmission power through a first communication link.
[0121] In this embodiment of the application, the first electronic device calculates the transmission loss value and, based on the transmission loss value, calculates the first transmission power for transmitting the first communication signal. By outputting the first communication signal according to the first transmission power, the first electronic device can achieve long-distance transmission of the first communication signal.
[0122] In some embodiments of this application, the first communication module 806 is used to receive operating data from the second electronic device;
[0123] The first processing module 804 is used to send control commands to the second electronic device based on the running data, so as to control the operation of the second electronic device. The control commands are commands determined according to the running data.
[0124] The operational data includes at least one of the following: location data and video data.
[0125] In this embodiment of the application, after the first electronic device and the second electronic device establish a communication connection, that is, when the first electronic device and the second electronic device are able to transmit signals stably, the second electronic device transmits its own operating data to the first electronic device, so that the first electronic device can control the operation of the second electronic device based on the operating data.
[0126] In this embodiment of the application, after the first electronic device and the second electronic device are successfully paired, the second electronic device can transmit a large amount of running data to the first electronic device, so that the user can control the second electronic device through the first electronic device.
[0127] In some embodiments of this application, a communication device is provided, applied to a second electronic device. Figure 9 A second structural block diagram of a communication device according to an embodiment of this application is shown, such as... Figure 9 As shown, the communication device 900 includes:
[0128] The second processing module 902 is used to obtain the signal strength of the first communication signal when it receives the first communication signal from the first electronic device.
[0129] The second communication module 904 is used to send a second communication signal to the first electronic device when the signal strength is greater than a preset threshold. The second communication signal is used to establish a communication connection with the first electronic device. The second communication signal is a communication signal obtained by modulating the second communication data, and the second communication data is the response data of the first communication data.
[0130] In this embodiment, the second electronic device detects the signal strength of the communication signal sent by the first electronic device. By analyzing the numerical relationship between this signal strength and a preset threshold, it determines whether the second electronic device can maintain a stable communication connection with the first electronic device. If it is determined that the first electronic device can maintain a stable communication connection with the second electronic device, it sends back a response signal. This enables the second electronic device to detect the quality of the communication signal sent by the first electronic device, avoiding communication with the first electronic device when the signal quality is poor.
[0131] In this embodiment, the second communication data is the response data of the first communication data. When the second electronic device responds to the first communication signal with the second communication signal, the second communication data is amplified and modulated to obtain the corresponding second communication signal, ensuring that the second communication signal can be transmitted over a long distance. This enables long-distance communication between the first electronic device and the second electronic device, thereby improving the stability and communication distance of the communication connection between the terminal and the device. It also enables a stable communication connection between the terminal and the device even in poor cellular signal environments.
[0132] In some embodiments of this application, the second processing module 902 is used to modulate the second communication data through broadband modulation to obtain the second communication signal when the signal strength is greater than a preset threshold.
[0133] The second communication module 904 is used to transmit a second communication signal to the first electronic device via a second communication link at a second transmission power.
[0134] In this embodiment, when the second electronic device detects that the signal strength of the first communication signal is greater than a preset threshold, it modulates the second communication data using an OFDM broadband modulator to obtain a response signal for the first communication signal, i.e., the second communication signal. After generating the second communication signal, it sends the second communication signal to the first electronic device at a second transmission power to achieve a response to the first communication signal sent by the first electronic device.
[0135] The communication device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0136] The communication device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0137] The communication device provided in this application embodiment can implement the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0138] Optionally, embodiments of this application also provide an electronic device. Figure 10 A structural block diagram of an electronic device according to an embodiment of this application is shown, such as... Figure 10 As shown, the electronic device 1000 includes a processor 1002, a memory 1004, and a program or instructions stored in the memory 1004 and executable on the processor 1002. When the program or instructions are executed by the processor 1002, they implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0139] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0140] Figure 11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0141] The electronic device 1100 includes, but is not limited to, components such as: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.
[0142] Those skilled in the art will understand that the electronic device 1100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 11 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0143] The electronic device is a first electronic device, wherein the processor 1110 is used to modulate the first communication data through a spreading code and an identification code to generate a first communication signal;
[0144] The processor 1110 is used to adjust the data length of the identification code during the transmission of the first communication signal through the first communication link in order to increase the spread spectrum gain of the first communication signal until a second communication signal is received from the second electronic device. The first communication signal is used to enable the second electronic device to transmit the second communication signal back to the first electronic device when the first communication signal is received.
[0145] The processor 1110 is used to establish a communication connection with the second electronic device when the signal parameters of the second communication signal meet preset conditions.
[0146] In this embodiment, the communication signal transmitted from the first electronic device to the second electronic device is used to control the operation of the second electronic device. Therefore, the data transmission volume of the first communication signal is low. Spread spectrum technology is used to enhance the communication connection between the first electronic device and the second electronic device by reducing the transmission rate, so that the first communication signal sent by the first electronic device to the second electronic device can achieve long-distance communication.
[0147] In this embodiment of the application, when the terminal controls the device via wireless communication, the amount of data transmitted for the control commands is relatively small. The terminal uses spread spectrum technology to spread the transmitted control signals, thereby improving the stability of the communication connection and the communication distance between the terminal and the device. This enables the communication signals sent by the terminal to cover the kilometer level and also enables a stable communication connection between the terminal and the device even in poor cellular signal environments.
[0148] Furthermore, the processor 1110 is used to add error correction codes to the header of the first communication data packet.
[0149] In this embodiment of the application, by adding error correction codes to the first communication data before modulating the first communication signal, the error correction capability of the receiving signal of the second electronic device can be improved, and the receiving gain of the second electronic device can be increased.
[0150] Furthermore, the data size of the identification code ranges from 1 bit to 100 bits.
[0151] In this embodiment of the application, by adding the spreading code and the identification code to the modulation to generate the first communication signal, and continuously increasing the length of the identification code during the output of the first communication signal, the first electronic device can increase the transmission distance of the first communication signal while maintaining low power consumption and high integration.
[0152] Furthermore, the processor 1110 is used to determine the transmission loss value during the first communication data transmission process;
[0153] Processor 1110 is configured to determine a first transmission power of a first communication signal based on a transmission loss value;
[0154] The processor 1110 is used to transmit a first communication signal at a first transmission power via a first communication link.
[0155] In this embodiment of the application, the first electronic device calculates the transmission loss value and, based on the transmission loss value, calculates the first transmission power for transmitting the first communication signal. By outputting the first communication signal according to the first transmission power, the first electronic device can achieve long-distance transmission of the first communication signal.
[0156] Furthermore, the processor 1110 is used to receive operational data from the second electronic device;
[0157] Processor 1110 is used to send control instructions to a second electronic device based on running data to control the operation of the second electronic device. The control instructions are instructions determined based on the running data.
[0158] The operational data includes at least one of the following: location data and video data.
[0159] In this embodiment of the application, after the first electronic device and the second electronic device establish a communication connection, that is, when the first electronic device and the second electronic device are able to transmit signals stably, the second electronic device transmits its own operating data to the first electronic device, so that the first electronic device can control the operation of the second electronic device based on the operating data.
[0160] In this embodiment of the application, after the first electronic device and the second electronic device are successfully paired, the second electronic device can transmit a large amount of running data to the first electronic device, so that the user can control the second electronic device through the first electronic device.
[0161] The electronic device is a second electronic device, wherein the processor 1110 is configured to acquire the signal strength of the first communication signal upon receiving a first communication signal from the first electronic device;
[0162] The processor 1110 is used to send a second communication signal to the first electronic device when the signal strength is greater than a preset threshold. The second communication signal is used to establish a communication connection with the first electronic device. The second communication signal is a communication signal obtained by modulating the second communication data, and the second communication data is the response data of the first communication data.
[0163] In this embodiment, the second electronic device detects the signal strength of the communication signal sent by the first electronic device. By analyzing the numerical relationship between this signal strength and a preset threshold, it determines whether the second electronic device can maintain a stable communication connection with the first electronic device. If it is determined that the first electronic device can maintain a stable communication connection with the second electronic device, it sends back a response signal. This enables the second electronic device to detect the quality of the communication signal sent by the first electronic device, avoiding communication with the first electronic device when the signal quality is poor.
[0164] In this embodiment, the second communication data is the response data of the first communication data. When the second electronic device responds to the first communication signal with the second communication signal, the second communication data is amplified and modulated to obtain the corresponding second communication signal, ensuring that the second communication signal can be transmitted over a long distance. This enables long-distance communication between the first electronic device and the second electronic device, thereby improving the stability and communication distance of the communication connection between the terminal and the device. It also enables a stable communication connection between the terminal and the device even in poor cellular signal environments.
[0165] Furthermore, the processor 1110 is used to modulate the second communication data through broadband modulation to obtain the second communication signal when the signal strength is greater than a preset threshold.
[0166] The processor 1110 is used to transmit a second communication signal to the first electronic device via a second communication link at a second transmission power.
[0167] In this embodiment, when the second electronic device detects that the signal strength of the first communication signal is greater than a preset threshold, it modulates the second communication data using an OFDM broadband modulator to obtain a response signal for the first communication signal, i.e., the second communication signal. After generating the second communication signal, it sends the second communication signal to the first electronic device at a second transmission power to achieve a response to the first communication signal sent by the first electronic device.
[0168] It should be understood that, in this embodiment, the input unit 1104 may include a graphics processing unit (GPU) 11041 and a microphone 11042. The GPU 11041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0169] The memory 1109 can be used to store software programs and various data. The memory 1109 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, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1109 may include volatile memory or non-volatile memory, or both. 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 1109 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0170] Processor 1110 may include one or more processing units; optionally, processor 1110 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 processor 1110.
[0171] 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 method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0172] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0173] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0174] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0175] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, further details are omitted here.
[0176] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0177] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0178] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A communication method applied to a first electronic device, characterized in that, include: The first communication data is modulated using a spreading code and an identification code to generate a first communication signal; During the transmission of the first communication signal through the first communication link, the data length of the identification code is adjusted to increase the spread spectrum gain of the first communication signal until a second communication signal is received from the second electronic device. The first communication signal is used to enable the second electronic device to transmit the second communication signal back to the first electronic device upon receiving the first communication signal. When the signal parameters of the second communication signal meet the preset conditions, a communication connection is established with the second electronic device; Wherein, the amount of data in the first communication signal is less than the preset amount of data.
2. The communication method according to claim 1, characterized in that, Before modulating the first communication data using a spreading code and an identification code to generate the first communication signal, the process also includes: Add error correction codes to the header of the first communication data packet.
3. The communication method according to claim 1, characterized in that, The data size of the identification code ranges from 1 bit to 100 bits.
4. The communication method according to any one of claims 1 to 3, characterized in that, The step of adjusting the data length of the identification code during the transmission of the first communication signal via the first communication link, up to and before receiving the second communication signal from the second electronic device, further includes: Determine the transmission loss value during the transmission of the first communication signal; Based on the transmission loss value, the first transmission power of the first communication signal is determined; The first communication signal is transmitted through the first communication link at the first transmission power.
5. The communication method according to any one of claims 1 to 3, characterized in that, After establishing a communication connection with the second electronic device when the signal parameters of the second communication signal meet preset conditions, the method further includes: Receive operational data from the second electronic device; Based on the operational data, a control command is sent to the second electronic device to control the operation of the second electronic device. The control command is a command determined based on the operational data. The operational data includes at least one of the following: location data and video data.
6. A communication method applied to a second electronic device, characterized in that, include: Upon receiving a first communication signal from a first electronic device, the signal strength of the first communication signal is obtained; When the signal strength is greater than a preset threshold, a second communication signal is sent to the first electronic device. The second communication signal is used to establish a communication connection with the first electronic device. The second communication signal is a communication signal obtained by modulating second communication data. The second communication data is the response data of the first communication data. The first communication signal is obtained by modulating the first communication data using a spreading code and an identification code. The amount of data in the first communication signal is less than a preset amount. During the transmission of the first communication signal through the first communication link, the spreading gain of the first communication signal is increased by adjusting the data length of the identification code.
7. The communication method according to claim 6, characterized in that, When the signal strength is greater than a preset threshold, sending a second communication signal to the first electronic device includes: When the signal strength is greater than a preset threshold, the second communication data is modulated by broadband modulation to obtain the second communication signal; The second communication signal is transmitted to the first electronic device via the second communication link at the second transmission power.
8. A communication device applied to a first electronic device, characterized in that, include: The modulation module is used to modulate the first communication data using a spreading code and an identification code to generate a first communication signal; The first processing module is used to adjust the data length of the identification code during the transmission of the first communication signal through the first communication link in order to increase the spread spectrum gain of the first communication signal until a second communication signal is received from the second electronic device. The first communication signal is used to enable the second electronic device to transmit the second communication signal back to the first electronic device when it receives the first communication signal. The first communication module is used to establish a communication connection with the second electronic device when the signal parameters of the second communication signal meet preset conditions. Wherein, the amount of data in the first communication signal is less than the preset amount of data.
9. A communication device applied to a second electronic device, characterized in that, include: The second processing module is used to obtain the signal strength of the first communication signal when it receives the first communication signal from the first electronic device. The second communication module is used to send a second communication signal to the first electronic device when the signal strength is greater than a preset threshold. The second communication signal is used to establish a communication connection with the first electronic device. The second communication signal is a communication signal obtained by modulating second communication data. The second communication data is the response data of the first communication data. The first communication signal is obtained by modulating the first communication data using a spreading code and an identification code. The amount of data in the first communication signal is less than a preset amount. During the transmission of the first communication signal through the first communication link, the spreading gain of the first communication signal is increased by adjusting the data length of the identification code.
10. An electronic device, characterized in that, include: A processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the method as claimed in any one of claims 1 to 5, or implementing the steps of the method as claimed in claim 6 or 7.
11. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the method as described in any one of claims 1 to 5, or the steps of the method as described in claim 6 or 7.
Citation Information
Patent Citations
Code length adaptive spread spectrum modulating method and equipment in power line carrier meter reading system
CN102122970A
Method and system of code division multiple access mobile communication
CN1303191A