CN107342981B - Sensor data transmission method and device and virtual reality head-mounted equipment - Google Patents

Sensor data transmission method and device and virtual reality head-mounted equipment Download PDF

Info

Publication number
CN107342981B
CN107342981B CN201710422367.6A CN201710422367A CN107342981B CN 107342981 B CN107342981 B CN 107342981B CN 201710422367 A CN201710422367 A CN 201710422367A CN 107342981 B CN107342981 B CN 107342981B
Authority
CN
China
Prior art keywords
client
sensor data
server
request message
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710422367.6A
Other languages
Chinese (zh)
Other versions
CN107342981A (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 Pico Technology Co Ltd
Original Assignee
Beijing Pico 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 Pico Technology Co Ltd filed Critical Beijing Pico Technology Co Ltd
Priority to CN201710422367.6A priority Critical patent/CN107342981B/en
Publication of CN107342981A publication Critical patent/CN107342981A/en
Application granted granted Critical
Publication of CN107342981B publication Critical patent/CN107342981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The invention discloses a method and a device for transmitting sensor data and virtual reality head-mounted equipment, wherein the method comprises the following steps: acquiring sensor data acquired by a sensor; judging whether the client list records the relevant information of the client connected with the server, wherein the client list is used for recording the relevant information of the client connected with the server; and sending the sensor data to the client side connected with the server side under the condition that the judgment result is that the relevant information of the client side connected with the server side is recorded. According to one embodiment of the invention, the delay time is reduced and the performance of the device is improved.

Description

Sensor data transmission method and device and virtual reality head-mounted equipment
Technical Field
The invention relates to the technical field of data transmission, in particular to a method and a device for transmitting sensor data and virtual reality head-mounted equipment.
Background
Sensors are an important component of user interaction with intelligent hardware devices (e.g., virtual reality headsets). A software program running on the intelligent hardware device calculates information such as the position, the posture and the motion trail of the intelligent hardware device in the space by using data acquired by a sensor (for example, a gyroscope or an accelerometer), and displays the calculated position, the posture and the motion trail of the intelligent hardware device on a display screen. From the acquisition of the data of the sensor to the display of the corresponding position, posture and motion track on the display screen according to the data acquired by the sensor, the time required by the whole process is the delay time of the intelligent hardware equipment. From the performance perspective of the intelligent hardware device, the shorter the delay time, the better the performance.
Taking the android system as an example, a software program running on the intelligent hardware device acquires sensor data through a sensor service end (SensorService) of the android system. Each software program needs to register a listener. The listener is used for monitoring whether the SensorService of the android system acquires new sensor data. And if the listener monitors that the SensorService acquires new sensor data, the software program reads the sensor data from the SensorService. Meanwhile, the SensorService is also used for judging the registration number of the listeners and sending the acquired sensor data to each software program according to the registration number of the listeners. The listener and the SensorService execute respective corresponding operation instructions, and both need to call a thread (Looper) message management process. The Looper message management process can be responsible for managing message queues and message loops of multiple threads, and is not limited to calling by a listener and a SensorService. Therefore, when other threads call the Looper message management process, the listener and the SensorService are in a waiting state, which causes the above-mentioned delay time to be too long, and reduces the performance of the intelligent hardware device.
Therefore, it is necessary to provide a new technical solution, which is improved in view of the above technical problems in the prior art.
Disclosure of Invention
An object of the present invention is to provide a new technical solution of a method for transmitting sensor data.
According to a first aspect of the present invention, there is provided a method of transmitting sensor data, comprising:
acquiring sensor data acquired by a sensor;
judging whether the client list records the relevant information of the client connected with the server, wherein the client list is used for recording the relevant information of the client connected with the server;
and sending the sensor data to the client side connected with the server side under the condition that the judgment result is that the relevant information of the client side connected with the server side is recorded.
Optionally, before determining whether the client list records information about clients to which the server has established a connection, the method further includes:
according to the received request message of the client, the relevant information of the client recorded in the client list is changed; wherein the content of the first and second substances,
under the condition that the received request message of the client is a connection establishment request message, storing the relevant information of the client which sends the connection establishment request message into the client list; alternatively, the first and second electrodes may be,
and in the case that the received request message of the client is a disconnection request message, deleting the relevant information of the client sending the disconnection request message from the client list.
Optionally, the relevant information of the client includes at least: identification information of the client and transmission frequency information of sensor data received by the client.
Optionally, after acquiring the sensor data acquired by the sensor, the method further includes:
converting the sensor data to obtain sensor data in a preset data format;
storing the sensor data in the preset data format into a data queue;
sending the sensor data to a client connected with the server, comprising:
acquiring sensor data to be transmitted from the data queue;
and sending the sensor data to be transmitted to the corresponding client according to the transmission frequency information of the sensor data received by the client.
Optionally, after sending the sensor data to be transmitted to the corresponding client, the method further includes:
and deleting the sensor data to be transmitted from the data queue.
Optionally, in a case that the determination result is that no relevant information of the client that has established the connection with the server is recorded, the method further includes:
and deleting the sensor data.
According to a second aspect of the present invention, there is provided a transmission device of sensor data, comprising:
the acquisition module is used for acquiring sensor data acquired by the sensor;
the judging module is used for judging whether the client list records the relevant information of the client connected with the server, wherein the client list is used for recording the relevant information of the client connected with the server;
and the sending module is used for sending the sensor data to the client side with the connection established by the server side under the condition that the judgment result is that the relevant information of the client side with the connection established by the server side is recorded.
Optionally, the apparatus further comprises:
the change module is used for changing the relevant information of the client recorded in the client list according to the received request message of the client;
wherein the altering module is further to: under the condition that the received request message of the client is a connection establishment request message, storing the relevant information of the client which sends the connection establishment request message into the client list; alternatively, the first and second electrodes may be,
and in the case that the received request message of the client is a disconnection request message, deleting the relevant information of the client sending the disconnection request message from the client list.
Optionally, the apparatus further comprises:
the conversion module is used for converting the sensor data to obtain sensor data in a preset data format;
the storage module is used for storing the sensor data in the preset data format into a data queue;
the sending module is further configured to:
acquiring sensor data to be transmitted from the data queue;
and sending the sensor data to be transmitted to the corresponding client according to the transmission frequency information of the sensor data received by the client.
According to a third aspect of the invention, there is provided a virtual reality headset comprising a sensor and the transmission device of any one of the above, wherein the sensor transmits acquired sensor data to the transmission device.
According to one embodiment of the invention, communication connection is established between the server and the client, relevant information of the client which is in communication connection with the server is recorded in the client list, and after the server acquires the sensor data, whether the acquired sensor data is sent to the corresponding client is determined according to whether the relevant information of the client is recorded in the client list, so that real-time transmission of the sensor is realized. In addition, compared with the prior art, the method and the device do not need to register the listener and call the message management thread of the system any more, so that the problem that the listener needs to wait because other threads call the message management thread of the system is avoided, the delay time is further reduced, and the performance of the device is improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 shows a process flow diagram of a method of transmitting sensor data according to one embodiment of the invention.
FIG. 2 illustrates a process flow diagram for modifying a client list according to one embodiment of the invention.
FIG. 3 shows a flow diagram for processing acquired sensor data according to one embodiment of the invention.
Fig. 4 shows another process flow diagram of a method of transmitting sensor data according to an embodiment of the invention.
Fig. 5 shows a schematic configuration of a sensor data transmission device according to an embodiment of the present invention.
Fig. 6 is another schematic structural diagram of a sensor data transmission device according to an embodiment of the present invention.
Fig. 7 shows a schematic structural diagram of a virtual reality headset according to an embodiment of the invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
One embodiment of the invention provides a method for transmitting sensor data. Fig. 1 shows a process flow diagram of a method of transmitting sensor data according to one embodiment of the invention. Referring to fig. 1, the method includes at least steps S102 to S106.
Step S102, acquiring sensor data acquired by a sensor;
step S104, judging whether the client list records the relevant information of the client connected with the server, wherein the client list is used for recording the relevant information of the client connected with the server;
and step S106, sending the sensor data to the client side which is connected with the server side under the condition that the judgment result is that the relevant information of the client side which is connected with the server side is recorded.
In the embodiment of the invention, the communication connection is established between the server and the client, the relevant information of the client which is in communication connection with the server is recorded in the client list, and after the server acquires the sensor data, whether the acquired sensor data is sent to the corresponding client is determined according to whether the relevant information of the client is recorded in the client list, so that the real-time transmission of the sensor is realized. In addition, compared with the prior art, the method and the device do not need to register the listener and call the message management thread of the system any more, so that the problem that the listener needs to wait because other threads call the message management thread of the system is avoided, the delay time is further reduced, and the performance of the device is improved.
The sensor transmission method provided by the embodiment of the invention is suitable for intelligent terminal equipment provided with any type of sensor, such as virtual reality head-mounted equipment. The server side related to the embodiment of the invention is an operating system of the intelligent terminal equipment, and the client side is various applications running on the intelligent terminal equipment, such as game applications, video applications and the like.
In an embodiment of the present invention, the client list is used to record relevant information of a client that has established a connection with the server, where the relevant information of the client at least includes: identification information of the client and transmission frequency information of sensor data received by the client. The transmission frequency information of the sensor data received by the client refers to the quantity of the sensor data received by the client in unit time. For example, 100 data are collected by a sensor within 1s, and 10 data can be received within 1s by a certain client, and at this time, before sending the sensor data to the client, 100 data within 1s need to be processed, that is, 10 data are uniformly screened out from the 100 data, and the screened 10 data are sent to the client. The screened 10 data can ensure that the position, the posture and the motion track of the intelligent terminal device within the 1s are calculated.
In an embodiment of the present invention, before determining whether the client list records the relevant information of the client connected to the server, the relevant information of the client recorded in the client list may be changed according to the received request message of the client. And when the server receives a connection establishment request message of the client, storing the relevant information of the client sending the connection establishment request into a client list. When the server receives the disconnection request message of the client, the related information of the client sending the disconnection request message is deleted from the client list.
FIG. 2 illustrates a process flow diagram for modifying a client list according to one embodiment of the invention. Referring to fig. 2, the process flow diagram for changing the client list includes at least steps S202 to S212.
Step S202, receiving a request message of a client;
step S204, judging whether the request message of the client is the request message for establishing the connection;
if the determination result in the step S204 is yes, step S206 is executed to store the relevant information of the connected client to the client list;
if the determination result in the step S204 is no, then step S208 is executed to determine whether the request message of the client is a request message for disconnecting the connection;
if the determination result in the step S208 is yes, executing step S210 to delete the relevant information of the disconnected client from the client list;
if the determination result in step S208 is negative, step S212 is executed to wait for receiving the request message of the client.
In one embodiment of the invention, the sensor data is processed after the sensor data collected by the sensor is acquired. Specifically, the sensor data is converted to obtain sensor data in a predetermined data format, and then the sensor data in the predetermined data format is stored in a data queue. FIG. 3 shows a flow diagram for processing acquired sensor data according to one embodiment of the invention. Referring to fig. 3, a flow diagram for processing acquired sensor data includes at least steps S302 to S306.
Step S302, reading data collected by a sensor from a sensor node;
step S304, converting the read sensor data into data in a preset sensor format; for example, if the server is an android system, converting the read sensor data into data in a sensor format suitable for the android system;
step S306, adding data in a predetermined sensor format to the data queue.
In an embodiment of the present invention, in a case that the determination result indicates that the information related to the client that has established connection with the server is recorded, the sensor data to be transmitted is taken out from the data queue and sent to the client that is recorded in the client list. And when a plurality of clients are recorded in the client list, sending the sensor data taken out from the data queue to the corresponding clients one by one. And processing the sensor data to be transmitted according to the recorded transmission frequency information of the sensor data corresponding to each client, and sending the processed sensor data to the corresponding clients one by one. And after the sensor data to be transmitted are successfully sent to the corresponding client, deleting the sensor data from the data queue. And then, sending the sensor data to be transmitted next in the data queue to the client recorded in the client list.
In an embodiment of the present invention, in a case that the determination result is that information related to the client that has established connection with the server is not recorded, the acquired sensor data is deleted.
In the method for transmitting sensor data provided in the embodiment of the present invention, the acquisition of the sensor data acquired by the sensor is performed in real time, and the transmission of the acquired sensor data to the client is also performed in real time, and the client may be connected to or disconnected from the server at any time. The three parts are parallel, and the server can define three threads, namely a sensor data reading thread, a client managing thread and a sensor data sending thread. And adding the sensor data into the data queue by the sensor data reading thread. And when the sensor data is recorded in the data queue, the data sending thread takes out the sensor data from the data queue and sends the sensor data to the client managing the thread record of the client. And when the sensor data is not recorded in the data queue, the sensor data sending thread is in a waiting state, and when the sensor data reading thread adds data into the data queue, the sensor data sending thread is awakened.
The method for transmitting sensor data according to the present invention is further described with reference to a specific embodiment. Fig. 4 shows another process flow diagram of a method of transmitting sensor data according to an embodiment of the invention. Referring to fig. 4, the method includes at least steps S402 to S412.
Step S402, judging whether sensor data are added into the data queue;
if the determination result in the step S402 is yes, executing a step S404, taking out the sensor data from the data queue, and deleting the taken out sensor data from the data queue;
if the determination result in the step S404 is negative, continuing to execute the step S402;
step S406, judging whether the client list records the relevant information of the client establishing the connection with the server;
if the determination result in the step S406 is yes, executing a step S408, and sending the taken out sensor data to the client side recorded in the client side list;
if the determination result in the step S406 is negative, executing a step S410 to delete the taken out sensor data;
in step S412, the client performs a corresponding operation using the received sensor data.
Steps S402 to S410 are performed at the server, and step S412 is performed at the client.
Based on the same inventive concept, the invention also provides a sensor data transmission device. Fig. 5 shows a schematic configuration of a sensor data transmission device according to an embodiment of the present invention. Referring to fig. 5, the apparatus includes at least: an obtaining module 510, configured to obtain sensor data acquired by a sensor; a determining module 520, configured to determine whether a client list records information about a client that has established a connection with a server, where the client list is used to record information about a client that has established a connection with a server; a sending module 530, configured to send the sensor data to the client that the server has established connection if the determination result indicates that the information related to the client that the server has established connection is recorded.
Referring to fig. 6, the sensor data transmission apparatus further includes: and the changing module 540 is configured to change the relevant information of the client recorded in the client list according to the received request message of the client.
In an embodiment of the present invention, the modifying module 540 is further configured to: under the condition that the received request message of the client is a connection establishment request message, storing the relevant information of the client which sends the connection establishment request message into a client list; or, in the case that the received request message of the client is a disconnection request message, deleting the relevant information of the client which sent the disconnection request message from the client list.
In an embodiment of the present invention, the information related to the client includes at least: identification information of the client and transmission frequency information of sensor data received by the client.
Referring to fig. 6, the sensor data transmission apparatus further includes: a conversion module 550, configured to convert the sensor data to obtain sensor data in a predetermined data format; a saving module 560, configured to save the sensor data in the predetermined data format into a data queue;
in an embodiment of the present invention, the sending module 530 is further configured to: acquiring sensor data to be transmitted from a data queue; and sending the sensor data to be transmitted to the corresponding client according to the transmission frequency information of the sensor data received by the client.
In one embodiment of the present invention, referring to fig. 6, the transmission device of sensor data further includes: a first deleting module 570 configured to delete the sensor data to be transmitted from the data queue.
Referring to fig. 6, the sensor data transmission apparatus further includes: and a second deleting module 580 configured to delete the sensor data if the determination result indicates that the information about the client connected to the server is not recorded.
Based on the same inventive concept, the invention provides virtual reality head-mounted equipment. Fig. 7 shows a schematic structural diagram of a virtual reality headset according to an embodiment of the invention. Referring to fig. 7, a virtual reality headset 700 includes at least a sensor 710 and a transmission means 720 of sensor data. The sensor 710 transmits the collected sensor data to the sensor data transmission device 720.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions 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). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (8)

