CN113971876A - Terminal communication method, terminal device, terminal and storage medium - Google Patents

Terminal communication method, terminal device, terminal and storage medium Download PDF

Info

Publication number
CN113971876A
CN113971876A CN202010712442.4A CN202010712442A CN113971876A CN 113971876 A CN113971876 A CN 113971876A CN 202010712442 A CN202010712442 A CN 202010712442A CN 113971876 A CN113971876 A CN 113971876A
Authority
CN
China
Prior art keywords
terminal
control
control information
data format
preset data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010712442.4A
Other languages
Chinese (zh)
Other versions
CN113971876B (en
Inventor
上官悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010712442.4A priority Critical patent/CN113971876B/en
Publication of CN113971876A publication Critical patent/CN113971876A/en
Application granted granted Critical
Publication of CN113971876B publication Critical patent/CN113971876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present disclosure provides a communication method of a terminal, a terminal device, a terminal, and a storage medium. The communication method of the terminal comprises the following steps: responding to the control operation of the terminal, generating control information according to the control operation, and caching the control information according to a preset data format, wherein the data type of the preset data format is the data type occupying the least memory; the control information is transmitted to the target device. The data type occupying the least memory is adopted by setting the preset data format, so that the data length in the communication process can be reduced, the communication power consumption is reduced, and the cruising ability of the terminal is improved.

Description

Terminal communication method, terminal device, terminal and storage medium
Technical Field
The present disclosure relates to the field of intelligent terminal technologies, and in particular, to a terminal communication method, a terminal device, a terminal, and a storage medium
Background
With the progress of science, more and more intelligent terminals are going into daily life. The intelligent ring is a novel intelligent terminal, some intelligent rings can be interconnected with a mobile phone, control information is sent to the mobile phone to control the mobile phone, the size of the intelligent ring is small, the electric quantity capable of being stored is small, and the power consumption is reduced, so that the service life of the intelligent ring is prolonged.
Disclosure of Invention
To solve the existing problems, the present disclosure provides a communication method of a terminal, a terminal device, a terminal, and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a communication method of a terminal, including: responding to the control operation of the terminal, and generating control information according to the control operation;
caching control information according to a preset data format, wherein the data type of the preset data format is the data type occupying the least memory;
and sending the control information to the target equipment.
In some embodiments, the present disclosure provides a terminal device comprising:
a response unit configured to generate control information according to a control operation in response to the control operation on the terminal apparatus;
the cache unit is used for caching the control information according to a preset data format, wherein the data type of the preset data format is the data type occupying the least memory;
a communication unit for transmitting the control information to a target device.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor;
the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described method.
In the communication method of the terminal provided by the embodiment of the disclosure, the preset data format is set to adopt the data type occupying the least memory, so that the data length in the communication process can be reduced, the communication power consumption is reduced, and the cruising ability of the terminal is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a communication method of a terminal according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of a terminal according to an embodiment of the disclosure.
Fig. 3 is a block diagram of a terminal device according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
The intelligent ring is novel intelligent terminal, and the intelligent ring can link to each other with other terminals such as cell-phone, can send control information in order to control other terminals to linking to each other with the intelligent ring through controlling the intelligent ring. The intelligent ring is limited by the size of the intelligent ring, and the electric quantity capable of being stored is very limited, so that the power consumption of the intelligent ring is reduced to prolong the service life of the intelligent ring, and the improvement of user experience is very important.
In a communication method of a terminal according to an embodiment of the present disclosure, the terminal may be, for example, an intelligent ring, as shown in fig. 1, the communication method of the terminal in this embodiment includes:
s11: responding to the control operation of the terminal, and generating control information according to the control operation;
in some embodiments, the control information may be data that is preset in the terminal and then sent to the target device by the terminal at regular time, or the control information may be generated in response to a control operation on the terminal. The control operation for the terminal may be, for example, a turning operation, a sliding operation, a pressing operation, or the like. Taking the terminal as an intelligent ring as an example, the control operation can be a rotation operation on the ring, the rotation operation can be divided into two types according to different rotation directions (clockwise rotation and anticlockwise rotation), the intelligent ring can be provided with a button or a touch area, and the control operation can be a pressing operation on the button or a sliding operation and a pressing operation in the touch area.
S12: and caching the control information according to a preset data format.
In this embodiment, the preset data format is a data format for caching control information, and the preset data format may be, for example, a variable, an array, an object, and the like. The control information may be an instruction for controlling a target device communicatively connected to the terminal. In this embodiment, the data type of the predetermined data format is the data type that occupies the least memory. Common data types in the computer field include int, float, long, and the like, and a data type in a preset data format occupies a minimum memory, for example, taking C or C + + language as an example, the data type in the preset data format may be a char (character) type.
S13: the control information is transmitted to the target device.
In this embodiment, control information cached in a preset data format is sent to a target device, that is, a communication connection is established between a terminal and the target device, the data format of the control information sent between the terminal and the target device is the preset data format, and since the data type of the preset data format occupies the minimum memory, the data length between the terminal and the target device can be reduced, so that communication power consumption is reduced, the control information is cached in the terminal, and the cache can be cleared after the control information is sent to the target device, so as to further reduce energy consumption. The target device in this embodiment may be any device such as a mobile phone, a tablet, a computer, or an earphone.
In the process that the terminal sends the control information cached in the preset data format to the target device, the data type of the preset data format affects communication power consumption in the communication process, and therefore in some embodiments of the present disclosure, the preset data format is set to adopt the data type occupying the least memory, so that the data length in the communication process between the terminal and the target device can be reduced, the communication power consumption is reduced, and the cruising ability of the terminal is improved.
For example, a terminal is taken as a ring, and a target device is taken as a mobile phone in communication connection with the ring. A user can generate control information by rotating the ring or pressing a button on the ring and the like, after the control information is generated, the generated control information is cached in the ring by adopting a preset data format, then the cached control information with the preset data format is transmitted to the mobile phone, in order to reduce the data volume transmitted in the transmission process and further reduce the communication power consumption, the preset data format adopts a data type occupying the least memory, for example, the ring adopts C or C + + language, the data type with the preset data format is a char type, and a char type variable only occupies one byte, so that the data length in the communication process between the ring and the mobile phone can be reduced, and the communication power consumption is reduced.
In some embodiments of the disclosure, in response to the control operation of the terminal, comprising: and detecting the control operation on the terminal every preset time. Specifically, if the control operation on the terminal is detected, the control information is generated and cached according to a preset data format. In this embodiment, whether the control operation exists is not determined by real-time monitoring, but the control operation is detected once every preset time length, so that power consumption can be reduced and the cruising ability of the terminal can be further prolonged. In some embodiments, the preset time period may be less than or equal to 20ms, and by setting the preset time period to be not greater than 20ms, the interval between generating the control information and transmitting the control information to the target device may be reduced, thereby preventing the user experience from being degraded due to the delay. For example, a user performs control operation on a terminal to generate control information, and the terminal detects whether the control operation is generated every preset time, so that the longest time interval between the time when the user performs the control operation and the time when the terminal sends the cached control information to the target device is equal to the preset time, that is, the longest time of response delay of the target device is equal to the preset time, and by limiting the maximum value of the preset time to be 20ms, the user does not feel obvious jamming and delay at the moment, thereby preventing the user experience from being reduced.
In some embodiments of the present disclosure, the control information includes a control type and a control value. In some embodiments, the operation performed by the user on the terminal may be a pressing operation, a sliding operation, or other operation types, different operation types correspond to control information of different control types, and the control value may be the number of times or degree of the performed control operation. For example, taking the terminal as a ring as an example, the terminal may perform operations of rotating clockwise, rotating counterclockwise or pressing a button on the ring, generate control information of a first control type when the ring is rotated clockwise, generate control information of a second control type when the ring is rotated counterclockwise, the control value may be a rotation angle value, generate control information of a third control type when the ring is pressed, and the control value may be the number of times of pressing the button on the ring. For another example, a volume key for adjusting the target device is provided on the terminal, when the user presses the volume key to adjust the volume, the control type in the control information may be used to represent whether the user presses the volume key up or down, and the control value may be used to represent the number of times the user presses the volume key.
In some embodiments of the present disclosure, the preset data format includes: the cache control system comprises a first variable and a second variable, wherein the first variable is used for caching a control type, and the second variable is used for caching a control value. Alternatively, the preset data format may include only the first variable and the second variable. Optionally, the data types of the first variable and the second variable are the data types that occupy the least memory. For example, in this embodiment, the preset data format is a set including a first variable and a second variable, for example, the preset data format may be an array, the data type occupying the minimum memory may be a char type, the preset data format is an array of the char type at this time, and the first variable and the second variable are members of two char types in the array.
In some embodiments of the present disclosure, the control value is cached with x bits in the predetermined data format and the control value is cached with y bits in the predetermined data format, and x and y are positive integers not less than 1. The bits used to represent the control values are not used to represent the control type at the same time, and optionally, the predetermined data format has x + y bits in total. In the programming language, all variables are represented by 2-bit, 1-byte variable is a binary number with 8 bits, so that one byte can represent 256 values at most, but the control value is much smaller than 256 in many times, so that all bits in the binary system are not required to represent the control value, only a part of the bits are used to represent the control value, and other bits can be used to represent the control type, thereby further reducing the data length. For example, the preset data format may be 1 glyph type variable, the glyph type variable is an 8-bit binary number, at this time, the first 3 bits of the binary number may be used to represent the control type, and thus, the control information of different control types in 8 may be represented altogether, the last 5 bits of the binary number may be used to represent the control value, and a total of 32 control values may be represented. In the embodiment, only one variable is needed to simultaneously represent the control type and the control value, so that the data length is reduced, and the cruising ability is improved.
In some embodiments of the present disclosure, the control information is transmitted to the target device via bluetooth. Bluetooth power consumption is lower, is favorable to prolonging duration. In some embodiments of the present disclosure, the terminal includes a ring, which may be a smart ring.
In order to better explain the control method of the terminal proposed by the embodiment of the present disclosure, a specific embodiment is proposed below. In this embodiment, taking a terminal as a ring, taking a target device as a mobile phone as an example, the ring may be a ring as shown in fig. 2, where the ring is provided with three control areas, that is, a first touch area, a second touch area, and a pressure sensing area, and may detect whether a user operates in the control areas through a sensor in the ring, generate control information after detecting that the user operates in the control areas, detect whether a control operation occurs every 20ms by the ring, for example, detect whether a control operation occurs through a notify middleware, and generate control information if the control operation occurs, where a control type of the control information is used to indicate which control area the user performs an operation, a control number is used to indicate the number of times of sliding or the number of times of pressing, and a char type array is used as a preset data format in the ring to cache the control information to reduce data length and power consumption, the array of char type can only have two member variables, one is used for caching control type and the other is used for caching control quantity, then the ring can send the char array to the mobile phone through Bluetooth, and the mobile phone is controlled according to the control information.
As shown in fig. 3, an embodiment of the present disclosure further provides a terminal apparatus, including:
a response unit 10 for generating control information according to a control operation in response to the control operation for the terminal apparatus;
the cache unit 20 is configured to cache the control information according to a preset data format, where a data type of the preset data format is a data type that occupies the least memory;
a communication unit 30 for transmitting the control information to a target device.
For the embodiments of the terminal device, since they basically correspond to the method embodiments, the relevant points may be referred to the partial description of the method embodiments. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The terminal communication method and apparatus of the present disclosure have been described above based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
Referring now to fig. 4, a schematic diagram of an electronic device (e.g., a terminal device or server) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (hypertext transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a communication method of a terminal, including:
responding to the control operation of the terminal, and generating control information according to the control operation;
caching control information according to a preset data format, wherein the data type of the preset data format is the data type occupying the least memory;
and sending the control information to the target equipment.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, in response to a control operation of the terminal, including:
and detecting the control operation on the terminal every preset time length.
According to one or more embodiments of the present disclosure, there is provided a communication method of a terminal, in which the control information includes a control type and a control value.
According to one or more embodiments of the present disclosure, there is provided a communication method of a terminal, where the preset data format includes: a first variable and a second variable, wherein the first variable is used for caching the control type, and the second variable is used for caching the control value;
alternatively, the first and second electrodes may be,
and caching the control type by using x bits in the preset data format, and caching the control value by using y bits in the preset data format, wherein x and y are positive integers not less than 1.
According to one or more embodiments of the present disclosure, a communication method of a terminal is provided, where a data type of the preset data format is a character type.
According to one or more embodiments of the present disclosure, there is provided a communication method of a terminal, which transmits the control information to a target device through bluetooth.
According to one or more embodiments of the present disclosure, a communication method of a terminal is provided, the terminal including a ring.
According to one or more embodiments of the present disclosure, there is provided a terminal apparatus including:
a response unit configured to generate control information according to a control operation in response to the control operation on the terminal apparatus;
the cache unit is used for caching the control information according to a preset data format, wherein the data type of the preset data format is the data type occupying the least memory;
a communication unit for transmitting the control information to a target device.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor;
wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A communication method of a terminal, comprising:
responding to the control operation of the terminal, and generating control information according to the control operation;
caching the control information according to a preset data format, wherein the data type of the preset data format is the data type occupying the least memory;
and sending the control information to the target equipment.
2. The communication method of the terminal according to claim 1, wherein in response to the control operation of the terminal, comprising:
and detecting the control operation on the terminal every preset time.
3. The communication method of a terminal according to claim 1,
the control information includes a control type and a control value.
4. The communication method of a terminal according to claim 3,
the preset data format comprises: a first variable and a second variable, wherein the first variable is used for caching the control type, and the second variable is used for caching the control value;
alternatively, the first and second electrodes may be,
and caching the control type by using x bits in the preset data format, and caching the control value by using y bits in the preset data format, wherein x and y are positive integers not less than 1.
5. The communication method of a terminal according to claim 1,
the data type of the preset data format is a character type.
6. The communication method of a terminal according to claim 1,
and sending the control information to the target equipment through Bluetooth.
7. The communication method of the terminal according to claim 1, wherein the terminal includes a ring.
8. A terminal device, comprising:
a response unit configured to generate control information according to a control operation in response to the control operation on the terminal apparatus;
the cache unit is used for caching the control information according to a preset data format, wherein the data type of the preset data format is the data type occupying the least memory;
a communication unit for transmitting the control information to a target device.
9. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 7.
10. A storage medium for storing program code for performing the method of any one of claims 1 to 7.
CN202010712442.4A 2020-07-22 2020-07-22 Terminal communication method, terminal device, terminal, and storage medium Active CN113971876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010712442.4A CN113971876B (en) 2020-07-22 2020-07-22 Terminal communication method, terminal device, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010712442.4A CN113971876B (en) 2020-07-22 2020-07-22 Terminal communication method, terminal device, terminal, and storage medium

Publications (2)

Publication Number Publication Date
CN113971876A true CN113971876A (en) 2022-01-25
CN113971876B CN113971876B (en) 2023-02-28

Family

ID=79584966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010712442.4A Active CN113971876B (en) 2020-07-22 2020-07-22 Terminal communication method, terminal device, terminal, and storage medium

Country Status (1)

Country Link
CN (1) CN113971876B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721982A (en) * 2022-03-22 2022-07-08 潍柴动力股份有限公司 Read-write processing method and system capable of configuring storage data types

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175160A (en) * 1996-05-03 1998-03-04 三星电子株式会社 Viewer selecting type captions broadcasting and receiving method and equipment adapted for syllabic language
US6763040B1 (en) * 1999-04-29 2004-07-13 Amx Corporation Internet control system communication protocol and method
US20060069963A1 (en) * 2004-09-15 2006-03-30 Alstom Transport Sa Device and method for controlling a console
CN101599213A (en) * 2008-06-04 2009-12-09 Vega格里沙贝两合公司 Be used for determining method, program element and the field device system of telegram length
CN102263565A (en) * 2010-05-24 2011-11-30 Smk株式会社 Radio communication module, remote controller, and radio system
CN106200630A (en) * 2016-07-12 2016-12-07 上海集成电路研发中心有限公司 A kind of ability of posture control remote manipulator system and remote control thereof
CN106648028A (en) * 2016-12-22 2017-05-10 珠海市魅族科技有限公司 Wearable intelligent terminal power source management method and device
CN107421758A (en) * 2017-06-01 2017-12-01 西北农林科技大学 A kind of miniature mountain region crawler body test platform
CN109429268A (en) * 2017-08-30 2019-03-05 珠海市魅族科技有限公司 Communication means, device, access point apparatus and the site apparatus of WLAN
CN110401713A (en) * 2019-07-25 2019-11-01 武汉大势智慧科技有限公司 Intelligent unmanned plane clouds terrace system, equipment and storage medium
CN111083447A (en) * 2019-12-30 2020-04-28 中国电子科技集团公司第十一研究所 Network communication method, device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1175160A (en) * 1996-05-03 1998-03-04 三星电子株式会社 Viewer selecting type captions broadcasting and receiving method and equipment adapted for syllabic language
US6763040B1 (en) * 1999-04-29 2004-07-13 Amx Corporation Internet control system communication protocol and method
US20060069963A1 (en) * 2004-09-15 2006-03-30 Alstom Transport Sa Device and method for controlling a console
CN101599213A (en) * 2008-06-04 2009-12-09 Vega格里沙贝两合公司 Be used for determining method, program element and the field device system of telegram length
CN102263565A (en) * 2010-05-24 2011-11-30 Smk株式会社 Radio communication module, remote controller, and radio system
CN106200630A (en) * 2016-07-12 2016-12-07 上海集成电路研发中心有限公司 A kind of ability of posture control remote manipulator system and remote control thereof
CN106648028A (en) * 2016-12-22 2017-05-10 珠海市魅族科技有限公司 Wearable intelligent terminal power source management method and device
CN107421758A (en) * 2017-06-01 2017-12-01 西北农林科技大学 A kind of miniature mountain region crawler body test platform
CN109429268A (en) * 2017-08-30 2019-03-05 珠海市魅族科技有限公司 Communication means, device, access point apparatus and the site apparatus of WLAN
CN110401713A (en) * 2019-07-25 2019-11-01 武汉大势智慧科技有限公司 Intelligent unmanned plane clouds terrace system, equipment and storage medium
CN111083447A (en) * 2019-12-30 2020-04-28 中国电子科技集团公司第十一研究所 Network communication method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114721982A (en) * 2022-03-22 2022-07-08 潍柴动力股份有限公司 Read-write processing method and system capable of configuring storage data types

Also Published As

Publication number Publication date
CN113971876B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
CN110795022B (en) Terminal testing method, system and storage medium
EP4089516A1 (en) Icon updating method and apparatus, and electronic device
CN112256231A (en) Volume control method, device, terminal and storage medium
CN110658961A (en) Information display method and device and electronic equipment
CN110781150A (en) Data transmission method and device and electronic equipment
CN111787513B (en) Method and apparatus for playing audio
CN114217707A (en) Sharing method, sharing device, electronic equipment, storage medium and computer program product
CN112256371A (en) Method and device for displaying information and electronic equipment
CN113971876B (en) Terminal communication method, terminal device, terminal, and storage medium
CN114786055A (en) Preloading method, preloading device, electronic equipment and medium
RU2601432C2 (en) Setting of a given transmission modulation by peers
CN111478916B (en) Data transmission method, device and storage medium based on video stream
CN110572805A (en) Data transmission method and device, electronic equipment and computer readable medium
CN113518183B (en) Camera calling method and device and electronic equipment
CN111444457B (en) Data release method and device, storage medium and electronic equipment
CN111290692B (en) Picture display method and device, electronic equipment and computer readable medium
CN112306317A (en) Unread message notification method and device and electronic equipment
CN112163176A (en) Data storage method and device, electronic equipment and computer readable medium
CN111241443A (en) Method and device for pushing information and electronic equipment
CN112019685A (en) Terminal control method and device, terminal and storage medium
CN111405341A (en) Control display method and device and electronic equipment
CN111694679B (en) Message processing method and device and electronic equipment
CN111309323A (en) Parameter initialization method and device and electronic equipment
CN114006880B (en) Method and device for acquiring message receipt, electronic equipment and storage medium
CN114745276B (en) Switch bandwidth adjusting method and device, electronic equipment and computer readable medium

Legal Events

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