[go: up one dir, main page]

WO2020133797A1 - 终端数据传输方法、装置及存储介质 - Google Patents

终端数据传输方法、装置及存储介质 Download PDF

Info

Publication number
WO2020133797A1
WO2020133797A1 PCT/CN2019/082059 CN2019082059W WO2020133797A1 WO 2020133797 A1 WO2020133797 A1 WO 2020133797A1 CN 2019082059 W CN2019082059 W CN 2019082059W WO 2020133797 A1 WO2020133797 A1 WO 2020133797A1
Authority
WO
WIPO (PCT)
Prior art keywords
character string
target
preset
binary
string
Prior art date
Application number
PCT/CN2019/082059
Other languages
English (en)
French (fr)
Inventor
曹丹
王拂依
Original Assignee
深圳市华星光电技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市华星光电技术有限公司 filed Critical 深圳市华星光电技术有限公司
Publication of WO2020133797A1 publication Critical patent/WO2020133797A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used

Definitions

  • the present application relates to the signal transmission industry, and more specifically, to a terminal data transmission method, device, and storage medium.
  • the signal transmission system converts voice, data, and image information into electrical signals, and after modulation, moves the spectrum to a frequency band suitable for transmission in a certain medium, and forms a certain electromagnetic wave that is favorable for transmission to the other party, and then the solution
  • the modulation is restored to an electrical signal, which is the sum of the communication equipment including the whole process of modulation-transmission-demodulation.
  • the transmission system can be used as a channel to connect two terminal devices to form a telecommunications system, and as a link to connect network nodes to form a telecommunications network.
  • the transmission system In the process of transmitting signals, the transmission system inevitably introduces some factors that cause deterioration of signal quality, such as attenuation, noise, distortion, crosstalk, interference, and fading.
  • the transmission technology In order to continuously improve the transmission quality, expand the capacity, and obtain the optimization effect in technical economy, the transmission technology must be continuously developed and improved.
  • the input original signal often has strong regularity or continuous "0" or “1” signals.
  • the strong regularity of the signal power spectrum energy distribution is uneven, the peak value is too high, during the transmission process Will cause electromagnetic interference; and the signal quality of "0" or “1” is too low, which will cause the receiving end to be unable to recover the correct original signal because it is difficult to obtain the correct synchronous clock information, resulting in the received signal cannot be matched to the original signal . Therefore, the conventional method is to add a scrambling code and encoding circuit at the sending end to ensure the validity and correctness of the data transmission process. However, whether it is a scrambling circuit or an encoding circuit, it will make the circuit design too cumbersome, resulting in The hardware cost is too high.
  • the purpose of this application is to provide a terminal data transmission method, device and storage medium, which can effectively reduce the difficulty of hardware circuit design and save costs.
  • a terminal data transmission method including:
  • the terminal data transmission method further includes:
  • a second identification value is inserted at a preset position of the target binary character string, and the second identification value is a binary character and is different from the first identification value.
  • the terminal data transmission method further includes:
  • the determining the second original binary character string according to the target output character string after the inverse code operation includes:
  • the second original binary character string is generated according to the target preset character string and the deleted character string.
  • the method for data transmission of the terminal further includes:
  • An embodiment of the present application also provides a terminal data transmission device, including:
  • the obtaining module is used to obtain the first original binary string to be sent
  • a generating module configured to generate a target binary character string according to the first original binary character string and the preset character string
  • the judging module is used to judge whether the number of consecutive identical characters in the target binary character string is less than the preset number
  • the encoding module is used to perform an inverse operation on the target binary character string if not, and insert a first identification value at a preset position of the target binary character string after the inverse operation to obtain the output character string, Encode the first original binary character string, and the first identification value is a binary character;
  • the sending module is used to send the output character string and the preset character string to the outside world.
  • the encoding module is also used to:
  • the second identification value is a binary character and is different from the first identification value.
  • terminal data transmission device is also used to:
  • a receiving module configured to receive the target output character string and the target preset character string sent by the second mobile terminal
  • the matching module is used to determine whether the character at the preset position in the target output string is equal to the first identification value
  • the decoding module is configured to perform a reverse operation on the target output character string if it is, and determine a second original binary character string according to the target output character string after the reverse operation to perform the target output character string decoding.
  • decoding module is specifically used to:
  • the second original binary character string is generated according to the target preset character string and the deleted character string.
  • An embodiment of the present application further provides a terminal data transmission storage medium, including: a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to perform any one of the above terminal data transmission methods.
  • the terminal data transmission method, device and storage medium provided in this application are applied to a first mobile terminal, by acquiring a first original binary character string to be transmitted, and generating a target binary character according to the first original binary character string and a preset character string String, and then determine whether the number of consecutive identical characters in the target binary string is less than the preset number, if not, then perform a reverse operation on the target binary string, and the target binary string after the reverse operation Insert a first identification value at a preset position to obtain an output character string to encode the first original binary character string, where the first identification value is a binary character, and send the output character string and the preset character string to the outside world after completion, Therefore, it is possible to realize safe and effective transmission of data without designing a scrambling circuit at the sending end, the method is simple, and the terminal production cost is reduced.
  • FIG. 1 is a schematic flowchart of a terminal data transmission method according to an embodiment of this application.
  • FIG. 2 is another schematic flowchart of a terminal data transmission method according to an embodiment of this application.
  • FIG. 3 is a schematic structural diagram of a terminal data transmission device according to an embodiment of the present application.
  • FIG. 4 is another schematic structural diagram of a terminal data transmission device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
  • FIG. 6 is another schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
  • a terminal data transmission method obtaining a first original binary character string to be sent; generating a target binary character string according to the first original binary character string and a preset character string; judging that the target binary character string has consecutively the same characters Whether the number is less than the preset number; if not, inverse arithmetic operation is performed on the target binary character string, and a first identification value is inserted at the preset position of the target binary character string after inverse code operation to obtain an output A character string to encode the first original binary character string, and the first identification value is a binary character;
  • FIG. 1 is a schematic flowchart of a terminal data transmission method according to an embodiment of the present application.
  • the specific process of the terminal data transmission method may be as follows:
  • the binary character string is a string of characters including only 0 and 1, which is usually generated according to the user's input information, such as input text, image, voice, etc.
  • the original binary character string is inevitably There are a large number of continuous “0” and “1", which leads to uneven power spectrum energy distribution and high peak value, which will cause electromagnetic interference during transmission.
  • the preset character string is a series of binary characters generated by the data generator, such as "...0101010101".
  • the data generator randomly generates a binary character string, and then Perform logical operation on the first original binary character string to obtain the target binary character string.
  • the logical operation includes "or", “not”, “exclusive or” and/or “and”, where a large number of consecutive "0" and "1" in the target binary data after selecting "or” for logical operation can be obtained Effective improvement.
  • the preset number is five or more, for example, five consecutive identical character strings "00000” and "11111" are preset.
  • the preset position may be any position of the target binary string, such as the first position, the middle position, or the end, and the identification value may be "0" or “1", and the identification value uses “0” in this embodiment.
  • Perform the inverse operation on the target binary string insert "0” (or “1") as the identification value in the first bit of the target binary string after completing the inverted operation, and at the same time, the identification value can also be a multi-bit binary Composed of characters, for example, insert "10” (or “11” or "01” or "00") as the identification value in the first bit of the target binary string after the complement operation is completed, where the number of identification values is not done limit.
  • the terminal data transmission method may further include:
  • a second identification value is inserted at a preset position of the target binary character string to obtain an output character string.
  • the second identification value is a binary character and is different from the first identification value.
  • the preset position can be the first position, middle position or end of the target binary string
  • the identification value can be "0” or “1” to indicate, you can insert “1” (or "0") in the first position of the target binary string
  • the identification value can also be a combination of multiple binary characters, for example, insert "01” (or “00” or “10” or “11") as the identification in the first bit of the target binary string Value, where the number of identified values is not limited.
  • the terminal data processing may further include:
  • the terminal can be used as either the end to generate the first original binary character string or the end that receives the target output character string sent by the second mobile terminal.
  • the terminal judges the identification value of the preset position in the target output string.
  • the identification value of the preset position in the target output string is equal to "0"
  • the terminal data processing may further include:
  • the above “confirming the second original binary character string according to the target output character string after the inverted code operation” specifically includes:
  • the second original binary character string is generated according to the target preset character string and the deleted character string.
  • the identification value "0" of the preset position is deleted according to the target output data after the inverse code operation is completed, and then the logical inverse operation is performed according to the target preset character string and the inverse code target output character string, using " XOR operation, after the logical inverse operation, a large number of consecutive "0" and "1" character strings or characters with strong regularity in the target output character string are effectively improved, and the second original binary character string is obtained .
  • the terminal data transmission method obtains the first original binary character string to be sent, generates a target binary character string according to the first original binary character string and the preset character string, and converts the target binary character Whether the number of consecutive identical characters in the string is less than the preset number, and then judge, if not, then perform the inverse operation on the target binary string, and the preset position of the target binary string after the inverse operation Insert the first identification value to obtain the output string to encode the first original binary string, where the first identification value is a binary character, and send the output string and the preset string to the outside world after completion, so that there is no need to
  • the design of the scrambling code circuit at the sending end can realize the safe and effective transmission of data, the method is simple, and the production cost of the terminal is reduced.
  • the description will be made from the perspective of a terminal data transmission device.
  • the terminal data transmission device will be integrated into a mobile terminal as an example for detailed description.
  • the mobile terminal may be a tablet computer, a mobile phone, or the like.
  • a method for terminal data transmission is applied to a first mobile terminal.
  • the specific process of the data transmission method may be as follows:
  • the mobile terminal obtains the first original binary character string to be sent.
  • the original data to be transmitted by the mobile terminal is a large number of regular character strings in the bitstream data, such as "...010010010010010010010010".
  • the mobile terminal generates the target binary character string from the first original binary character string and the preset character string.
  • the preset character string is "...1010101010"
  • the mobile terminal selects "or” for the first original binary character string and the preset character string where a large number of consecutive "0"s are located and generates the first original binary character string and data
  • the preset character string generated by the device performs logical operation, so that a large number of consecutive "0" and "1" character strings or characters with strong regularity in the mobile terminal are effectively improved.
  • the mobile terminal determines whether the number of consecutive identical characters in the target binary character string is less than a preset number. If not, the following step S204 is performed, and if it is, the following step S205 is performed.
  • the preset number is five identical “0” and five identical “1".
  • the preset position includes the first position, the middle position, and the end of the target binary string.
  • the first identification value may be "00", and "00" is inserted as the identification value in the first position of the target binary string.
  • the preset position includes the first position, the middle position, and the end of the target binary character string
  • the second identification value may be "11”
  • "11" is inserted as the identification value in the first position of the target binary character string.
  • the mobile terminal sends the output character string and the preset character string to the outside world, and then receives the target output character string and the target preset character string sent by the second mobile terminal.
  • the mobile terminal determines whether the character at the preset position in the target output string is equal to the first identification value, and if so, executes the following step S208; if not, executes the following step S209.
  • the first two characters in the target output string are determined, for example, whether the first two characters in the target output string are "00" characters.
  • the terminal compares the identification value "00" of the preset position with the identification value of the preset position in the target output string. If the identification value of the identification bit in the target output string is "00", the target output string Perform inverse code operation, and then delete the "00" character at the preset position in the target output string, according to the target preset string, such as "...1010101010" and the target output after deleting the "00" character at the preset position
  • the character string is logically reversed, and the "exclusive OR" method is used to obtain the second original binary character string.
  • the identification value of the identification bit in the target output string is "11" and is not equal to the first identification value "00"
  • delete the character at the preset position in the target output string according to the target preset string, For example, "...1010101010" performs a logical inverse operation on the target output character string after deleting the "11” character at the preset position, and performs an operation using the "exclusive OR” method to obtain the second original binary character string.
  • the terminal data transmission device will be integrated into a mobile terminal as an example for detailed description.
  • the mobile terminal may be a tablet computer, Mobile phones, etc.
  • FIG. 3 is a terminal data transmission device provided in an embodiment of the present application, which is applied to a first mobile terminal and may include: an acquisition module 10, a generation module 20, a judgment module 30, an encoding module 40, and a sending module 50. among them:
  • the obtaining module 10 is used to obtain the first original binary character string to be sent.
  • the binary character string is a string of characters including only 0 and 1, which is usually generated according to the user's input information, such as input text, image, voice, etc.
  • the original binary character string is inevitably There are a large number of continuous “0” and “1", which leads to uneven power spectrum energy distribution and high peak value, which will cause electromagnetic interference during transmission.
  • the generating module 20 is configured to generate a target binary character string according to the first original binary character string and the preset character string.
  • the preset character string is a series of binary characters generated by the data generator, such as "...0101010101".
  • the data generator randomly generates a binary character string, and then Perform logical operation on the first original binary character string to obtain the target binary character string.
  • the logical operation includes "or", “not”, “exclusive or” and/or “and”, where a large number of consecutive "0" and "1" in the target binary data after selecting "or” for logical operation can be obtained Effective improvement.
  • the encoding module 30 is configured to determine whether the number of consecutive identical characters in the target binary character string is less than a preset number.
  • the preset number is five or more, for example, five consecutive identical character strings "00000” and "11111" are preset.
  • the encoding module 40 is used for the judgment module 30 to judge, if it is not judged, perform a reverse operation on the target binary character string, and insert the first in the preset position of the target binary character string after the reverse operation
  • the preset position may be the first position, the middle position or the end of the target binary string, and the identification value may be "0" or "1".
  • the identification value uses “0” for the target binary character Perform the inverted operation on the string, and insert “0” (or “1") as the identification value in the first bit of the target binary string after completing the inverted operation.
  • the identification value can also be a combination of multiple binary characters For example, insert “10” (or “11” or "01” or "00") as the identification value in the first bit of the target binary string after the complement operation is completed, where the number of identification values is not limited.
  • the terminal data transmission device is also used to:
  • a second identification value is inserted at a preset position of the target binary character string to obtain an output character string.
  • the second identification value is a binary character and is different from the first identification value.
  • the preset position can be the first position, middle position or end of the target binary string
  • the identification value can be "0” or “1” to indicate, you can insert “1” (or "0") in the first position of the target binary string
  • the identification value can also be a combination of multiple binary characters, for example, insert "01” (or “00” or “10” or “11") as the identification in the first bit of the target binary string Value, where the number of identified values is not limited.
  • the sending module 50 is configured to send the output character string and the preset character string to the outside world.
  • the above sending module 50 is specifically used to:
  • the receiving module 60 is configured to receive the target output character string and the target preset character string sent by the second mobile terminal.
  • the matching module 70 is configured to determine whether the character at the preset position in the target output character string is equal to the first identification value.
  • the decoding module 80 is used by the matching module 70 to perform matching, if it is, then perform a complement operation on the target output character string, and determine a second original binary character string according to the target output character string after the complement operation Decode the target output character string.
  • the terminal can be used as either the end to generate the first original binary character string or the end that receives the target output character string sent by the second mobile terminal.
  • the terminal judges the identification value of the preset position in the target output string.
  • the identification value of the preset position in the target output string is equal to "0"
  • the terminal data processing device is also used to:
  • the above “confirming the second original binary character string according to the target output character string after the inverted code operation” specifically includes:
  • the second original binary character string is generated according to the target preset character string and the deleted character string.
  • the identification value "0" of the preset position is deleted according to the target output data after the inverse code operation is completed, and then the logical inverse operation is performed according to the target preset character string and the inverse code target output character string, using " XOR operation, after the logical inverse operation, a large number of consecutive "0" and "1" character strings or characters with strong regularity in the target output character string are effectively improved, and the second original binary character string is obtained .
  • the terminal data transmission device obtains the first original binary character string to be sent, and generates a target binary character string according to the first original binary character string and the preset character string, and converts the target binary character string Whether the number of consecutive identical characters in the sequence is less than the preset number, and then a judgment is made, if not, the target binary character string is inverted, and inserted at the preset position of the target binary character string after inverted operation
  • the method is simple and reduces the production cost of the terminal.
  • the embodiments of the present application further provide a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer, or other devices.
  • the mobile terminal 200 includes a processor 201 and a memory 202.
  • the processor 201 and the memory 202 are electrically connected.
  • the processor 201 is the control center of the mobile terminal 200, uses various interfaces and lines to connect the various parts of the entire mobile terminal, executes the movement by running or loading the application programs stored in the memory 202, and calling the data stored in the memory 202 Various functions and processing data of the terminal, so as to monitor the mobile terminal as a whole.
  • the processor 201 in the mobile terminal 200 will load the instructions corresponding to the process of one or more application programs into the memory 202 according to the following steps, and the processor 201 will execute the instructions stored in the memory 202 Application in order to achieve various functions:
  • FIG. 6 shows a specific structural block diagram of a mobile terminal provided by an embodiment of the present application.
  • the mobile terminal may be used to implement the terminal data transmission method provided in the foregoing embodiment.
  • the mobile terminal 300 may be a smart phone or a tablet computer.
  • the RF circuit 310 is used to receive and transmit electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices.
  • the RF circuit 310 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, and so on.
  • the RF circuit 310 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless network can use various communication standards, protocols and technologies, including but not limited to the global mobile communication system (Global System for Mobile Communication (GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division Access, CDMA), Time Division Multiple Access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, Wi-Fi) (eg IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), VoIP (Voice over Internet Protocol (VoIP), global microwave interconnection access (Worldwide Interoperability for Microwave Access, Wi-Max), other protocols used for mail, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Data GSM Environment
  • WCDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • Time Division Multiple Access technology Time Division Multiple Access
  • the memory 320 may be used to store software programs and modules, such as the program instructions/modules corresponding to the front camera photo automatic fill light system and method in the foregoing embodiment, and the processor 380 executes the software programs and modules stored in the memory 320 to execute Various functional applications and data processing, that is, the function of automatic fill light when taking photos with the front camera.
  • the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 320 may further include memories remotely provided with respect to the processor 380, and these remote memories may be connected to the mobile terminal 300 through a network. Examples of the aforementioned network include, but are not limited to, the Internet, intranet, local area network, mobile communication network, and combinations thereof.
  • the input unit 330 may be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
  • the input unit 330 may include a touch-sensitive surface 331 and other input devices 332.
  • the touch-sensitive surface 331 also known as a touch screen or touchpad, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on the touch-sensitive surface 331 or on the Operation near the touch-sensitive surface 331), and drive the corresponding connection device according to a preset program.
  • the touch-sensitive surface 331 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 380, and can receive the command sent by the processor 380 and execute it.
  • the touch-sensitive surface 331 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 330 may also include other input devices 332.
  • other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and so on.
  • the display unit 340 may be used to display information input by the user or provided to the user and various graphical user interfaces of the mobile terminal 300. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 340 may include a display panel 341. Alternatively, an LCD (Liquid Crystal Display (liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode) and other forms to configure the display panel 341.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode, organic light emitting diode
  • the touch-sensitive surface 331 may cover the display panel 341, and when the touch-sensitive surface 331 detects a touch operation on or near it, it is transmitted to the processor 380 to determine the type of touch event, and then the processor 380 according to the touch event The type provides a corresponding visual output on the display panel 341.
  • the touch-sensitive surface 331 and the display panel 341 are implemented as two independent components to realize input and output functions, in some embodiments, the touch-sensitive surface 331 and the display panel 341 may be integrated to realize input And output functions.
  • the mobile terminal 300 may further include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 341 according to the brightness of the ambient light, and the proximity sensor may close the display panel 341 when the mobile terminal 300 moves to the ear And/or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used to identify mobile phone gesture applications (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. can be configured here No longer.
  • the audio circuit 360, the speaker 361, and the microphone 362 may provide an audio interface between the user and the mobile terminal 300.
  • the audio circuit 360 can transmit the converted electrical signal of the received audio data to the speaker 361, which converts the speaker 361 into a sound signal output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 360 After receiving, it is converted into audio data, and then processed by the audio data output processor 380, and then sent to, for example, another terminal through the RF circuit 310, or the audio data is output to the memory 320 for further processing.
  • the audio circuit 360 may further include an earplug jack to provide communication between the peripheral earphone and the mobile terminal 300.
  • the mobile terminal 300 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 370 (for example, a Wi-Fi module), which provides users with wireless broadband Internet access.
  • the transmission module 370 for example, a Wi-Fi module
  • FIG. 6 shows the transmission module 370, it can be understood that it is not a necessary component of the mobile terminal 300, and can be omitted without changing the scope of the essence of the application as needed.
  • the processor 380 is the control center of the mobile terminal 300, and uses various interfaces and lines to connect the various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 320, and calling the data stored in the memory 320 , Execute various functions and process data of the mobile terminal 300, so as to monitor the mobile phone as a whole.
  • the processor 380 may include one or more processing cores; in some embodiments, the processor 380 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and Applications, etc., the modem processor mainly handles wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 380.
  • the mobile terminal 300 further includes a power supply 390 (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 380 through a power management system, thereby managing charging, discharging, and power consumption through the power management system Management and other functions.
  • the power supply 190 may also include any component such as one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
  • the mobile terminal 300 may further include a camera (such as a front-facing camera, a rear-facing camera), a Bluetooth module, etc., which will not be repeated here.
  • the display unit of the mobile terminal is a touch screen display
  • the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to have one or one
  • the above processor executing one or more programs contains instructions for performing the following operations:
  • the above modules can be implemented as independent entities, or they can be combined in any combination and implemented as the same or several entities.
  • the above modules please refer to the previous method embodiments, which will not be repeated here.
  • an embodiment of the present application provides a storage medium in which multiple instructions are stored, and the instruction can be loaded by a processor to perform steps in any of the terminal data transmission methods provided in the embodiments of the present application.
  • the storage medium may include: read-only memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), disk or CD-ROM, etc.

Landscapes

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

Abstract

本申请涉及一种终端数据传输方法、装置及存储介质,包括:获取待发送的第一原始二进制字符串;根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;向外界发送所述输出字符串和预设字符串。

Description

终端数据传输方法、装置及存储介质 技术领域
本申请涉及信号传输行业,更具体地说,涉及一种终端数据传输方法、装置及存储介质。
背景技术
信号传输系统是把语音、数据、图像信息转变成电信号,经过调制,把频谱搬移到适合于在某种媒质内传输的频段,并形成某种有利于传输的电磁波传送到对方,再经解调还原为电信号,即包括调制—传输—解调全过程的通信设备的总和。传输系统作为信道可连接两个终端设备构成电信系统,作为链路则可连接网节点的交换系统构成电信网。
传输系统在传输信号过程中,不可避免地要引入一些导致信号质量恶化的因素,如衰减、噪声、失真、串音、干扰、衰落等。为了不断提高传输质量、扩大容量、并取得技术经济方面的优化效果,传输技术必须不断地发展与提高。
在信号传输系统中,输入的原始信号往往会出现规律性较强或者出现连续的“0”或者“1”信号,规律性较强的信号功率谱能量分布不均匀,峰值过高,在传输过程中会造成电磁干扰;而出现“0”或者“1”的信号质量过低,会导致接收端因难以得到正确的同步时钟信息而无法恢复出正确的原始信号,导致接收信号不能匹配到原始信号。因此,常规的做法为在发送端加入扰码和编码电路来保证数据传输过程中的有效性和正确性,但是,无论是扰码电路还是编码电路的存在,都会使得电路的设计过于繁琐,造成硬件成本投入过高。
综上所述,在现有信号传输系统中,为了保证输入的原始信号在数据传输的过程中的有效性和正确性,在发送端增加了扰码电路和编码电路,使得电路设计过于繁琐,提高了生产成本。
技术问题
本申请的目的在于提供一种终端数据传输方法、装置及存储介质,能有效降低硬件电路设计的难度,节约成本。
技术解决方案
为了解决上述问题,本申请实施例提供了一种终端数据传输方法,包括:
获取待发送的第一原始二进制字符串;
根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;
判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;
若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,已对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符;
向外界发送所述输出字符串和预设字符串。
进一步地,在判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数之后,所述终端数据传输方法还包括:
若是,则在所述目标二进制字符串的预设位置插入第二标识值,所述第二标识值为二进制字符,且不同于所述第一标识值。
进一步地,在向外界发送所述输出字符和目标预设字符串后,所述终端数据传输方法还包括:
接收第二移动端发送的目标输出字符串和目标预设字符串;
判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值;
若是,则对所述目标输出字符串进行反码运算,并根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,以对所述目标输出字符串进行解码。
进一步地,所述根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,包括:
删除反码运算后的所述目标输出字符串中预设位置的字符,得到删除后字符串;
根据所述目标预设字符串和删除后字符串生成第二原始二进制字符串。
进一步地,在判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值之后,所述终端数据传输的方法还包括:
若否,删除所述目标输出字符串中预设位置的字符,得到第二原始二进制字符串。
本申请实施例还提供了一种终端数据传输装置,包括:
获取模块,用于获取待发送的第一原始二进制字符串;
生成模块,用于根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;
判断模块,用于判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;
编码模块,用于若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符;
发送模块,用于向外界发送所述输出字符串和预设字符串。
进一步地,所述编码模块还用于:
若是,在判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数之后,若是,则在所述目标二进制字符串的预设位置插入第二标识值,所述第二标识值为二进制字符,且不同于所述第一标识值。
进一步地,所述终端数据传输装置还用于:
接收模块,用于接收第二移动端发送的目标输出字符串和目标预设字符串;
匹配模块,用于判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值;
解码模块,用于若是,则对所述目标输出字符串进行反码运算,并根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,以对所述目标输出字符串进行解码。
进一步地,所述解码模块具体用于:
删除反码运算后的所述目标输出字符串中预设位置的字符,得到删除后字符串;
根据所述目标预设字符串和删除后字符串生成第二原始二进制字符串。
本申请实施例还提供了一种终端数据传输存储介质,包括:所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一项终端数据传输方法。
有益效果
本申请提供的终端数据传输方法、装置及存储介质,应用于第一移动终端,通过获取待发送的第一原始二进制字符串,并根据第一原始二进制字符串和预设字符串生成目标二进制字符串,随后判断目标二进制字符串中连续相同字符的个数是否小于预设个数,若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对第一原始二进制字符串进行编码,其中第一标识值为二进制字符,完成后向外界发送所述输出字符串和预设字符串,从而无需在发送端设计扰码电路即可实现数据的安全有效传输,方法简单,降低了终端生产成本。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的终端数据传输方法的流程示意图。
图2为本申请实施例提供的终端数据传输方法的另一流程示意图。
图3为本申请实施例提供的终端数据传输装置的结构示意图。
图4为本申请实施例提供的终端数据传输装置的另一结构示意图。
图5为本申请实施例提供的移动终端的结构示意图。
图6为本申请实施例提供的移动终端的另一结构示意图。
本发明的实施方式
为使本申请所要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
一种终端数据传输方法:获取待发送的第一原始二进制字符串;根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符;
请参见图1,图1是本申请实施例提供的终端数据传输方法的流程示意图,该终端数据传输方法具体流程可以如下:
S101.获取待发送的第一原始二进制字符串。
本实施例中,该二进制字符串为只包括0和1的一串字符,其通常是根据用户的输入信息生成的,比如输入文字、图像、语音等,通常,原始二进制字符串中不可避免会存在大量连续的“0”和“1”,导致功率谱能量分布不均匀,峰值过高,进而在传输过程中会造成电磁干扰。
S102.根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串。
在本实施例中,预设字符串是通过数据发生器产生的一串二进制字符,如“…010101010101…”,数据发生器在接收到生成数据的指令后,会随机生成二进制字符串,之后与第一原始二进制字符串进行逻辑运算,得到目标二进制字符串。该逻辑运算包括“或”、“非”、“异或”和/或“与”,其中,选取“或”进行逻辑运算后的目标二进制数据中大量连续的“0”和“1”能得到有效的改善。
S103.判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数。
本实施例中,预设个数为五个或五个以上,如预设五个连续相同的字符串“00000”和“11111”。
S104.若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符。
本实施例中,预设位置可以为目标二进制字符串的任意位置,比如首位、中间位置或者末尾,标识值可以为“0”或者“1”表示,本实施例中标识值使用“0”,对目标二进制字符串进行反码运算,在完成反码运算后的目标二进字符串的首位插入“0”(或“1”)作为标识值,与此同时,标识值也可以为多位二进制字符组合而成,例如,在完成反码运算后的目标二进制字符串的首位插入“10”(或“11”或“01”或“00”)作为标识值,其中标识值的个数不做限制。
例如,在上述步骤S103之后,该终端数据传输方法还可以包括:
若是,则在所述目标二进制字符串的预设位置插入第二标识值,得到输出字符串,所述第二标识值为二进制字符,且不同于所述的第一标识值。
其中,预设位置可以为目标二进制字符串的首位、中间位置或者末尾,标识值可以为“0”或者“1”表示,可以在目标二进制字符串的首位插入“1”(或“0”)作为标识值,与此同时,标识值也可以为多位二进制字符组合而成,例如,在目标二进制字符串的首位插入“01”(或“00”或“10”或“11”)作为标识值,其中标识值的个数不做限制。
S105.向外界发送所述输出字符串和预设字符串。
例如,上述步骤S105之后,该终端数据处理还可以包括:
接收第二移动终端发送的目标输出字符串和目标预设字符串。
判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值。
若是,则对所述目标输出字符串进行反码运算,并根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,以对所述目标输出字符串进行解码。
本实施例中,终端既可以作为生成第一原始二进制字符串的一端,也可以作为接收第二移动终端发送的目标输出字符串的一端,当接收到第二移动终端发送的目标输出字符串和目标预设字符串后,终端对目标输出字符串中预设位置的标识值进行判断,当目标输出字符串中预设位置的标识值等于“0”时,表明目标输出字符串进行过反码运算,则需要对目标输出字符串进行解码,解码后得到第二原始二进制字符串。
其中,上述步骤S105之后,该终端数据处理还可以包括:
在“判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值”之后,当目标输出字符串中预设位置的标识值不等于第一标识值时,删除所述目标输出字符串中预设位置的字符,得到第二原始二进制字符串。
例如,上述“根据反码运算后的所述目标输出字符串确认第二原始二进制字符串”具体包括:
删除反码运算后的所述目标输出字符串中预设位置的字符,得到删除后字符串;
根据所述目标预设字符串和删除后字符串生成第二原始二进制字符串。
本实施例中,根据完成反码运算后的目标输出数据进行删除预设位置的标识值“0”,随后根据目标预设字符串与反码后的目标输出字符串经过逻辑逆运算,采用“异或”方式进行运算,进行逻辑逆运算后的目标输出字符串中大量的连续的“0”和“1”字符串或规律性较强的字符得到有效的改善,得到第二原始二进制字符串。
由上述可知,本实施例提供的终端数据传输的方法,通过获取待发送的第一原始二进制字符串,并根据第一原始二进制字符串和预设字符串生成目标二进制字符串,将目标二进制字符串中连续相同字符的个数是否小于预设个数,随后进行判断,若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对第一原始二进制字符串进行编码,其中第一标识值为二进制字符,完成后向外界发送所述输出字符串和预设字符串,从而无需在发送端设计扰码电路即可实现数据的安全有效传输,方法简单,降低了终端生产成本。
在本实施例中,将从终端数据传输装置的角度进行描述,具体将以该终端数据传输装置集成在移动终端中为例进行详细说明,该移动终端可以为平板电脑、手机等。
请参见图2,一种终端数据传输的方法,应用于第一移动终端,该数据传输方法的具体流程可以如下:
S201.移动终端获取待发送的第一原始二进制字符串。
譬如,假设移动终端将要发射的原始数据为比特流数据中存在大量规律性较强的字符串,如“…010010010010010010010010…”。
S202.移动终端将第一原始二进制字符串和预设字符串生成目标二进制字符串。
譬如,预设字符串为“…101010101010…”,移动终端对大量的连续的“0”所在的第一原始二进制字符串与预设字符串选取“或”对第一原始二进制字符串和数据生成器生成的预设字符串进行逻辑运算,使移动终端中大量的连续的“0”和“1”字符串或规律性较强的字符得到有效的改善。
S203.移动终端判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数,若否,则执行下述步骤S204,若是,则执行下述步骤S205。
譬如,预设个数为五个相同的“0”和五个相同的“1”。
S204.对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符。
譬如,预设位置包括目标二进制字符串的首位、中间位置和末尾,第一标识值可以为“00”,在目标二进制字符串的首位插入“00”作为标识值。
S205.在所述目标二进制字符串的预设位置插入第二标识值,所述第二标识值为二进制字符,且不同于所述第一标识值。
譬如,预设位置包括目标二进制字符串的首位、中间位置和末尾,第二标识值可以为“11”,在目标二进制字符串的首位插入“11”作为标识值。
S206.移动终端向外界发送所述输出字符串和预设字符串,之后接收第二移动端发送的目标输出字符串和目标预设字符串。
S207.移动终端判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值,若是,则执行下述步骤S208;若否,则执行下述步骤S209。
譬如,对目标输出字符串中的开头两位字符进行判断,如对目标输出字符串中的开头两位字符是否为“00”字符进行判断。
S208.对所述目标输出字符串进行反码运算,随后删除所述目标输出字符串中预设位置的字符,并根据目标预设字符串和删除后字符串生成第二原始二进制字符串。
譬如,终端根据预设位置的标识值“00”同目标输出字符串中预设位置的标识值进行比较,如果目标输出字符串中标识位的标识值为“00”,则对目标输出字符串进行反码运算,随后删除所述目标输出字符串中预设位置的“00”字符,根据目标预设字符串,如“…101010101010…”与删除预设位置的“00”字符后的目标输出字符串进行逻辑逆运算,采用“异或”方式进行运算,得到第二原始二进制字符串。
S209.删除所述目标输出字符串中预设位置的字符,得到第二原始二进制字符串。
譬如,如果目标输出字符串中标识位的标识值为“11”,不等于第一标识值“00”,则删除所述目标输出字符串中预设位置的字符,根据目标预设字符串,如“…101010101010…”与删除预设位置的“11”字符后的目标输出字符串进行逻辑逆运算,采用“异或”方式进行运算,得到第二原始二进制字符串。
根据上述实施例所描述的方法,本实施例将从终端数据传输装置的角度进行描述,具体将以该终端数据传输装置集成在移动终端中为例进行详细说明,该移动终端可以为平板电脑、手机等。
请参见图3,图3是本申请实施例提供的终端数据传输的装置,应用于第一移动终端,可以包括:获取模块10、生成模块20、判断模块30、编码模块40和发送模块50,其中:
(1)获取模块10
获取模块10,用于获取待发送的第一原始二进制字符串。
本实施例中,该二进制字符串为只包括0和1的一串字符,其通常是根据用户的输入信息生成的,比如输入文字、图像、语音等,通常,原始二进制字符串中不可避免会存在大量连续的“0”和“1”,导致功率谱能量分布不均匀,峰值过高,进而在传输过程中会造成电磁干扰。
(2)生成模块20
生成模块20,用于根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串。
在本实施例中,预设字符串是通过数据发生器产生的一串二进制字符,如“…010101010101…”,数据发生器在接收到生成数据的指令后,会随机生成二进制字符串,之后与第一原始二进制字符串进行逻辑运算,得到目标二进制字符串。该逻辑运算包括“或”、“非”、“异或”和/或“与”,其中,选取“或”进行逻辑运算后的目标二进制数据中大量连续的“0”和“1”能得到有效的改善。
(3)判断模块30
编码模块30,用于判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数。
本实施例中,预设个数为五个或五个以上,如预设五个连续相同的字符串“00000”和“11111”。
(4)编码模块40
编码模块40,用于判断模块30进行判断之后,判断若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符。
本实施例中,预设位置可以为目标二进制字符串的首位、中间位置或者末尾,标识值可以为“0”或者“1”表示,本实施例中标识值使用“0”,对目标二进制字符串进行反码运算,在完成反码运算后的目标二进字符串的首位插入“0”(或“1”)作为标识值,与此同时,标识值也可以为多位二进制字符组合而成,例如,在完成反码运算后的目标二进制字符串的首位插入“10”(或“11”或“01”或“00”)作为标识值,其中标识值的个数不做限制。
例如,上述判断模块30进行判断之后,该终端数据传输装置还用于:
若是,则在所述目标二进制字符串的预设位置插入第二标识值,得到输出字符串,所述第二标识值为二进制字符,且不同于所述的第一标识值。
其中,预设位置可以为目标二进制字符串的首位、中间位置或者末尾,标识值可以为“0”或者“1”表示,可以在目标二进制字符串的首位插入“1”(或“0”)作为标识值,与此同时,标识值也可以为多位二进制字符组合而成,例如,在目标二进制字符串的首位插入“01”(或“00”或“10”或“11”)作为标识值,其中标识值的个数不做限制。
(5)发送模块50
发送模块50,用于向外界发送所述输出字符串和预设字符串。
例如,请参见图4,上述发送模块50之后具体用于:
接收模块60,用于接收第二移动终端发送的目标输出字符串和目标预设字符串。
匹配模块70,用于判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值。
解码模块80,用于匹配模块70进行匹配之后,若是,则对所述目标输出字符串进行反码运算,并根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,以对所述目标输出字符串进行解码。
本实施例中,终端既可以作为生成第一原始二进制字符串的一端,也可以作为接收第二移动终端发送的目标输出字符串的一端,当接收到第二移动终端发送的目标输出字符串和目标预设字符串后,终端对目标输出字符串中预设位置的标识值进行判断,当目标输出字符串中预设位置的标识值等于“0”时,表明目标输出字符串进行过反码运算,则需要对目标输出字符串进行解码,解码后得到第二原始二进制字符串。
其中,在上述发送模块50之后,该终端数据处理装置还用于:
在“判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值”之后,当目标输出字符串中预设位置的标识值等于“1”时,删除所述目标输出字符串中预设位置的字符,得到第二原始二进制字符串。
例如,上述“根据反码运算后的所述目标输出字符串确认第二原始二进制字符串”具体包括:
删除反码运算后的所述目标输出字符串中预设位置的字符,得到删除后字符串;
根据所述目标预设字符串和删除后字符串生成第二原始二进制字符串。
本实施例中,根据完成反码运算后的目标输出数据进行删除预设位置的标识值“0”,随后根据目标预设字符串与反码后的目标输出字符串经过逻辑逆运算,采用“异或”方式进行运算,进行逻辑逆运算后的目标输出字符串中大量的连续的“0”和“1”字符串或规律性较强的字符得到有效的改善,得到第二原始二进制字符串。
由上述可知,本实施例提供的终端数据传输装置,通过获取待发送的第一原始二进制字符串,并根据第一原始二进制字符串和预设字符串生成目标二进制字符串,将目标二进制字符串中连续相同字符的个数是否小于预设个数,随后进行判断,若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对第一原始二进制字符串进行编码,其中第一标识值为二进制字符,完成后向外界发送所述输出字符串和预设字符串,从而无需在发送端设计扰码电路即可实现数据的安全有效传输,方法简单,降低了终端生产成本。
另外,本申请实施例还提供一种移动终端,该移动终端可以是智能手机、平板电脑等设备。如图5所示,移动终端200包括处理器201、存储器202。其中,处理器201与存储器202电性连接。
处理器201是移动终端200的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或加载存储在存储器202内的应用程序,以及调用存储在存储器202内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。
在本实施例中,移动终端200中的处理器201会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器202中,并由处理器201来运行存储在存储器202中的应用程序,从而实现各种功能:
获取待发送的第一原始二进制字符串;
根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;
判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;
若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符;
向外界发送所述输出字符串和预设字符串。
图6示出了本申请实施例提供的移动终端的具体结构框图,该移动终端可以用于实施上述实施例中提供的终端数据传输方法。该移动终端300可以为智能手机或平板电脑。
RF电路310用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路310可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路310可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication, GSM)、增强型移动通信技术(Enhanced Data GSM Environment, EDGE),宽带码分多址技术(Wideband Code Division Multiple Access, WCDMA),码分多址技术(Code Division Access, CDMA)、时分多址技术(Time Division Multiple Access, TDMA),无线保真技术(Wireless Fidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE 802.11n)、网络电话(Voice over Internet Protocol, VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access, Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。
存储器320可用于存储软件程序以及模块,如上述实施例中前置摄像头拍照自动补光系统、方法对应的程序指令/模块,处理器380通过运行存储在存储器320内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现前置摄像头拍照自动补光的功能。存储器320可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器320可进一步包括相对于处理器380远程设置的存储器,这些远程存储器可以通过网络连接至移动终端300。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入单元330可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元330可包括触敏表面331以及其他输入设备332。触敏表面331,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面331上或在触敏表面331附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面331。除了触敏表面331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元340可用于显示由用户输入的信息或提供给用户的信息以及移动终端300的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元340可包括显示面板341,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触敏表面331可覆盖显示面板341,当触敏表面331检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板341上提供相应的视觉输出。虽然在图6中,触敏表面331与显示面板341是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面331与显示面板341集成而实现输入和输出功能。
移动终端300还可包括至少一种传感器350,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板341的亮度,接近传感器可在移动终端300移动到耳边时,关闭显示面板341和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于移动终端300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路360、扬声器361,传声器362可提供用户与移动终端300之间的音频接口。音频电路360可将接收到的音频数据转换后的电信号,传输到扬声器361,由扬声器361转换为声音信号输出;另一方面,传声器362将收集的声音信号转换为电信号,由音频电路360接收后转换为音频数据,再将音频数据输出处理器380处理后,经RF电路310以发送给比如另一终端,或者将音频数据输出至存储器320以便进一步处理。音频电路360还可能包括耳塞插孔,以提供外设耳机与移动终端300的通信。
移动终端300通过传输模块370(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了传输模块370,但是可以理解的是,其并不属于移动终端300的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。
处理器380是移动终端300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行移动终端300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理核心;在一些实施例中,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。
移动终端300还包括给各个部件供电的电源390(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,移动终端300还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序包含用于进行以下操作的指令:
获取待发送的第一原始二进制字符串;
根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;
判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;
若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符;
向外界发送所述输出字符串和预设字符串。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。为此,本申请实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种终端数据传输方法中的步骤。
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种终端数据传输方法中的步骤,因此,可以实现本申请实施例所提供的任一种终端数据传输方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。
综上所述,虽然本申请已以优选实施例揭露如上,但上述优选实施例并非用以限制本申请,本领域的普通技术人员,在不脱离本申请的精神和范围内,均可作各种更动与润饰,因此本申请的保护范围以权利要求界定的范围为准。

Claims (15)

  1. 一种终端数据传输方法,应用于第一移动终端,其包括:
    获取待发送的第一原始二进制字符串;
    根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;
    判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;
    若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符;
    向外界发送所述输出字符串和预设字符串。
  2. 根据权利要求1所述的终端数据传输方法,其中,在判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数之后,所述终端数据传输方法还包括:
    若是,则在所述目标二进制字符串的预设位置插入第二标识值,所述第二标识值为二进制字符,且不同于所述第一标识值。
  3. 根据权利要求1所述的终端数据传输方法,其中,在向外界发送所述输出字符和目标预设字符串后,所述终端数据传输方法还包括:
    接收第二移动端发送的目标输出字符串和目标预设字符串;
    判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值;
    若是,则对所述目标输出字符串进行反码运算,并根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,以对所述目标输出字符串进行解码。
  4. 根据权利要求3所述的终端数据传输方法,其中,所述根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,包括:
    删除反码运算后的所述目标输出字符串中预设位置的字符,得到删除后字符串;
    根据所述目标预设字符串和删除后字符串生成第二原始二进制字符串。
  5. 根据权利要求3所述的终端数据传输方法,其中,在判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值之后,所述终端数据传输的方法还包括:
    若否,删除所述目标输出字符串中预设位置的字符,得到第二原始二进制字符串。
  6. 一种终端数据传输装置,应用于第一移动终端,其包括:
    获取模块,用于获取待发送的第一原始二进制字符串;
    生成模块,用于根据所述第一原始二进制字符串和预设字符串生成目标二进制字符串;
    判断模块,用于判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数;
    编码模块,用于若否,则对所述目标二进制字符串进行反码运算,并在反码运算后的所述目标二进制字符串的预设位置插入第一标识值,得到输出字符串,以对所述第一原始二进制字符串进行编码,所述第一标识值为二进制字符;
    发送模块:用于向外界发送所述输出字符串和预设字符串。
  7. 根据权利要求6所述的终端数据传输装置,其中,所述编码模块还用于:
    在判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数之后,若是,则在所述目标二进制字符串的预设位置插入第二标识值,所述第二标识值为二进制字符,且不同于所述第一标识值。
  8. 根据权利要求6所述的终端数据传输装置,其中,所述终端数据传输装置还包括:
    接收模块,用于在向外界发送所述输出字符和目标预设字符串后,接收第二移动端发送的目标输出字符串和目标预设字符串;
    匹配模块,用于判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值;
    解码模块,用于若是,则对所述目标输出字符串进行反码运算,并根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,以对所述目标输出字符串进行解码。
  9. 根据权利要求8所述的终端数据传输装置,其中,所述解码模块具体用于:
    删除反码运算后的所述目标输出字符串中预设位置的字符,得到删除后字符串;
    根据所述目标预设字符串和删除后字符串生成第二原始二进制字符串。
  10. 根据权利要求8所述的终端数据传输装置,其中,所述解码模块还用于:
    若否,则删除所述目标输出字符串中预设位置的字符,得到第二原始二进制字符串。
  11. 一种计算机可读存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1中所述的一种终端数据传输方法。
  12. 根据权利要求11所述的计算机可读存储介质,其中,在判断所述目标二进制字符串中连续相同字符的个数是否小于预设个数之后,所述处理器还用于执行:
    若是,则在所述目标二进制字符串的预设位置插入第二标识值,所述第二标识值为二进制字符,且不同于所述第一标识值。
  13. 根据权利要求11所述的计算机可读存储介质,其中,在向外界发送所述输出字符和目标预设字符串后,所述处理器还用于执行:
    接收第二移动端发送的目标输出字符串和目标预设字符串;
    判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值;
    若是,则对所述目标输出字符串进行反码运算,并根据反码运算后的所述目标输出字符串确定第二原始二进制字符串,以对所述目标输出字符串进行解码。
  14. 根据权利要求13所述的计算机可读存储介质,其中,所述处理器具体用于执行:
    删除反码运算后的所述目标输出字符串中预设位置的字符,得到删除后字符串;
    根据所述目标预设字符串和删除后字符串生成第二原始二进制字符串。
  15. 根据权利要求13所述的计算机可读存储介质,其中,在判断所述目标输出字符串中处于预设位置的字符是否等于第一标识值之后,所述处理器具体还用于执行:
    若否,删除所述目标输出字符串中预设位置的字符,得到第二原始二进制字符串。
PCT/CN2019/082059 2018-12-24 2019-04-10 终端数据传输方法、装置及存储介质 WO2020133797A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811582714.2 2018-12-24
CN201811582714.2A CN109525372A (zh) 2018-12-24 2018-12-24 终端数据传输方法、装置及存储介质

Publications (1)

Publication Number Publication Date
WO2020133797A1 true WO2020133797A1 (zh) 2020-07-02

Family

ID=65795835

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082059 WO2020133797A1 (zh) 2018-12-24 2019-04-10 终端数据传输方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN109525372A (zh)
WO (1) WO2020133797A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525372A (zh) * 2018-12-24 2019-03-26 深圳市华星光电技术有限公司 终端数据传输方法、装置及存储介质
CN110087080B (zh) * 2019-04-03 2021-03-23 Tcl华星光电技术有限公司 解码方法、设备及可读存储介质
CN110098837B (zh) 2019-04-08 2020-11-06 深圳市华星光电技术有限公司 数据编码方法、解码方法、相关装置及存储介质
CN110086575B (zh) * 2019-05-06 2021-10-08 Tcl华星光电技术有限公司 编码方法、解码方法、相关装置及存储介质
CN112953680B (zh) * 2021-02-10 2022-12-23 Tcl华星光电技术有限公司 编码方法、解码方法、编码装置及解码装置
CN113014357B (zh) * 2021-02-20 2022-03-08 Tcl华星光电技术有限公司 数据编码方法、数据编码装置及存储介质
CN114064308B (zh) * 2021-10-12 2024-12-06 深圳智慧林网络科技有限公司 基于列式数据扫描的多数据发送和接收方法、装置和设备
CN114760009B (zh) * 2022-04-01 2023-07-25 国网综合能源服务集团有限公司 数据流的编解码方法、装置及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0263235A (ja) * 1988-08-29 1990-03-02 Nec Corp スクランブル化符号のデータ伝送方式
JPH03297237A (ja) * 1990-04-16 1991-12-27 Hitachi Ltd データ伝送装置
US5179592A (en) * 1988-09-30 1993-01-12 Nec Corporation Data scrambler and descrambler capable of preventing continuous bit zeros or ones
CN102468918A (zh) * 2010-11-01 2012-05-23 华为技术有限公司 一种无线发送、接收方法以及装置
CN103069762A (zh) * 2010-08-11 2013-04-24 高通股份有限公司 构建用于降低峰均功率比(papr)的极高吞吐量信号(vht-sig)字段
CN103957083A (zh) * 2014-05-16 2014-07-30 江苏中兴微通信息科技有限公司 一种提高信令帧传输鲁棒性的方法及装置
US20150139420A1 (en) * 2013-10-10 2015-05-21 Stmicroelectronics (Grenoble 2) Sas Serial transmission having a low level EMI
CN109525372A (zh) * 2018-12-24 2019-03-26 深圳市华星光电技术有限公司 终端数据传输方法、装置及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11110967A (ja) * 1997-10-01 1999-04-23 Nec Corp 半導体メモリ装置
CN104052577B (zh) * 2014-06-23 2017-11-24 硅谷数模半导体(北京)有限公司 信号传输的处理方法和装置及视频数据的传输方法和系统
CN105072058B (zh) * 2015-08-25 2018-05-25 许继集团有限公司 一种基于光纤传输的数据正反相位编码方法及数据传输方法
CN106788446A (zh) * 2016-11-25 2017-05-31 电子科技大学 一种新的8b/10b编码实现方法

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0263235A (ja) * 1988-08-29 1990-03-02 Nec Corp スクランブル化符号のデータ伝送方式
US5179592A (en) * 1988-09-30 1993-01-12 Nec Corporation Data scrambler and descrambler capable of preventing continuous bit zeros or ones
JPH03297237A (ja) * 1990-04-16 1991-12-27 Hitachi Ltd データ伝送装置
CN103069762A (zh) * 2010-08-11 2013-04-24 高通股份有限公司 构建用于降低峰均功率比(papr)的极高吞吐量信号(vht-sig)字段
CN102468918A (zh) * 2010-11-01 2012-05-23 华为技术有限公司 一种无线发送、接收方法以及装置
US20150139420A1 (en) * 2013-10-10 2015-05-21 Stmicroelectronics (Grenoble 2) Sas Serial transmission having a low level EMI
CN103957083A (zh) * 2014-05-16 2014-07-30 江苏中兴微通信息科技有限公司 一种提高信令帧传输鲁棒性的方法及装置
CN109525372A (zh) * 2018-12-24 2019-03-26 深圳市华星光电技术有限公司 终端数据传输方法、装置及存储介质

Also Published As

Publication number Publication date
CN109525372A (zh) 2019-03-26

Similar Documents

Publication Publication Date Title
WO2020133797A1 (zh) 终端数据传输方法、装置及存储介质
JP7278404B2 (ja) 伝送方法、ネットワーク機器及び端末
WO2019029618A1 (zh) Ims语音通话网络的切换方法、存储设备及移动终端
CN108990105A (zh) 无线通信传输方法、装置、移动终端及计算机可读取存储介质
CN104852802B (zh) 身份验证方法、设备及系统
CN106101776B (zh) 音量调节的方法、智能设备及音箱
WO2019011231A1 (zh) 降低移动终端sar值的方法及存储介质、移动终端
US8244239B2 (en) Communication apparatus, communication method, program, and communication system
CN104837042A (zh) 数字多媒体数据的编码方法和装置
CN106326773A (zh) 一种照片加密管理的方法、装置及终端
CN108124056A (zh) 电子设备的抗干扰方法及相关产品
CN108418969A (zh) 天线馈点的切换方法、装置、存储介质和电子设备
CN106658353A (zh) 一种数据迁移方法及终端设备
CN106445743A (zh) 数据备份传输方法及移动终端
CN106445739B (zh) 一种数据迁移方法及终端设备
US9508349B2 (en) Method, system, and terminal device for transmitting information
CN106454975A (zh) 一种热点网络切换方法及终端设备
CN106413032A (zh) 一种热点建立方法及终端设备
CN106714279A (zh) 一种热点网络切换方法及终端设备
CN106126170A (zh) 一种终端的音效设置方法及终端
CN114629649A (zh) 基于云计算的数据处理方法、装置及存储介质
CN106484563A (zh) 一种数据迁移方法及终端设备
CN106131402A (zh) 一种自拍杆及自拍系统
CN106792434B (zh) 一种热点建立方法及终端设备
CN112888024B (zh) 数据处理方法、装置、存储介质及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19905909

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19905909

Country of ref document: EP

Kind code of ref document: A1