CN112788658A - Data sharing method of communication equipment, communication equipment and storage medium - Google Patents
Data sharing method of communication equipment, communication equipment and storage medium Download PDFInfo
- Publication number
- CN112788658A CN112788658A CN201911095862.6A CN201911095862A CN112788658A CN 112788658 A CN112788658 A CN 112788658A CN 201911095862 A CN201911095862 A CN 201911095862A CN 112788658 A CN112788658 A CN 112788658A
- Authority
- CN
- China
- Prior art keywords
- data
- state
- communication equipment
- sharable
- local
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 327
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000005540 biological transmission Effects 0.000 claims abstract description 86
- 230000009365 direct transmission Effects 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 28
- 238000010586 diagram Methods 0.000 description 5
- 230000005577 local transmission Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0215—Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a data sharing method of communication equipment, which comprises the following steps: the local terminal communication equipment detects whether the local terminal is in a sharable data state; if the local terminal is in the data sharable state, the local terminal communication equipment determines the transmission information queuing positions of the local terminal in all communication equipment in the data sharable state; detecting whether the time of transmitting the information queuing position is reached; and if the time is up, transmitting the data to be shared to at least one communication device in a data sharable state by utilizing a direct transmission mode. By the scheme provided by the application, data sharing can be realized without depending on a public network and central processing equipment. The application also provides a communication device and a storage medium.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a data sharing method for a communication device, and a storage medium.
Background
In the existing communication, most terminals need to rely on a complete public network to realize data sharing. However, in professional use environments such as field operations, forestry, mines, battlefields and the like, or under the condition of lacking the support of a complete public network, or under the limit conditions of emergencies such as earthquakes, typhoons, terrorist attacks and the like, when the public network is damaged, some information needs to be shared in real time, and under the condition that the public network is damaged, the information cannot be shared among various devices by means of the prior art, so that a scheme capable of solving the technical problems is needed.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a method for realizing data sharing without relying on a public network and central processing equipment.
In order to solve the technical problem, the application adopts a technical scheme that: there is provided a method of sharing data for a communication device, the method comprising:
the local terminal communication equipment detects whether the local terminal is in a sharable data state;
if the local terminal communication equipment is in the sharable data state, the local terminal communication equipment determines the transmission information queuing positions of the local terminal communication equipment in all communication equipment which are in the sharable data state;
detecting whether the time of the transmitting information queuing position is reached;
and if the time is up, transmitting the data to be shared to at least one communication device in the sharable data state by utilizing a direct transmission mode.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a communication device, the device comprising: a processor, a memory, and communication circuitry, the processor interconnected with the memory and the communication circuitry;
the communication circuit is used for responding to an instruction of the processor to receive shared data sent by external equipment or send data to be shared outwards;
the memory is used for storing program data;
the processor is configured to execute the program data to perform the data sharing method of the communication device as described above.
In order to solve the above technical problem, the present application adopts another technical solution: there is provided a storage medium storing program data which, when executed, implements the data sharing method of a communication device as described above.
According to the scheme, the local communication equipment detects whether the local communication equipment is in a data sharable state, if the local communication equipment detects that the local communication equipment is in the data sharable state, the local communication equipment determines the transmission information queuing positions of the local communication equipment in all the communication equipment in the data sharable state, then detects whether the time of the transmission information queuing positions arrives, and if the time of the transmission information queuing positions arrives, the data to be shared are transmitted to at least one communication equipment in the data sharable state in a direct transmission mode, so that the data sharing among the communication equipment can be realized without depending on a public network and a central processor.
Drawings
Fig. 1 is a schematic flowchart of an embodiment of a data sharing method of a communication device according to the present application;
fig. 2 is a schematic flow chart of another embodiment of a method for sharing data by a communication device according to the present application;
fig. 3 is a schematic flow chart of a further embodiment of a method for sharing data by a communication device according to the present application;
fig. 4 is a schematic flow chart of a further embodiment of a method for sharing data by a communication device according to the present application;
fig. 5 is a schematic flowchart of a further embodiment of a method for sharing data in a communication device according to the present application;
fig. 6 is a schematic flow chart of a further embodiment of a method for sharing data by a communication device according to the present application;
fig. 7 is a schematic structural diagram of an embodiment of a communication device according to the present application;
fig. 8 is a schematic structural diagram of another embodiment of a communication device according to the present application;
fig. 9 is a schematic structural diagram of an embodiment of a storage medium according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
It should be noted that when the communication device executes the method provided by the present application, it does not need to rely on a public network, and is applicable to various scenes where the public network is abnormal, such as an earthquake, a disaster, or other scenes where the public network facilities are not perfect. In the present embodiment, the number of communication devices that simultaneously implement data sharing is also not particularly limited.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of a data sharing method of a communication device according to the present application.
S110: the local communication equipment detects whether the local communication equipment is in a sharable data state.
The home communication device is a communication device having a sharing function and executing a data sharing method of the communication device, and needs to share data with an external communication device. In the present embodiment, the local communication device has a function of radio communication, and can transmit data and information in space by means of radio communication. In one embodiment, the home terminal communication device may include: interphone, bracelet, mobile phone and other devices that can utilize radio communication. It should be noted that the local device is used herein to refer to the local communication device.
The sharable data state refers to a state that the home terminal communication device opens the sharing function, and the home terminal communication device with the sharing function opened can externally send data to be shared or receive shared data sent by external communication devices.
Step S110 is that the local communication device detects whether the current local communication device starts the sharing function.
Further, step S110 may also be understood as detecting whether the local communication device starts the sharing function, and simultaneously detecting whether the sharing function of the local communication device is in a usable state, so as to confirm that there is no abnormality in the sharing function of the local communication device. If it is detected in step S110 that the host computer is in the sharable data state, step S120 is executed, otherwise, if it is detected in step S110 that the host computer is not in the sharable data state, step S110 is continuously executed.
S120: the local communication device determines the queue position of the local transmitting information in all communication devices in the state of sharable data.
If the local terminal communication device is in the sharable data state, the local terminal communication device determines the transmission information queuing position of the local terminal communication device in all communication devices in the sharable data state. That is, when detecting that the sharing function of the local communication device is turned on, the local communication device determines the transmission information queuing positions of the local communication device in all communication devices which are in the data sharable state.
All communication devices in the sharable data state are communication devices which can receive radio signals and are in the sharable data state at present. In the present embodiment, the time required for all the communication apparatuses in the sharable data state to sequentially transmit the shared data out once is defined as a data sharing period. In short, the data sharing period is a parameter of how often all the communication devices in the sharable data state transmit shared data once. For example, in an embodiment, the data sharing period is 1 minute, which means that all communication devices currently in the sharable data state transmit the shared data to the external communication device in the sharable data state once every 1 minute.
The transmission information queuing position refers to a time period of transmitting data belonging to each communication device in a data sharing period, and the specific length of the time period of transmitting data of each communication device is determined by the type of the data to be shared, and can be adjusted and set according to needs. Specifically, the length of the data sharing period is determined by the number of the communication devices in the data sharable state with the local communication device and the type of the data to be shared, and the local transmission information queuing position is determined according to the time for starting the sharing function of the local communication device and the determined transmission information queuing positions of all the communication devices in the data sharable state with the local communication device. If the data sharing period is 1 minute, if the time required for transmitting the data to be shared is 1 second, and there are 6 communication devices in the data sharable state, it means that all the communication devices in the data sharable state need only 6 seconds to complete one round of data sharing, and on the premise that no new communication device in the data sharable state is added, no communication device sends shared data to the outside for the remaining 54 seconds, until the next round of data sharing period comes to start the new round of data sharing again.
S130: and detecting whether the time of transmitting the information queuing position is reached.
After determining the transmission information queuing positions of all the communication devices in the sharable data state, the local communication device further detects whether the time of the determined transmission information queuing positions is reached. After detecting the time of reaching the transmission information queuing position in step S130, step S140 is executed, and after detecting the time of not reaching the transmission information queuing position in step S130, step S130 is continuously executed to continuously detect whether the time of reaching the transmission information queuing position is reached.
Wherein the time length of each transmission information queuing position is determined by the type of the data shared currently. If the data which needs to be shared currently is short, the data can be sent out only in a short time, the time of each corresponding information transmission queuing position is set to be short, otherwise, when the data which needs to be shared is large in quantity and long in length, the data can be sent out in a long time, the time of each corresponding information transmission queuing position is set to be long, wherein it needs to be stated that the data shared by the local communication equipment and all the communication equipment in the data sharable state is the same type of data, the time required for sending the data once by the communication equipment in the data sharable state is also the same, and the time length of the corresponding information transmission queuing position corresponding to the communication equipment in the data sharable state is also the same.
Further, in the current embodiment, the manner of detecting whether the time of transmitting the information queuing position is reached includes: and acquiring a data sharing period determined by other communication equipment in a data sharable state and the corresponding time length of each transmission information queuing position in advance according to the received shared data sent by the other communication equipment. In the present embodiment, when all the communication devices in the data sharable state transmit shared data, the communication device may simultaneously transmit an identifier corresponding to the transmission information queuing position of the communication device, so as to notify the communication device in the data sharable state of the current transmission information queuing position, and the communication device in the next transmission information queuing position may identify the next position according to the identifier, and may transmit data to be shared.
In another embodiment, the detecting whether the time of the position of the queue for transmitting information is reached may further include: and determining whether the time of transmitting the information queuing position is reached currently according to preset parameters. Specifically, the preset parameters include: and in the absolute time, the data sharing period corresponding to different types of shared data and types of communication equipment, and the time length of the queuing position of the transmission information corresponding to different types of shared data and types of communication equipment. For example, the whole point in the absolute time of satellite time service can be preset to be divided into the boundaries of different data sharing periods, the time length of each data sharing period is 1 minute, when the time length of each transmission information queuing position is set to be 1 second, no time interval can be set between each transmission information queuing position, and the interval between adjacent transmission information queuing positions can also be set to be 1 second as required, it can be understood that the setting can also be adjusted as required in other embodiments.
S140: and transmitting the data to be shared to at least one communication device in a sharable data state by utilizing a direct transmission mode.
And if the time corresponding to the transmission information queuing position of the local machine is reached, transmitting the data to be shared to at least one communication device in a data sharable state by utilizing a direct transmission mode so as to realize the sharing of the data. The direct transmission mode is that the local machine directly transmits the data to be shared to the communication equipment in the state of sharing the data without the help of intermediate processing equipment or relay equipment or relying on a public network. In the current embodiment, the local communication device transmits the data to be shared to other communication devices in a sharable data state directly by using radio communication without depending on a public network.
Further, please refer to fig. 2, where fig. 2 is a schematic flowchart illustrating another embodiment of a data sharing method of a communication device according to the present application. In the current embodiment, step S140 may include:
s201: and sorting the data to be shared.
The type of the data to be shared is set when the local communication equipment starts the sharing function, and the data to be shared can be adjusted and set according to the requirements of different application scenes. The acquisition mode of the data to be shared at least comprises the acquisition based on a sensor or a circuit with a specific function, and the acquisition is finally arranged into a format which can be transmitted between communication devices in a shared data state at the same place by a processing circuit. For example, user information is shared, when a worker works with high intensity and high risk, the user information can be acquired through the sensor, and the user information is sent to the communication equipment in a data sharing state through the technical scheme provided by the application, so that other members can acquire the current user information in time.
In the current embodiment, the exact time for sorting the data to be shared is not particularly limited, and the data sorting is only completed before the transmission information queuing time corresponding to the local-end communication device is reached.
S202: and transmitting the data to be shared to at least one communication device in a data sharable state by utilizing a direct transmission mode.
After finishing the arrangement of the data to be shared, transmitting the data to be shared to at least one communication device in a data sharable state by utilizing a direct transmission mode.
The technical scheme provided by the application can realize data sharing between communication devices in the sharable data state without depending on a public network by detecting whether a local communication device is in the sharable data state, if the local communication device is detected to be in the sharable data state currently, the local communication device further determines the transmission information queuing position of the local communication device in all communication devices in the sharable data state, after the transmission information queuing position is determined for the local communication device, the local communication device further detects whether the time of reaching the transmission information queuing position is detected, if the time corresponding to the transmission information queuing time of the local communication device is reached, the shared data is transmitted to the communication device in the sharable data state together with at least the local communication device in the sharable data state by utilizing a direct transmission mode, and in the process, the communication device can realize the data sharing between the communication devices in the sharable data state without depending on the public network by executing the method provided by the application, compared with the prior art which needs to depend on a public network and an intermediate processing device, the scheme provided by the application can be applied to more complex scenes.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a data sharing method of a communication device according to another embodiment of the present application.
S301: the local communication equipment detects whether the local communication equipment is in a sharable data state.
When detecting that the local device is in the sharable data state, the local communication device needs to further determine the transmission information queuing positions of the local device in all communication devices in the sharable data state, that is, the content described in step S120 needs to be performed, in the present embodiment, steps S302 to S303 included in step S120 are performed.
S302: and judging whether the local communication equipment and at least one other communication equipment are in a sharable data state.
When it is detected that the local-end communication device is in the data sharable state, and when it is determined that the local-end communication device is at the transmission information queuing positions in all the communication devices in the data sharable state, it is first determined whether the local-end communication device and at least one other communication device are in the data sharable state, so as to determine whether the local-end communication device is the first communication device in the data sharable state, that is, before the local-end communication device starts the sharing function, no other communication device starts the sharing function. If the local-end communication device does not receive the shared data sent by at least one other communication device in the process of maintaining the local-end communication device in the receiving state for at least one data sharing period, step S303 is executed, and if the local-end communication device and the at least one other communication device are in the data sharable state, step S306 is executed, which is described in detail below.
Further, please refer to fig. 4, where fig. 4 is a schematic flowchart of another embodiment of a data sharing method of a communication device according to the present application. In the present embodiment, the manner of determining whether the local communication device is in the sharable data state with at least one other communication device is described in further detail. Specifically, step S302 further includes the steps as described in step S401 to step S403.
S401: and after the home terminal communication equipment starts the sharing function, the home terminal communication equipment is switched to a receiving state.
In order to judge whether the local communication equipment and at least one other communication equipment are in a data sharing state, the local communication equipment switches the local communication equipment to a receiving state after starting a sharing function. When the communication device is switched to the receiving state, the communication device is always used for receiving data sent by the external communication device or other devices. When the communication device is in a receiving state, no data is transmitted to the external device.
S402: and keeping the local communication equipment in a receiving state for at least one data sharing period, and judging whether the local communication equipment and at least one other communication equipment are in a data sharable state according to whether shared data sent by the at least one other communication equipment is received.
The reason for keeping the local communication equipment in the receiving state for at least one data sharing period is to enable the local communication equipment to receive shared data transmitted by the communication equipment which is currently in the sharable data state. And then judging whether the local communication equipment and the other communication equipment are in a sharable data state according to whether the shared data sent by at least one other communication equipment is received or not in the process. If the communication device in the data sharable state exists in the range where the local communication device can receive the signal, the communication device in the data sharable state transmits the shared data once in one data sharing period, so that the shared data transmitted by at least one communication device in the data sharable state is received in the process of maintaining the local communication device in the receiving state for at least one data sharing period. On the contrary, if no communication device in the data sharable state exists in the range in which the local communication device can receive the signal, the shared data transmitted by the communication device in the data sharable state is not received in the process of keeping the local communication device in the receiving state for at least one data sharing period.
S403: and if the local communication equipment receives the shared data sent by at least one other communication equipment, judging that the local communication equipment and the at least one other communication equipment are in the data sharable state.
If the local communication device receives the shared data sent by at least another communication device during the time of keeping in the receiving state, it is determined that the local communication device and the at least another communication device are in the data sharable state. Further, it should be noted that, in the process of maintaining the receiving state of the local-end communication device, if shared data sent by other communication devices is received, the transmission information queuing position of the communication device in the data sharing period is further marked, so as to subsequently determine the transmission information queuing position of the local-end communication device to be called as reference information.
S303: and determining that the local communication equipment transmits the first bit of the information queuing position in all the communication equipment which are in the sharable data state.
If the local communication equipment does not receive the shared data sent by at least one other communication equipment in the process of keeping the local communication equipment in the receiving state for at least one data sharing period, the fact that the communication equipment which is in the sharable data state does not exist in the range of the receiving signal of the local communication equipment is indicated, and the first position of the information transmission queuing position of the local communication equipment in all the communication equipment which is in the sharable data state is determined.
Further, in another embodiment, after the local communication device determines the queue position of the local transmission information in all communication devices in the sharable data state, the method provided by the present application further includes: waiting for the next data sharing period. That is, after determining the transmission information queuing position in the data sharing period, the local communication device further waits for the next data sharing period, so as to avoid that after determining the transmission information queuing position, the time corresponding to the transmission information queuing position is not in time to transmit the data to be shared.
S304: and detecting whether the transmission information queuing time is reached.
S305: and transmitting the data to be shared to at least one communication device in a sharable data state by utilizing a direct transmission mode.
Step S301, step S304, and step S305 are the same as step S110, step S130, and step S140 in the embodiment corresponding to fig. 1, respectively, so that reference may be made to the above description of fig. 1.
Further, in an embodiment, after step S305, the method provided by the present application further includes: and judging whether the sharing function of the local terminal communication equipment is closed or not. In a data sharing period, after the local communication device transmits data to be shared to at least one communication device in a data sharing state by using a direct transmission mode, whether a sharing function of the local communication device is closed or not is detected. If the sharing function of the local communication equipment is not closed, the data to be shared can be directly sorted, then whether the time of reaching the transmission information queuing position corresponding to the local communication equipment is detected, and the data to be shared is transmitted to at least one communication equipment in a data sharable state by using a direct transmission mode when the time of reaching the transmission information queuing position corresponding to the local communication equipment is detected.
In other embodiments, it can be understood that after a data sharing period is completed, in a new data sharing period, the local communication device is only required to detect whether the local communication device is in a sharable data state. When the local-end communication equipment is detected to be in the data sharable state, the data to be shared can be directly sorted without determining the transmission information queuing position of the local-end communication equipment again. Otherwise, if the local communication device is detected not to be in the data sharable state, the cycle of sharing data is ended. In another embodiment, after the local communication device and at least one other communication device are determined to be in the data sharable state in step S302, the technical solution provided in the present application performs step S306, specifically,
s306: and determining one of the idle transmission information queuing positions as the transmission information queuing position of the local terminal communication equipment, or determining the position after the last transmission information queuing position as the transmission information queuing position of the local terminal communication equipment. Further, step S306 includes steps S501 to S503 as illustrated in fig. 5 below.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a data sharing method of a communication device according to another embodiment of the present disclosure. It should be noted that, in the technical solution provided in the present application, when a communication device in a data sharable state closes the sharing function, and data sharing is ended and there are other communication devices in the data sharable state, the transmission information queuing positions of the communication devices belonging to the ended data sharing are not sequentially replaced. The transmission information queuing position of the communication equipment corresponding to the end of the data sharing function is reserved for the selection of the communication equipment for starting the sharing function subsequently.
S501: it is detected whether there is at least one free transmission information queuing position with all communication devices in a sharable data state.
The idle transmission information queuing position refers to a transmission information queuing position at which no communication device transmits shared data in the corresponding time. In the technical scheme provided by the application, the transmission information queuing position of the communication equipment which finishes data sharing is reserved, so after the communication equipment which is in the data sharable state and located at the local end communication equipment is determined, the local end communication equipment can preferentially select the idle transmission information queuing position existing among all the communication equipment in the data sharable state when the transmission information queuing position is determined. Therefore, after the local communication device and at least another communication device are both in the data sharable state, it is necessary to detect whether there is at least one idle queuing position for transmitting information between all the existing communication devices in the data sharable state.
S502: and determining one of the idle transmission information queuing positions as the transmission information queuing position of the local terminal communication equipment. When detecting that an idle transmission information queuing position exists between all communication devices in a data sharable state, determining the idle transmission information queuing position as the transmission information queuing position of the local communication device.
And when detecting that a plurality of idle transmission information queuing positions exist among all the communication devices in the data sharable state, determining the transmission information queuing position of the local communication device in the plurality of idle transmission information queuing positions further according to a preset rule. The preset rule may be to preferentially select an idle transmission information queuing position at the front in the data sharing period. If the existing idle transmission information queuing positions have the transmission information queuing positions of the 2 nd, the 4 th and the 6 th in the data sharing period, the 2 nd transmission information queuing position is preferentially selected.
When detecting that there is not at least one free transmission information queuing position between all communication devices in the sharable data state, step S503 is executed.
S503: and determining the position after the last transmission information queuing position as the transmission information queuing position of the local terminal communication equipment.
If detecting that at least one idle transmission information queuing position does not exist between all communication equipment in the data sharing state, determining the position behind the last transmission information queuing position as the transmission information queuing position of the local communication equipment.
In the present embodiment, determining that the position after the last transmission information queuing position is the transmission information queuing position of the local communication device means determining that the local communication device will transmit the data to be shared after the last transmission information queuing position. For example, when it is detected that 6 communication devices currently in the sharable data state are provided, and there is no idle queue position for transmitting information between the 6 communication devices in the sharable data state, it can be determined that the 7 th queue position for transmitting information in the data sharing period is the queue position for transmitting information of the local communication device.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a data sharing method of a communication device according to another embodiment of the present application. In the current embodiment, the method provided by the present application includes:
s601: the local communication equipment detects whether the local communication equipment is in a sharable data state.
S602: the local communication device determines the queue position of the local transmitting information in all communication devices in the state of sharable data.
S603: and detecting whether the time of transmitting the information queuing position is reached.
S604: and arranging the data to be shared, and transmitting the data to be shared to at least one communication device in a data sharable state by utilizing a direct transmission mode.
S605: and judging whether the sharing function of the local terminal communication equipment is closed or not.
If the determination result in step S605 is that the sharing function of the local communication device is not turned off, step S604 is executed, and so on until the determination result in step S605 is that the sharing function of the local communication device is turned off, and the loop is ended. Steps S601 to S604 are the same as steps S110 to S140 in fig. 1, which is specifically described above, and step S605 is similar to the corresponding embodiment in fig. 3, which is not repeated herein.
Fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application. The communication devices 700 provided herein may communicate with each other based on a radio network. Specifically, the present application provides a communication device 700 comprising: a processor 701, a memory 702, and communication circuitry 703. The processor 701 is interconnected with a memory 702 and communication circuitry 703.
The communication circuit 703 is configured to receive shared data sent by an external communication device or send data to be shared to the outside in response to an instruction of the processor 701. The memory 702 is used for storing program data which, when executed by the processor 701, may implement the methods as set forth in the respective embodiments of fig. 1-6 above.
The processor 701 is configured to execute the program data stored in the memory 702 to perform the methods as described in fig. 1-6 and its corresponding embodiments.
Please refer to fig. 8, fig. 8 is a schematic structural diagram of a communication device according to another embodiment of the present application. In the present embodiment, the communication device 800 provided by the present application further includes: a to-be-shared data obtaining unit 804. The to-be-shared data acquiring unit 804 is connected to the processor 801, and is configured to acquire the to-be-shared data under the control of the processor 801 when the processor 801 executes the program data stored in the memory 802. After acquiring the data to be shared, the processor 801 controls the communication circuit 803 to transmit the data to be shared to the external communication device in a direct transmission manner in the corresponding time. In the present embodiment, the to-be-shared data obtaining unit 804 includes: a sensor or a positioning circuit.
Referring to fig. 9, the present application also provides a storage medium. The storage medium 900 stores program data 901, and the program data 901 when executed implements the data sharing method of the communication device and the methods described in the embodiments of the communication device as described in any one of fig. 1 to 6. Specifically, the storage medium 900 having the storage function may be one of a memory, a personal computer, a server, a network device, or a usb disk.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.
Claims (10)
1. A method of sharing data for a communication device, the method comprising:
the local terminal communication equipment detects whether the local terminal is in a sharable data state;
if the local terminal communication equipment is in the sharable data state, the local terminal communication equipment determines the transmission information queuing positions of the local terminal communication equipment in all communication equipment which are in the sharable data state;
detecting whether the time of the transmitting information queuing position is reached;
and if the time is up, transmitting the data to be shared to at least one communication device in the sharable data state by utilizing a direct transmission mode.
2. The method of claim 1, wherein the determining, by the local end communication device, the transmission information queuing positions of all communication devices that are in the sharable data state comprises:
judging whether the local communication equipment and at least one other communication equipment are in a data sharable state;
if not, determining that the home terminal communication equipment transmits the first bit of the information queuing position in all the communication equipment which are in the data sharable state.
3. The method of claim 2,
if the local communication device and at least another communication device are in the data sharing state, the method further comprises:
detecting whether at least one idle transmission information queuing position exists between all communication devices in the sharable data state;
if detecting that the at least one idle transmission information queuing position exists between all communication devices in the data sharable state, determining one of the idle transmission information queuing positions as the transmission information queuing position of the local communication device; or
And if detecting that the at least one idle transmission information queuing position does not exist between all the communication equipment in the sharable data state, determining the position behind the last transmission information queuing position as the transmission information queuing position of the local communication equipment.
4. The method of claim 2, wherein the determining whether the local communication device is in a sharable data state with at least one other communication device comprises:
after the home terminal communication equipment starts the sharing function, the home terminal communication equipment is switched to a receiving state;
maintaining at least one data sharing period of the local communication equipment in the receiving state, and judging whether the local communication equipment and the at least one other communication equipment are in the sharable data state or not according to whether shared data sent by the at least one other communication equipment is received or not;
and if the local communication equipment receives shared data sent by at least one other communication equipment, judging that the local communication equipment and the at least one other communication equipment are in the shared data state.
5. The method of claim 4, wherein after the local end communication device determines a transmit information queuing position of the local end communication device among all communication devices in the sharable data state, the method further comprises:
waiting for a next data sharing period;
and the data sharing period is determined according to the type of the data to be shared and/or the number of the communication devices which are in the data sharable state together with the local-end communication device.
6. The method of claim 1, wherein transmitting data to be shared to at least one of the communication devices in the shared data state by direct transmission if the time arrives comprises:
sorting the data to be shared;
and transmitting the data to be shared to at least one communication device in the sharable data state by utilizing a direct transmission mode.
7. The method of claim 6, wherein if the time arrives, after transmitting the data to be shared to at least one of the communication devices in the shared data state by direct transmission, the method further comprises:
judging whether the sharing function of the local terminal communication equipment is closed or not;
and if not, the data to be shared is sorted again.
8. A communication device, the device comprising: a processor, a memory, and communication circuitry, the processor interconnected with the memory and the communication circuitry;
the communication circuit is used for responding to an instruction of the processor to receive shared data sent by external equipment or send data to be shared outwards;
the memory is used for storing program data;
the processor is configured to execute the program data to perform the method of any of claims 1 to 7.
9. The communications device of claim 8, wherein the device further comprises: the data sharing device comprises a to-be-shared data acquisition unit, a to-be-shared data acquisition unit and a sharing unit, wherein the to-be-shared data acquisition unit is connected with the processor and is used for acquiring the to-be-shared data under the control of the processor;
the data to be shared obtaining unit comprises: sensors and/or positioning circuitry.
10. A storage medium, characterized in that the storage medium stores program data which, when executed, implements the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911095862.6A CN112788658B (en) | 2019-11-11 | 2019-11-11 | Data sharing method of communication equipment, communication equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911095862.6A CN112788658B (en) | 2019-11-11 | 2019-11-11 | Data sharing method of communication equipment, communication equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112788658A true CN112788658A (en) | 2021-05-11 |
CN112788658B CN112788658B (en) | 2024-05-24 |
Family
ID=75749773
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911095862.6A Active CN112788658B (en) | 2019-11-11 | 2019-11-11 | Data sharing method of communication equipment, communication equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112788658B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114979020A (en) * | 2022-04-15 | 2022-08-30 | 湖南三一中型起重机械有限公司 | Engineering machinery cooperative operation control method, device and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004015629A (en) * | 2002-06-10 | 2004-01-15 | Konica Minolta Holdings Inc | Image input/output system |
CN1649303A (en) * | 2004-01-20 | 2005-08-03 | 微软公司 | Power management for a network |
CN101685460A (en) * | 2008-09-23 | 2010-03-31 | 华为技术有限公司 | Database device, method and system for processing shared data |
CN101859139A (en) * | 2010-06-01 | 2010-10-13 | 杭州和利时自动化有限公司 | Data sharing realizing method of distribution type control system and device thereof |
KR20120071512A (en) * | 2010-12-23 | 2012-07-03 | 두산중공업 주식회사 | Plant control system using data sharing and control cycle time synchronization |
CN102609217A (en) * | 2012-01-13 | 2012-07-25 | 广州从兴电子开发有限公司 | High-speed storage method and high-speed storage system for IO (input/output) equipment |
US20170006095A1 (en) * | 2013-12-16 | 2017-01-05 | Nokia Technologies Oy | Method and apparatus for data-sharing |
US20170161115A1 (en) * | 2014-08-25 | 2017-06-08 | Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. | Sharing Method for Hardware Communication Apparatus and Terminal |
WO2017203651A1 (en) * | 2016-05-26 | 2017-11-30 | 三菱電機株式会社 | Fixed-period data transmission method |
CN108351851A (en) * | 2015-09-11 | 2018-07-31 | 思睿逻辑国际半导体有限公司 | More equipment of multiple equipment synchronize |
CN108667896A (en) * | 2018-03-22 | 2018-10-16 | 北京京东方艺云科技有限公司 | Data sharing method, device and the system and computer equipment of shared equipment |
-
2019
- 2019-11-11 CN CN201911095862.6A patent/CN112788658B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004015629A (en) * | 2002-06-10 | 2004-01-15 | Konica Minolta Holdings Inc | Image input/output system |
CN1649303A (en) * | 2004-01-20 | 2005-08-03 | 微软公司 | Power management for a network |
CN101685460A (en) * | 2008-09-23 | 2010-03-31 | 华为技术有限公司 | Database device, method and system for processing shared data |
CN101859139A (en) * | 2010-06-01 | 2010-10-13 | 杭州和利时自动化有限公司 | Data sharing realizing method of distribution type control system and device thereof |
KR20120071512A (en) * | 2010-12-23 | 2012-07-03 | 두산중공업 주식회사 | Plant control system using data sharing and control cycle time synchronization |
CN102609217A (en) * | 2012-01-13 | 2012-07-25 | 广州从兴电子开发有限公司 | High-speed storage method and high-speed storage system for IO (input/output) equipment |
US20170006095A1 (en) * | 2013-12-16 | 2017-01-05 | Nokia Technologies Oy | Method and apparatus for data-sharing |
US20170161115A1 (en) * | 2014-08-25 | 2017-06-08 | Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. | Sharing Method for Hardware Communication Apparatus and Terminal |
CN108351851A (en) * | 2015-09-11 | 2018-07-31 | 思睿逻辑国际半导体有限公司 | More equipment of multiple equipment synchronize |
WO2017203651A1 (en) * | 2016-05-26 | 2017-11-30 | 三菱電機株式会社 | Fixed-period data transmission method |
CN108667896A (en) * | 2018-03-22 | 2018-10-16 | 北京京东方艺云科技有限公司 | Data sharing method, device and the system and computer equipment of shared equipment |
Non-Patent Citations (3)
Title |
---|
刘伟;蔺宏宇;: "区块链技术原理及基于区块链技术的知识产权服务浅析", 产权导刊, no. 11, 1 November 2016 (2016-11-01) * |
方圆;李明;王萍;: "基于排队论的虚拟资源共享模式安全性研究", 电子设计工程, no. 02, 20 January 2018 (2018-01-20) * |
段辉良;: "广州数字林业共享平台的应用研究", 佳木斯职业学院学报, no. 09, 15 September 2016 (2016-09-15) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114979020A (en) * | 2022-04-15 | 2022-08-30 | 湖南三一中型起重机械有限公司 | Engineering machinery cooperative operation control method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN112788658B (en) | 2024-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103596160B (en) | Method and device for data transmission | |
CN108781473B (en) | Method and equipment for sharing files among different terminals | |
CN113490218A (en) | Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium | |
EP3763164B1 (en) | Electronic device supporting multiple wireless communication protocols and method therefor | |
JP6708318B1 (en) | Storage battery monitoring device and storage battery monitoring method | |
KR20190047598A (en) | Method and device of transmitting data | |
CN103402186A (en) | Incoming phonecall switching method and communication terminal | |
CN101106502B (en) | System and method for storing data into web storage using wireless lan | |
CN104079717A (en) | Method for displaying device interface and server | |
CN104684056A (en) | Pairing method and device for user equipment and server | |
JPWO2002082738A1 (en) | Parent communication device used in wireless LAN system, method of controlling parent communication device, and control program | |
JPWO2002082737A1 (en) | Child communication device used in wireless LAN system, method of controlling child communication device, and control program | |
CN104901724A (en) | Data transmission method | |
CN112788658A (en) | Data sharing method of communication equipment, communication equipment and storage medium | |
WO2018019058A1 (en) | Wireless access point switching method and apparatus, and terminal | |
CN104853371A (en) | Mobile terminal monitoring method and system, and corresponding mobile terminal | |
CN112333849A (en) | Equipment connection disconnection processing method and device, mobile terminal and storage medium | |
CN104079634A (en) | Method, device and system for displaying device interface | |
EP3422684B1 (en) | System and data transfer method in said system | |
CN103517373A (en) | Network access method and device | |
CN106060959B (en) | Method and device for preventing network connection message from being retransmitted and android system | |
CN106488537B (en) | Sending method, device and mobile terminal | |
JP2007096859A (en) | Communication relay device and communication relay method | |
WO2020174712A1 (en) | Storage battery monitoring device and storage battery monitoring method | |
CN112118420A (en) | Automatic configuration method and device for monitoring system |
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 |