1. A method for transmitting sensor data, comprising:
acquiring sensor data acquired by a sensor;
judging whether a client list records relevant information of clients which are connected with a server, wherein the client list is used for recording the relevant information of the clients which are connected with the server;
in the case that the judgment result is that the relevant information of the client connected with the server is recorded, the sensor data is sent to the client connected with the server,
wherein the connection establishment is communication connection establishment, the server is a sensor server,
before determining whether the client list records information related to a client to which the server has established a connection, the method further includes:
according to the received request message of the client, the relevant information of the client recorded in the client list is changed; wherein the content of the first and second substances,
under the condition that the received request message of the client is a connection establishment request message, storing the relevant information of the client which sends the connection establishment request message into the client list; alternatively, the first and second electrodes may be,
and in the case that the received request message of the client is a disconnection request message, deleting the relevant information of the client sending the disconnection request message from the client list.
2. The method according to claim 1, wherein the information related to the client comprises at least: identification information of the client and transmission frequency information of sensor data received by the client.
3. The method of claim 1 or 2, wherein after acquiring sensor data collected by the sensor, the method further comprises:
converting the sensor data to obtain sensor data in a preset data format;
storing the sensor data in the preset data format into a data queue;
sending the sensor data to a client connected with the server, comprising:
acquiring sensor data to be transmitted from the data queue;
and sending the sensor data to be transmitted to the corresponding client according to the transmission frequency information of the sensor data received by the client.
4. The method of claim 3, wherein after sending the sensor data to be transmitted to the corresponding client, the method further comprises:
and deleting the sensor data to be transmitted from the data queue.
5. The method according to claim 1, in case that no information about the client terminal to which the server terminal has established the connection is recorded as a result of the determination, the method further comprising:
and deleting the sensor data.
6. A device for transmitting sensor data, comprising:
the acquisition module is used for acquiring sensor data acquired by the sensor;
the system comprises a judging module, a server and a server, wherein the judging module is used for judging whether a client list records the relevant information of the client connected with the server or not, and the client list is used for recording the relevant information of the client connected with the server;
a sending module, configured to send the sensor data to a client that has established connection with a server if the determination result indicates that information related to the client that has established connection with the server is recorded,
wherein the connection establishment is communication connection establishment, the server is a sensor server,
wherein the apparatus further comprises:
the change module is used for changing the relevant information of the client recorded in the client list according to the received request message of the client;
wherein the altering module is further to: under the condition that the received request message of the client is a connection establishment request message, storing the relevant information of the client which sends the connection establishment request message into the client list; alternatively, the first and second electrodes may be,
and in the case that the received request message of the client is a disconnection request message, deleting the relevant information of the client sending the disconnection request message from the client list.
7. The apparatus of claim 6, further comprising:
the conversion module is used for converting the sensor data to obtain sensor data in a preset data format;
the storage module is used for storing the sensor data in the preset data format into a data queue;
the sending module is further configured to:
acquiring sensor data to be transmitted from the data queue;
and sending the sensor data to be transmitted to the corresponding client according to the transmission frequency information of the sensor data received by the client.
8. Virtual reality headset, comprising a sensor and a transmission device according to claim 6 or 7, wherein the sensor transmits acquired sensor data to the transmission device.
CN201710422367.6A 2017-06-07 2017-06-07 Sensor data transmission method and device and virtual reality head-mounted equipment Active CN107342981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710422367.6A CN107342981B (en) 2017-06-07 2017-06-07 Sensor data transmission method and device and virtual reality head-mounted equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710422367.6A CN107342981B (en) 2017-06-07 2017-06-07 Sensor data transmission method and device and virtual reality head-mounted equipment

