CN113840229A - Position information reporting method and device, readable storage medium and computer equipment - Google Patents
Position information reporting method and device, readable storage medium and computer equipment Download PDFInfo
- Publication number
- CN113840229A CN113840229A CN202111063592.8A CN202111063592A CN113840229A CN 113840229 A CN113840229 A CN 113840229A CN 202111063592 A CN202111063592 A CN 202111063592A CN 113840229 A CN113840229 A CN 113840229A
- Authority
- CN
- China
- Prior art keywords
- position information
- reporting
- server
- state
- current
- 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.)
- Withdrawn
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides a position information reporting method, a position information reporting device, a computer readable storage medium and a computer device. The position information reporting method is used for a device side, and the device side communicates with a server side. The position information reporting method comprises the following steps: acquiring a current network state; judging whether the current network state is a smooth state or not; if so, reporting the current position information of the equipment end to the server end; if not, the current position information of the equipment end is stored in a local offline database of the equipment end to form offline position information, and the step of obtaining the current network state is continuously executed. The position information reporting method and device, the computer readable storage medium and the computer device of the embodiment of the application store the current position information in the local offline database when the network state is not smooth, and report the offline position information in the local offline database to the server side when the network is smooth, so that the continuity and the integrity of the position information reporting of the device side are ensured.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a location information reporting method, a location information reporting apparatus, a computer-readable storage medium, and a computer device.
Background
The conventional mobile client geographical location reporting function is to report geographical location information collected by the client regularly through HTTP or SOCKET connection by starting a timer or similar planned task in the client. Since the environment in which the user uses the mobile communication device is complex and variable, when the mobile communication device is in a no-network or weak-network state, the reporting function is greatly limited, and the geographical location information of the mobile communication device is completely lost during this period. For an application scenario highly sensitive to geographic location information, such a situation may cause a serious data loss, for example, the motion trajectory of the device cannot be restored, and the cost cannot be calculated through the motion path of the device.
Disclosure of Invention
In order to solve at least one of the above technical drawbacks, the present application provides a location information reporting method, a location information reporting apparatus, a computer-readable storage medium, and a computer device in the following technical solutions.
According to one aspect, an embodiment of the present application provides a method for reporting location information. The position information reporting method is used for a device side, and the device side is communicated with a server side. The position information reporting method comprises the following steps: acquiring a current network state; judging whether the current network state is a smooth state or not; if so, reporting the current position information of the equipment terminal to the server terminal; if not, storing the current position information of the equipment end in a local offline database of the equipment end to form offline position information, and continuously executing the step of acquiring the current network state.
In some embodiments, the determining whether the network status is a clear status currently includes: judging whether the current network state is in any one of a 2G state, a 3G state or a no-network state; if not, determining that the current network state is a smooth state, and setting a predefined switch identifier to be a first state; and if so, determining that the current network state is a blocking state, and setting a predefined switch identifier to be in a second state.
In some embodiments, when the current network status is a clear status, and when the current network status is a clear status, the method for reporting location information further includes: judging whether the offline position information exists in the local offline database or not; if so, reporting the current position information of the equipment terminal to the server terminal, including: and reporting the current position information and the off-line position information to the server.
In some embodiments, when the current network state is a clear state, and when the current network state is a clear state, the method for reporting location information further includes: acquiring indication information sent by the server, wherein the indication information comprises a server state code identifier; judging whether the server side state code identification is in a third state; if so, reporting the current position information and the off-line position information to the server; if not, storing the current position information in the local off-line database.
In some embodiments, the indication further comprises a defined number; the reporting the current location information of the device to the server includes: judging whether the quantity of the offline position information stored in the local offline database is greater than the limited quantity or not; if yes, reading the off-line position information of the limited quantity, and reporting the off-line position information of the limited quantity to the server; if not, reporting all the offline position information in the local offline database to the server.
In some embodiments, the reporting the current location information of the device to the server further includes: carrying out format conversion on the current position information to obtain format conversion position information; compressing the format conversion information to obtain compressed position information; and reporting the compressed position information to the server.
In some embodiments, the method for reporting location information further includes: and deleting the offline position information reported to the server side in the local offline database.
In addition, according to another aspect, an embodiment of the present application provides a device for reporting location information. The position information reporting device is used for a device side, and the device side is communicated with a server side. The position information reporting device comprises an acquisition module, a judgment module, a reporting module and a storage module. The acquisition module is used for acquiring the current network state. The judging module is used for judging whether the current network state is a smooth state. And the reporting module is used for reporting the current position information of the equipment terminal to the server terminal when the network state is a smooth state. The storage module is used for storing the current position information of the equipment end in a local offline database of the equipment end to form offline position information when the network state is not a smooth state. The obtaining module is further configured to continue to perform the step of obtaining the current network state.
According to another aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the location information reporting method according to any of the foregoing embodiments.
According to yet another aspect, embodiments of the present application provide a computer apparatus comprising one or more processors, memory, one or more computer programs. Wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to: the method for reporting location information according to any of the above embodiments is performed.
The position information reporting method, the position information reporting device, the computer readable storage medium and the computer device store the current position information in the local offline database to be recorded as the offline position information when the network state is not smooth, and report the offline position information in the local offline database to the server side when the network is smooth, so that the continuity and the integrity of the position information reporting of the device side are ensured.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a method for reporting location information according to some embodiments of the present disclosure;
fig. 2 is a schematic block diagram of a device for reporting location information according to some embodiments of the present disclosure;
fig. 3 is a schematic diagram illustrating a scenario in which a device side communicates with a server side according to some embodiments of the present application;
fig. 4 is a flowchart of a method for reporting location information according to some embodiments of the present application;
fig. 5 is a flowchart of a method for reporting location information according to some embodiments of the present application;
fig. 6 is a flowchart of a method for reporting location information according to some embodiments of the present application;
fig. 7 is a flowchart of a method for reporting location information according to some embodiments of the present application;
fig. 8 is a flowchart of a method for reporting location information according to some embodiments of the present application;
fig. 9 is a flowchart of a method for reporting location information according to some embodiments of the present application;
FIG. 10 is a schematic diagram of a computer-readable storage medium and a processor according to some embodiments of the present application;
FIG. 11 is a block diagram of a computer device according to some embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1 and fig. 3, an embodiment of the present invention provides a method for reporting location information of a device 100. The device side 100 communicates with the server side 200. The position information reporting method comprises the following steps:
01: acquiring a current network state;
02: judging whether the current network state is a smooth state or not;
03: if so, reporting the current position information of the equipment terminal 100 to the server terminal 200;
04: if not, the current location information of the device end 100 is stored in the local offline database of the device end 100 to form offline location information, and the step of obtaining the current network state is continuously executed.
Referring to fig. 2 and fig. 3, an embodiment of the present invention further provides a device 10 for reporting location information of a device 100. The method for reporting location information according to the embodiment of the present application can be implemented by the device 10 for reporting location information according to the embodiment of the present application. The device 10 for reporting location information includes a first obtaining module 11, a first determining module 12, a reporting module 13, and a storage module 14. Step 01 may be implemented by the first obtaining module 11. Step 02 may be implemented by the first determining module 12. Step 03 can be implemented by the reporting module 13. Step 04 may be implemented by the storage module 14 and the first obtaining module 11.
That is, the first obtaining module 11 may be configured to obtain the current network status. The first determining module 12 may be configured to determine whether the current network status is a clear status. The reporting module 13 is configured to report the current location information of the device 100 to the server 200 when the current network status is a smooth status. The storage module 14 is configured to store the current location information of the device side 100 in a local offline database of the device side 100 to form offline location information when the current network status is blocked (i.e., not unblocked). The first obtaining module 11 is further configured to continue to perform the step of obtaining the current network status.
The device end 100 may be a mobile phone, a notebook computer, a tablet computer, an intelligent watch, an intelligent bracelet, an intelligent glasses, an intelligent helmet, or the like. The present application takes the device side 100 as a mobile phone as an example, but is not limited thereto.
It can be understood that, when the device end 100 is in a network congestion state, that is, in a no-network state or a weak-network state, the function of reporting the current location information of the device end 100 itself is greatly limited, and the current location information cannot be reported to the server end 200, so that the location information of the device end 100 during the network congestion period is lost, and for an application scenario in which the location information is lost and is highly sensitive to the geographical location information, a serious data loss situation is caused, and subsequent data-based applications cannot be developed.
The location information reporting method and the location information reporting apparatus 10 according to the embodiments of the present application can obtain the current network state of the device list 100 in real time or at certain time intervals, and determine whether the current network state is a smooth state. For example, the current network state at time a is acquired at time a. If the current network state is a smooth state, the device end 100 reports the current location information of the device end to the server end 200, and if the current network state is a blocking state, the device end 100 stores the current location information in a local offline database to form offline location information. Subsequently, the device side 100 continues to acquire the network state at the next time B. The above steps are repeated in a circulating manner until the acquired current network state is a smooth state, and the server 200 reports the offline position information and the current position information stored in the local offline database to the server 200. Therefore, the server 200 can obtain the complete location information of the device 100, avoid the situation of losing the location information when the device 100 is in a no-network or weak-network state, and avoid the problem that the network channel is blocked by too many network requests in the no-network or weak-network state.
Referring to fig. 4, in some embodiments, the step 02 of determining whether the current network status is a clear status includes:
021: judging whether the current network state is in any one of a 2G state, a 3G state or a no-network state;
022: if not, determining that the current network state is a smooth state, and setting a predefined switch identifier to be a first state;
023: and if so, determining that the current network state is a blocking state, and setting the predefined switch identifier to be in a second state.
Referring to fig. 2, in some embodiments, steps 021 to 023 can be implemented by the first determining module 12. That is, the first determining module 12 may be configured to determine whether the current network state is in any one of a 2G, a 3G or a no network state. When the current network state is not in any of the 2G, 3G or no network state, the first determining module 12 determines that the current network state is a clear state, and sets the predefined switch identifier to be the first state. When the current network state is in any one of the 2G, 3G or no network state, the first determining module 12 determines that the current network state is the blocking state, and sets the predefined switch identifier to the second state.
It is understood that the device side 100 may perform data transmission with the service side 200 by using mobile data communication or wireless network (e.g., WiFi) communication. When the device 100 is in the 2G, 3G or no network state, the device 100 and the server 200 cannot perform smooth data transmission. Therefore, when the device side 100 is in any one of the 2G, 3G, or no network state, the device side 100 determines that it is in a network blocking state. At this time, the device side 100 sets a predefined switch identifier cacheable to the first state true. If the device side 100 is not in any state of 2G, 3G or no network state, for example, the device side 100 is in a state of 4G, 5G, etc., the device side 100 determines that it is in a state where the network is clear. At this time, the device side 100 sets the predefined switch identifier cacheable to the second state false. Of course, in other examples, the first state of the switch identifier cacheable may also be 1, and the second state may also be 0, which is not limited herein. Therefore, by judging the current network state and setting the state of the switch identifier, the items required to be carried out can be conveniently selected according to the state of the switch identifier in the subsequent steps.
Referring to fig. 5, in some embodiments, when the current network status is a clear status, the method for reporting location information further includes:
05: judging whether offline position information exists in a local offline database or not;
if yes, step 03 reports the current location information of the device 100 to the server 200, including:
031: and reporting the current position information and the off-line position information to the server 200.
Referring to fig. 2, in some embodiments, step 05 may be implemented by the second determining module 15. Step 031 may be implemented by the reporting module 13. That is, the second determining module 15 is configured to determine whether the offline current location information exists in the local offline database when the current network status is a clear status. The reporting module 13 is further configured to report the current location information and the offline location information to the server 200 when the offline location information exists in the local offline database.
Specifically, when the device side 100 is in the network blocking state, the device side 100 stores the current location information during the network blocking state into the local offline database to form the offline location information. Subsequently, the device side 100 continuously obtains the network state at each subsequent time, and reads the data in the local offline database to determine whether the offline position information exists in the local offline database when it is determined that the current network state at the subsequent time is in a smooth state at the subsequent time. If it is determined that the offline location information exists in the local offline database, the device 100 reports the offline location information to the server 200. The device side 100 may also report the current location information at that time to the server side 200 along with the offline location information. However, under the condition that the network state is continuously unblocked, since there is no current location information that needs to be stored in the local offline database in this period, there is no offline location information that needs to be reported in the local offline database, and at this time, the device end 100 may only report the current location information at the current time. In this way, all the current location information of the device 100 that needs to be reported can be reported to the server 200, and the situation of location information loss does not occur.
Referring to fig. 6, in some embodiments, when the current network status is a clear status, the method for reporting location information further includes:
06: acquiring indication information sent by a server 200, wherein the indication information comprises a server status code identifier;
07: judging whether the server side state code identification is in a third state;
031: if yes, reporting the current position information and the off-line position information to the server 200;
04: if not, the current location information of the device side 100 is stored in the local offline database of the device side 100.
Referring to fig. 2, in some embodiments, step 06 may be implemented by the second obtaining module 16. Step 07 may be implemented by the third determining module 17. Step 031 may be implemented by the reporting module 13. That is, the second obtaining module 16 may be configured to obtain the indication information sent by the server 200 when the current network status is a clear status, where the indication information includes a server status code identifier. The third judging module 17 may be configured to judge whether the server status code identifier is in the third state. The reporting module 13 may be configured to report the current location information and the offline location information to the server 200 when the status code of the server 200 is in the third state. The storage module 14 may be configured to store the current location information of the device side 100 in a local offline database of the device side 100 when the server side 200 status code of the server side 200 is not in the third status.
Specifically, when the network status is clear and the offline location information exists in the local offline database, the device 100 may invoke the server pre-reporting interface, and the server pre-reporting interface may generate a return value (i.e., indication information) to the device 100. The device side 100 determines whether the server side status code identifier in the return value is true, and if so, the device side 100 uploads the offline position information and the current position information to the server side 200 together. If not, the device side 100 continues to store the current location information in the local offline database of the device side 100. Referring to fig. 3, it can be understood that the server 200 communicates with a plurality of device sides 100. When the network state is smooth and the offline position information exists in the local offline database, a plurality of device ends 100 may need to report the position information to the server end 200, and the server end state code identifier defines that a part of the device ends 100 can report data, and a part of the device ends 100 first suspend reporting data, so as to avoid the problem that the network recovers the instantaneous high-concurrency and high-data-volume request and causes an excessive load to the server end 200.
It should be noted that, when the network state is smooth and the offline location information does not exist in the local offline database, the device side 100 may also call the server side pre-reporting interface and obtain a return value generated by the server side pre-reporting interface. The device side 100 determines whether the server side status code identifier in the return value is true, and if so, the device side 100 uploads the current location information to the server side 200. If not, the device side 100 stores the current location information in a local offline database.
Referring to fig. 7, in some embodiments, the indication information further includes a limit amount. Step 03, reporting the current location information of the device 100 to the server 200, including:
032: judging whether the quantity of the offline position information stored in the local offline database is greater than a limited quantity or not;
033: if yes, reading a limited amount of off-line position information, and reporting the limited amount of off-line position information to the server 200;
034: if not, reporting all the offline position information in the local offline database to the server 200.
Referring to fig. 2, in some embodiments, step 032 to step 034 can be implemented by the reporting module 13. That is, the reporting module 13 may be configured to determine whether the number of the offline position information stored in the local offline database is greater than or equal to the limited number. If the number of the offline position information stored in the local offline database is greater than the limited number, the reporting module 13 reads the limited number of the offline position information, and reports the limited number of the offline position information to the server 200. If the number of the offline position information stored in the local offline database is less than or equal to the limited number, the reporting module 13 reports all the offline position information in the local offline database to the server 200.
Specifically, if the quantity of the offline location information in the local offline database is too large, for example, greater than the limited quantity, the device side 100 reads the limited quantity of offline location information, and reports the limited quantity of offline location information to the server side 200. And the remaining offline position information waits for reporting for one or more times in a follow-up mode, and is determined according to the number of the remaining offline position information in the local offline database. If the quantity of the offline location information in the local offline database is small, for example, less than or equal to the limited quantity, the device side 100 reports all the offline location information to the server side 200 at one time. By limiting the reporting number, the situation that the server 200 is overloaded due to the fact that the server 200 needs to receive too many data at one time can be avoided.
Referring to fig. 8, in some embodiments, the step 03 of reporting the current location information of the device 100 to the server 200 further includes:
035: carrying out format conversion on the current position information to obtain format conversion position information;
036: compressing the format conversion information to obtain compressed position information;
037: and reporting the compressed position information to the server 200.
Referring to fig. 2, in some embodiments, steps 035 to 037 can be implemented by the reporting module 13. That is, the reporting module 13 is further configured to perform format conversion on the current location information to obtain format conversion location information, compress the format conversion information to obtain compressed location information, and report the compressed location information to the server 200.
Specifically, when the device end 100 only needs to report the current location information, the device end 100 converts the current location information into a json format to obtain format conversion location information, and then performs gzip compression on the format conversion location information to obtain compressed location information. Subsequently, the device 100 reports the compressed location information to the server 200. When the device end 100 needs to report the current location information and the offline location information at the same time, the device end 100 converts the current location information and the offline location information into json format to obtain format conversion location information. Subsequently, the format conversion location information is subjected to gzip compression to obtain compressed location information. Subsequently, the device 100 reports the compressed location information to the server 200. Through format conversion and compression, the data volume of the information to be reported can be properly reduced, and the information transmission efficiency is improved.
Referring to fig. 9, in some embodiments, the method for reporting location information further includes:
08: and deleting the offline position information reported to the server 200 in the local offline database.
Referring to fig. 2, in some embodiments, step 08 may be implemented by deletion module 18. That is, the deleting module 18 may be configured to delete the offline location information reported to the server 200 in the local offline database.
It can be understood that after the offline location information in the local offline database is reported to the server 200, the offline location information needs to be deleted to avoid repeated reporting of the information. Therefore, redundant data transmission can be avoided, and waste of the space of the server 200 caused by the fact that the server 200 stores redundant data can be avoided.
Of course, before deleting the offline location information reported to the server 200 in the local offline database, the device 100 may determine in advance whether the offline location information is successfully uploaded. If so, the offline position information can be deleted. If not, reporting the off-line position information again. And repeating the steps in a circulating way until the offline position information is reported successfully. Correspondingly, the position information reporting device at this time comprises a fourth judging module. The fourth judging module is used for judging whether the off-line position information is uploaded successfully. The deleting module 18 is configured to delete the offline position information after the offline position information is successfully reported. The reporting module is used for reporting the off-line position information again when the off-line position information fails to be reported.
In addition, referring to fig. 10, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for reporting location information according to any of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The contents of the method embodiments of the present application are all applicable to the storage medium embodiments, the functions specifically implemented by the storage medium embodiments are the same as those of the method embodiments, and the beneficial effects achieved by the storage medium embodiments are also the same as those achieved by the method described above, and for details, refer to the description of the method embodiments, and are not described herein again.
In addition, referring to fig. 11, an embodiment of the present application further provides a computer device, where the computer device described in this embodiment may be a server, a personal computer, a network device, and other devices. The computer device includes: one or more processors, a memory, one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to perform the method for reporting location information as in any of the above embodiments.
The contents of the method embodiment of the present application are all applicable to the computer apparatus embodiment, the functions specifically implemented by the computer apparatus embodiment are the same as those of the method embodiment, and the beneficial effects achieved by the method are also the same as those achieved by the method.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (10)
1. A method for reporting location information is used for a device side, and the device side communicates with a server side, and the method for reporting location information is characterized by comprising the following steps:
acquiring a current network state;
judging whether the current network state is a smooth state or not;
if so, reporting the current position information of the equipment terminal to the server terminal;
if not, storing the current position information of the equipment end in a local offline database of the equipment end to form offline position information, and continuously executing the step of acquiring the current network state.
2. The method according to claim 1, wherein the determining whether the current network status is a clear status comprises:
judging whether the current network state is in any one of a 2G state, a 3G state or a no-network state;
if not, determining that the current network state is a smooth state, and setting a predefined switch identifier to be a first state;
and if so, determining that the current network state is a blocking state, and setting a predefined switch identifier to be in a second state.
3. The method according to claim 1, wherein when the current network status is a clear status, the method further comprises:
judging whether the offline position information exists in the local offline database or not;
if so, reporting the current position information of the equipment terminal to the server terminal, including:
and reporting the current position information and the off-line position information to the server.
4. The method according to any of claim 3, wherein when the current network status is a clear status, the method further comprises:
acquiring indication information sent by the server, wherein the indication information comprises a server state code identifier;
judging whether the server side state code identification is in a third state;
if so, reporting the current position information and the off-line position information to the server;
if not, storing the current position information in the local off-line database.
5. The method for reporting location information according to claim 4, wherein the indication information further includes a limited number; the reporting the current location information of the device to the server includes:
judging whether the quantity of the offline position information stored in the local offline database is greater than the limited quantity or not;
if yes, reading the off-line position information of the limited quantity, and reporting the off-line position information of the limited quantity to the server;
if not, reporting all the offline position information in the local offline database to the server.
6. The method according to claim 5, wherein the reporting the current location information of the device to the server further comprises:
carrying out format conversion on the current position information to obtain format conversion position information;
compressing the format conversion information to obtain compressed position information;
and reporting the compressed position information to the server.
7. The method of claim 5, wherein the method further comprises:
and deleting the offline position information reported to the server side in the local offline database.
8. A location information reporting device is used for a device side, the device side communicates with a server side, and the location information reporting device comprises:
the acquisition module is used for acquiring the current network state;
the judging module is used for judging whether the current network state is a smooth state or not;
the reporting module is used for reporting the current position information of the equipment terminal to the server terminal when the network state is a smooth state;
the storage module is used for storing the current position information of the equipment end in a local offline database of the equipment end to form offline position information when the network state is not a smooth state;
the obtaining module is further configured to continue to perform the step of obtaining the current network state.
9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the method for reporting location information according to any one of claims 1 to 7.
10. A computer device, comprising:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to: executing the method according to any one of claims 1 to 7 for reporting location information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111063592.8A CN113840229A (en) | 2021-09-10 | 2021-09-10 | Position information reporting method and device, readable storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111063592.8A CN113840229A (en) | 2021-09-10 | 2021-09-10 | Position information reporting method and device, readable storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113840229A true CN113840229A (en) | 2021-12-24 |
Family
ID=78959016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111063592.8A Withdrawn CN113840229A (en) | 2021-09-10 | 2021-09-10 | Position information reporting method and device, readable storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113840229A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114615137A (en) * | 2022-03-25 | 2022-06-10 | 浙江捷创方舟数字技术有限公司 | 5G data transmission method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104851142A (en) * | 2015-05-19 | 2015-08-19 | 浪潮通信信息系统有限公司 | Communication line inspection tool and method based on mobile computing |
-
2021
- 2021-09-10 CN CN202111063592.8A patent/CN113840229A/en not_active Withdrawn
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104851142A (en) * | 2015-05-19 | 2015-08-19 | 浪潮通信信息系统有限公司 | Communication line inspection tool and method based on mobile computing |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114615137A (en) * | 2022-03-25 | 2022-06-10 | 浙江捷创方舟数字技术有限公司 | 5G data transmission method and device |
CN114615137B (en) * | 2022-03-25 | 2024-05-28 | 浙江捷创方舟数字技术有限公司 | 5G data transmission method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683720B (en) | Container cluster service configuration method and device | |
CN106921506B (en) | Data acquisition reporting method and system for mobile equipment | |
CN108733531B (en) | GPU performance monitoring system based on cloud computing | |
CN107346270B (en) | Method and system for real-time computation based radix estimation | |
CN111159195A (en) | Data storage control method and equipment in block chain system | |
CN113840229A (en) | Position information reporting method and device, readable storage medium and computer equipment | |
EP3660679B1 (en) | Data backup method, device and system | |
US8553999B2 (en) | Method and system for providing tile map service using solid compression | |
CN108200543B (en) | Short message sending method and device | |
CN104092754A (en) | File storage system and method | |
CN110134547B (en) | Middleware-based repeated data deleting method and related device | |
CN112654974A (en) | File scanning method, file scanning device and terminal equipment | |
CN113098978B (en) | Data transmission method, device and medium | |
CN114968945A (en) | Data retention management method and device, storage medium and equipment | |
CN111385327B (en) | Data processing method and system | |
CN112653717B (en) | Multi-cloud cooperation distributed system and application distribution method | |
CN112905127A (en) | Data processing method and data processing system | |
CN112037926A (en) | Method, system, medium and server for implementing household isolation alarm | |
CN116149959B (en) | Data processing device, method, monitoring equipment and computer program product | |
CN108965454B (en) | Sensing system and method for providing intelligent service in Internet of things | |
CN114070756B (en) | Method for counting network traffic and related device | |
CN110972241A (en) | Network access method of mobile equipment, mobile equipment and storage device | |
CN114339850B (en) | Base station data transmission method and device, storage medium and electronic device | |
JP7492091B1 (en) | Estimation device and estimation method | |
CN113037528B (en) | Elastic expansion and contraction method and device for alarm service node |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20211224 |
|
WW01 | Invention patent application withdrawn after publication |