Publications (2)

Publication Number Publication Date
CN107342981A CN107342981A (en) 2017-11-10
CN107342981B true CN107342981B (en) 2021-11-12

Family

ID=60221365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710422367.6A Active CN107342981B (en) 2017-06-07 2017-06-07 Sensor data transmission method and device and virtual reality head-mounted equipment

Country Status (1)

Country Link
CN (1) CN107342981B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089881A (en) * 2017-12-04 2018-05-29 北京小鸟看看科技有限公司 Transmission method, device and the virtual reality device of sensing data
CN107992197A (en) * 2017-12-12 2018-05-04 上海闻泰电子科技有限公司 Virtual reality device and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808288A (en) * 2016-02-26 2016-07-27 深圳天珑无线科技有限公司 Message push control method and device of operating system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8276159B2 (en) * 2009-09-23 2012-09-25 Microsoft Corporation Message communication of sensor and other data
CN105335171B (en) * 2014-06-24 2019-05-10 北京奇虎科技有限公司 The method and device on application program resident operating system backstage
US9754433B2 (en) * 2014-12-03 2017-09-05 Southern Folger Detention Equipment Company, Llc Remote lock system
CN104717288B (en) * 2015-03-07 2018-01-09 上海恩辅信息科技有限公司 A kind of system and method that internet of things sensors data can be provided to a variety of applications
CN105117270B (en) * 2015-07-29 2019-04-12 百度在线网络技术(北京)有限公司 A kind of method and apparatus for analog sensor
CN105516937B (en) * 2015-11-27 2020-02-07 南威软件股份有限公司 Remote control method based on Android mobile phone system after mobile phone is lost

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808288A (en) * 2016-02-26 2016-07-27 深圳天珑无线科技有限公司 Message push control method and device of operating system

Also Published As

Publication number Publication date
CN107342981A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN109474688B (en) Method, device, equipment and medium for sending instant communication network request message
CN109688051B (en) Session list display method and device and electronic equipment
CN109510754B (en) Online document generation method, device and system and electronic equipment
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
CN112199174A (en) Message sending control method and device, electronic equipment and computer readable storage medium
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112596920A (en) Message processing method and device, electronic equipment and storage medium
CN107342981B (en) Sensor data transmission method and device and virtual reality head-mounted equipment
CN110336592B (en) Data transmission method suitable for Bluetooth card reader, electronic equipment and storage medium
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN111478916B (en) Data transmission method, device and storage medium based on video stream
CN103975301A (en) Event service for local client applications through local server
CN113783913A (en) Message pushing management method and device
CN110719233A (en) Method and device for sending information
CN111382039A (en) Method, device, electronic equipment and storage medium for reporting user behavior event
CN109614137B (en) Software version control method, device, equipment and medium
CN111382038B (en) Method, device, electronic equipment and storage medium for reporting service data
CN112860431A (en) Connection method, system, equipment and storage medium of micro service node
CN111552705A (en) Data processing method and device based on chart, electronic equipment and medium
CN111274104A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112069438B (en) Message merging method, message processing method and device, equipment and medium
CN115225586B (en) Data packet transmitting method, device, equipment and computer readable storage medium
CN113364672B (en) Method, device, equipment and computer readable medium for determining media gateway information
CN111294657A (en) Information processing method and device
CN115052003B (en) Data synchronization method, related device and 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