CN111935214A - Data transmission method based on field mobile equipment - Google Patents

Data transmission method based on field mobile equipment Download PDF

Info

Publication number
CN111935214A
CN111935214A CN202010607272.3A CN202010607272A CN111935214A CN 111935214 A CN111935214 A CN 111935214A CN 202010607272 A CN202010607272 A CN 202010607272A CN 111935214 A CN111935214 A CN 111935214A
Authority
CN
China
Prior art keywords
data
mobile equipment
server
mobile
mobile device
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.)
Pending
Application number
CN202010607272.3A
Other languages
Chinese (zh)
Inventor
王新林
曹小明
关茂
马映登
张先文
张金苍
刘正涛
陈瑜
杜成
李均宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Railway First Survey and Design Institute Group Ltd
Original Assignee
China Railway First Survey and Design Institute Group Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Railway First Survey and Design Institute Group Ltd filed Critical China Railway First Survey and Design Institute Group Ltd
Priority to CN202010607272.3A priority Critical patent/CN111935214A/en
Publication of CN111935214A publication Critical patent/CN111935214A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a data transmission method based on field mobile equipment, which is characterized in that the association relationship between the mobile equipment is established at a server, when the mobile equipment collects data in the field, the collected data is firstly stored in a database of the mobile equipment, and then the uploading or downloading of the data of the mobile equipment is triggered under the network condition. By the method, a user can cache data in the client under the temporary field non-network environment or the environment with weak network signals, continue to collect the data of the mobile terminal, and synchronize with the server once the network environment data exists, so that technical support and guarantee are provided for the internal and external integrated information operation of exploration engineering; meanwhile, the invention also enhances the reliability and the safety of the data.

Description

Data transmission method based on field mobile equipment
Technical Field
The invention relates to the field of engineering exploration data transmission, in particular to a data transmission method based on field mobile equipment.
Background
With the rapid development of information technology, the network and information technology rapidly affect the life and work of people at an unprecedented speed. In recent years, with the rapid development of mobile devices and mobile internet, the development of the application of information technology in the production and management of various industries is greatly promoted.
Meanwhile, the smart phone and the tablet personal computer with the GNSS function almost become standard fittings for life and work of people, and provide good technical and resource guarantee for mobile equipment to develop and utilize APP under a mobile network environment around position service. People are driven to participate in the construction of city informatization, government affair informatization, public service information and enterprise informatization through a convenient intelligent terminal.
The popularization of mobile networks, GNSS positioning technology and mobile equipment provides a software and hardware using environment for the field data acquisition of railway engineering exploration. All information (information such as exploration data, progress, plan, change, field management and the like) of an engineering project is organically integrated through a computer application software system consisting of an APP mobile terminal, a Web terminal and a PC terminal, digital acquisition and processing of engineering exploration field data such as soil layers, sampling, marking, dynamic exploration and the like can be realized, and internal and external integrated operation is realized, so that data acquisition and data management are realized, and then the data and data application exploration data full life cycle management is realized, the overall work cooperation of the project is improved, and the exploration efficiency and quality are improved.
According to the reports of relevant data of Ministry of industry and belief, although the 4G coverage rate of the mobile network in the urban and rural population residential areas is 98%, some remote areas and mountain areas are not popularized yet, and the railway engineering exploration operation site is often in the field non-signal area or the area with weak mobile network signals due to rare people, so that the bottleneck of digital acquisition of the mobile terminal is formed, data cannot be uploaded, and the application of the APP of the mobile terminal of a user is seriously influenced.
Disclosure of Invention
The invention aims to provide a data transmission method based on field mobile equipment, which solves the problems of data management and storage and synchronous data transmission when no network environment exists or network signals are weak in the existing drilling data acquisition.
The technical scheme adopted by the invention is as follows:
the data transmission method based on the field mobile equipment is characterized in that:
the method comprises the following steps:
the incidence relation between the mobile devices is established at the server, when the mobile devices collect data in the field, the collected data are firstly stored in the database of the mobile devices, and then the data collected by the mobile devices are uploaded or downloaded under the network condition to be triggered.
The database of the mobile equipment is a local SQLite database established at the mobile equipment end, when the mobile equipment collects data in the field, the collected data is firstly stored in the database of the mobile equipment, data collection coordinates and data collection time are stored, after the data are explored in the field and returned to a work gathering place, uploading or downloading triggering of the data of the mobile equipment is carried out under a network condition.
In the method, the process of downloading triggering under the network condition is as follows:
when detecting the data downloading trigger, the mobile equipment transmits the user identity parameters to the server and sends a data downloading request to acquire the latest data file in the authority of the mobile equipment on the server;
the server receives a downloading request of the mobile equipment, acquires data in the account authority of the mobile equipment in a server database according to the transmission parameters of the mobile equipment and generates an interface file;
the server sends the generated interface file to the mobile equipment;
and when the mobile equipment receives a file acquisition message sent by the server, acquiring the interface file from the server.
The interface file is a Json format interface file, the contents of the Json format interface file are formed by adopting data in different prefabricated formats according to transmission parameters, and the contents comprise:
presetting a format convention type;
a data download trigger to a mobile device is detected.
After the mobile device acquires the Json format interface file from the server, the method further comprises the following steps: the mobile equipment converts the interface file with the preset format to generate format data for the mobile equipment database to recognize and store in the mobile equipment database; the mobile device displays the data.
In the method, the uploading triggering process under the network condition is as follows:
after the mobile equipment collects relevant exploration data in a field non-network environment, and after a data uploading trigger request is detected, the mobile equipment acquires new un-uploaded data stored in a mobile equipment database according to the last uploading trigger time of a current authority user stored in the mobile equipment database;
the mobile equipment converts the acquired uploading data into a preset format Json character string;
the mobile equipment uploads the converted Json character string to a server;
the server acquires preset format character string data uploaded by the mobile equipment.
After the server obtains the preset format character string data uploaded by the mobile equipment, the method further comprises the following steps:
and the server converts the preset format data to generate recognizable data of the server database, and stores the recognizable data in the server.
When the data uploading trigger of the mobile equipment is detected, the authority account information of the mobile equipment and the latest uploading trigger time are simultaneously stored on the server;
after the mobile device detects the download trigger and successfully completes the download interaction with the server data, the mobile device saves the current download time of the mobile device authority account in the mobile device database as the upload request of the next trigger data of the mobile device, and the mobile device uploads the data acquisition range.
Under the condition of a network environment, the mobile equipment triggers data uploading operation, and updates the upload time field of the user table in the mobile equipment database after the latest data of the mobile equipment end is successfully uploaded to the server; similarly, after the data downloading operation is successfully triggered, the download field in the user table of the database of the mobile device is updated, and the feedback result of the mobile device after each data uploading or downloading trigger is the latest version.
The method also comprises the steps that when the mobile equipment collects data, the strength of the 4G signal is firstly detected, and different data transmission strategies are adopted for judging the strength of the mobile network signal according to the obtained dbm value.
The invention has the following advantages:
by the method, a user can cache data in the client under a temporary field non-network environment or an environment with weak network signals, continue to collect data of the mobile terminal, and synchronize with the server once the data of the network environment exists, so that technical support and guarantee are provided for the information-based operation of the internal and external integration of exploration engineering. Meanwhile, the invention also enhances the reliability and the safety of the data.
Drawings
Fig. 1 is a flowchart illustrating a method for downloading data from a server by a mobile device according to a first embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for a server to communicate data to a mobile device according to an embodiment of the present invention;
FIG. 3 is a data flow diagram illustrating a second server retrieving and encapsulating data conforming to the mobile device's rights into a preset format according to mobile device transfer parameters according to an embodiment of the present invention;
fig. 4 shows a flowchart of a method for receiving download request data returned by a server by a mobile device according to a third embodiment of the present invention;
FIG. 5 is a diagram illustrating a first, second, and third data transmission method according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating the management of groups and users in a mobile device according to a third embodiment of the present invention; (ii) a
FIG. 7 shows a schematic diagram of the distribution of boreholes in a mobile device according to example three of the present invention;
fig. 8 shows a schematic diagram of data acquisition in a mobile device according to example three of the present invention;
FIG. 9 shows a mobile device download structure diagram according to example three of the present invention;
FIG. 10 is a data flow diagram illustrating the uploading of collected data to a server by a mobile device in accordance with the fourth embodiment of the present invention; FIG. 11 is a flow chart illustrating a method for obtaining and encapsulating update data in a mobile device according to example four of the present invention;
fig. 12 is a flowchart illustrating a server-side parsing and storing upload data according to the fourth embodiment of the present invention.
Fig. 13 shows a data upload schematic according to a fourth embodiment of the present invention.
Fig. 14 shows a mobile end upload structure diagram according to a fourth embodiment of the present invention.
Fig. 15 is a diagram showing a structure of a data transmission system between a mobile terminal and a server according to the present invention.
Detailed Description
The present invention will be described in detail with reference to specific embodiments.
The invention relates to a data transmission method based on field mobile equipment, and provides a data transmission method between mobile equipment in a network-free environment, wherein an association relation between the mobile equipment is established at a server, and the method comprises the following steps:
detecting the strength of the mobile signal:
and when the mobile equipment arrives at an exploration work point, the software detects the strength of the 4G signal.
Designing a mobile equipment side database:
the method comprises the steps of establishing a local SQLite database at a mobile equipment end, when the mobile equipment collects data in the field, firstly storing collected data such as stratum, standard penetration, dynamic exploration, rock core, media, intermediate inspection, final hole acceptance inspection and the like related to drilling in the mobile equipment database, storing information such as data collection coordinates, data collection time and the like, after the data are explored in the field every day, returning to a work gathering place, and carrying out uploading (downloading) triggering on the data of the mobile equipment under a network condition.
Detecting a data download trigger to a mobile device:
and when the data downloading trigger is detected, the mobile equipment transmits the user identity parameters to the server and sends a data downloading request to acquire the latest data file in the authority of the mobile equipment on the server.
And the server receives a download request of the mobile equipment, acquires data in the account authority of the mobile equipment in the server database according to the transmission parameters of the mobile equipment and generates the Json format interface file.
The server sends the generated Json format interface file to the mobile equipment;
and when the mobile equipment receives a file acquisition message sent by the server, acquiring the Json format interface file from the server.
And (4) selecting. The Json format interface file content is formed by adopting data in different prefabricated formats according to transmission parameters, and comprises the following contents:
presetting a format convention type;
detecting a data download trigger to a mobile device:
after the mobile device obtains the Json format interface file from the server, the method further comprises the following steps: the mobile equipment converts the interface file with the preset format to generate format data for the mobile equipment database to recognize and store in the mobile equipment database; the mobile device displays the data.
Detecting a data upload trigger to a mobile device:
after the mobile equipment collects relevant exploration data in a field non-network environment, and after detecting the data uploading trigger request, the mobile equipment acquires new un-uploaded data stored in a mobile equipment database according to the last uploading trigger time of a current authority user stored in the mobile equipment database;
the mobile equipment converts the acquired uploading data into a preset format Json character string;
and the mobile equipment uploads the converted Json character string to a server.
The server acquires preset format character string data uploaded by the mobile equipment;
and the server converts the preset format data to generate recognizable data of the server database and stores the recognizable data in the server.
According to the embodiment of the invention, because the association relationship between the mobile devices is established at the server, when the data uploading trigger to the mobile devices is detected, the authority account information of the mobile devices and the latest uploading trigger time need to be simultaneously saved on the server; after the mobile device detects the download trigger and successfully completes the download interaction with the server data, the mobile device stores the current download time of the mobile device permission account in the mobile device database so as to serve as the next data uploading request triggered by the mobile device, the data acquisition range is uploaded by the mobile device, the data is prevented from being repeatedly triggered and uploaded, and the time is saved.
The method according to the invention is described in further detail below with reference to the attached drawing, which is only intended as an example of the idea of an embodiment and is not to be considered as limiting the invention.
While illustrative embodiments of the disclosure are shown in the drawings, it should be understood that the concepts of the disclosure can be embodied in different forms and are not limited to the embodiments described.
In the embodiment of the present invention, the mobile device is a computer device that can be used in mobile, such as a mobile phone, a tablet, and a PAD customized for a professional.
The embodiment of the invention provides a data transmission method between mobile devices in a network-free environment, wherein the association relationship between the mobile devices is established at a server.
Specifically, the server side stores all project, user, organization, authority, drilling and related approval data. Each mobile device is assigned with an identification account, the account is assigned with different roles in different projects, and the different roles have different processing authorities for management and drilling data in the projects. The server transmits different data to the mobile equipment according to the roles of the users in different projects, stores the latest data uploaded by the mobile equipment in a database in the server, and records the latest updating time of all data.
In order to ensure the effectiveness and safety of data acquisition, a set of complete database system (containing data such as units, users, units, roles, drilling holes, parameters, strata, standard penetration, dynamic exploration, cores, media, intermediate inspection, final hole acceptance and the like) is created in the mobile equipment, when the mobile equipment acquires data in a network-free environment, the acquired data is firstly stored in the database of the mobile equipment, and information such as recorded creation (updating) time, creation position coordinates, creators and the like is stored in each record, so that the effectiveness of data acquisition in the network-free environment is ensured. And when the existence signal area is returned, triggering data synchronization operation, uploading the data of the mobile equipment through the server, and updating the latest data on the server to the mobile equipment so as to achieve the aim of data interaction among different mobile equipment.
The mobile equipment has six roles, including an exploration unit administrator (responsible for exploration unit set, account and authority distribution data management and drilling task distribution), a unit captain (responsible for realizing intermediate process inspection and final hole acceptance data rectification and confirmation of project department technicians), a unit record (responsible for all drilling related data, such as drilling basic information, drilling bottom layer information, target data and dynamic exploration data acquisition), an exploration unit technician (responsible for drilling rock core data and media data acquisition), an exploration unit technical responsible person (responsible for auditing data of exploration unit stratum, rock core, standard penetration, dynamic exploration and the like, and data cannot be changed after auditing), and a project department technician (responsible for intermediate process inspection and final hole acceptance data and media data acquisition).
In the mobile equipment, each unit has a captain and a record, each unit is responsible for the acquisition of a certain amount of drilling data, and each technical staff of project department is responsible for the acceptance of the drilling data of a certain unit. The data of drilling basic data, stratum, standard penetration, core, dynamic probe, media, intermediate process inspection, final hole acceptance and the like are associated through the unique identifier ID of the drilling.
In the invention, when the mobile equipment collects data, software firstly detects the strength of the 4G signal.
Method method = null;
method = signalStrength.getClass().getMethod("getDbm");
dbm = method1.invoke(signalStrength);
And judging the strength of the mobile network signal by the obtained dbm value and adopting different data transmission strategies.
And the signal intensity value between-50 dbm and-85 dbm belongs to a normal range, the identity authentication is automatically carried out through a network login server, and the data updating operation is carried out through the server according to the data uploading (downloading) trigger of the mobile equipment.
And when the signal intensity value is less than-85 dbm (below-110 dbm, no signal is considered), in order to ensure the reliability and continuity of data transmission, a local login mode is adopted to carry out identity verification and data acquisition.
In an embodiment of the present invention, the mobile database may store the item-user-unit-role relationship in a corresponding permission table, where the associated permission table includes: item ID, role ID, user ID, unit ID (optional), unit ID, update date, creator, delete marker, etc.
One example structure of the association table may be:
create table if not exists purd_Tab(uid nvarchar primary key,
project nvarchar,
role nvarchar,
user nvarchar,
unit nvarchar,
dept nvarchar,
updatetime nvarchar,
creater nvarchar,
del nvarchar)
in an embodiment of the present invention, the user and the upload and download time determination data are stored in a user data table of the mobile terminal database, where the user table includes: user name, user login name, user password, user unit, account manager, account creation time, account update time, remark information, latest data download time, latest data upload time, delete flag, and the like.
One example structure may be:
create table if not exists User_Tab(uid nvarchar primary key,
name nvarchar,
logname nvarchar,
pwd nvarchar,
deptid nvarchar,
creater nvarchar,
createtime nvarchar,
updatetime nvarchar,
bz nvarchar,
downloadtime nvarchar,
uploadtime nvarchar,
del nvarchar)
in the implementation example of the present invention, in order to ensure the effectiveness and safety of data acquisition, the mobile device acquires data of the stratum, the standard penetration, the dynamic exploration, the rock core, the media, the intermediate process inspection, the mesopore acceptance inspection, etc. of the borehole in the field without a network environment, and firstly stores the data in the database of the mobile device. The formation information table in the collected information includes: the system comprises a drilling hole serial number, a drilling unit, a drilling hole record, a record serial number, record time, a work category, work time, a drilling type, a drilling diameter, casing parameters, a sampling serial number, a drilling depth, a drilling opening depth, a final drilling depth, a core serial number, a core length, a type along the way, rock stratum description, auxiliary information, rock stratum grades, a water sample serial number, a soil sample serial number, a washing liquid type, washing liquid viscosity, washing liquid specific gravity, air-to-ground pressure, updating time, a deletion mark, a creator, a collection longitude, a collection dimension, a collection point and drilling hole distance, whether to be audited, an auditor, audit date and other information.
One example structure may be:
create table if not exists Z_Tab(uid nvarchar primary key,
pid nvarchar,
zkbh nvarchar,
zkjl nvarchar,
jlbh nvarchar,
worktime nvarchar,
zttype nvarchar,
depth nvarchar,
start nvarchar,
end nvarchar,
yxbh nvarchar,
yxlength nvarchar,
yttype nvarchar,
……
sh nvarchar,
shr nvarchar,
shrq nvarchar)
under the condition of a network environment, the mobile equipment triggers data uploading operation, updates the upload time field of the user table in the mobile equipment database after the latest data of the mobile equipment end is uploaded to the server successfully, and similarly updates the download field of the user table in the mobile equipment database after the data downloading operation is successfully triggered so as to ensure that the feedback result is the latest version after the data uploading (downloading) of the mobile equipment is triggered each time.
The above is only a specific implementation manner of the embodiment of the present invention, and the actual processing may be different according to different requirements and different databases, and should not be construed as limiting the present invention.
Example one
Fig. 1 is a flowchart illustrating a method for downloading data from a server by a mobile device according to a first embodiment of the present invention.
In the embodiment of the invention, the data downloading request is completed by the interaction of the mobile equipment and the server.
Step 101, a data download trigger to a mobile device is checked.
In the embodiment of the invention, the mobile equipment is used for triggering the transmission of the data downloading, and the triggering of the data downloading of the mobile equipment can be detected in real time.
In the embodiment of the invention, the data downloading trigger is realized by clicking a 'synchronous downloading' button in the mobile equipment.
Step 102, when the data downloading trigger is detected, the mobile device sends a request to the server, wherein the request includes login account information in the mobile device.
And the server retrieves and encapsulates the mobile equipment data according to the mobile equipment transmission parameters and transmits the mobile equipment data to the mobile equipment.
And 103, after the mobile equipment acquires the latest data fed back by the server, analyzing and storing the feedback data in the mobile equipment database. And meanwhile, updating the synchronous downloading time information in the login account in the mobile equipment so as to avoid repeatedly updating the historical data during the next synchronous downloading.
Because different mobile devices log in different roles in different projects, different mobile devices synchronously download data in the same project, so in order to better complete data transmission interaction between the mobile devices and the server, a set of universal encoding and decoding methods needs to be configured in the mobile devices and the service, and preset format data can be formed (or analyzed) by the encoding (or decoding) method and can be used between the mobile devices and the server.
In the embodiment of the present invention, if the preset format is a Json format, the preset format data is a Json character string. Of course, the preset format may also be data in other formats, such as XML, ini, etc., which is not limited in this application.
In an embodiment of the present invention, the data in the preset format includes at least one of the following items: the data type, the data update date, and the data specific information (which are different according to the data type).
Example two
Fig. 2 is a flowchart of a method for a server to deliver data to a mobile device according to an embodiment of the present invention, which mainly describes a process of downloading data requested by the mobile device by a server.
Step 201, the server receives the mobile device data request parameter.
Step 202, the server obtains the server data meeting the requirement of the transfer parameter according to the request of the mobile device.
Step 203, the server transmits data to the mobile device.
And the server encapsulates the data acquired according to the mobile equipment transmission parameters into a Json format and transmits the data to the mobile equipment.
Fig. 3 shows the process of retrieving and packaging the data requested by the mobile device by the server according to the second embodiment of the present invention.
Step 301, the server obtains the preset format user parameter transmitted by the mobile device through an analysis module.
Step 302, the server obtains data meeting the user authority according to the user parameters obtained from the mobile device.
According to the mobile device user parameters, the server traverses a role authority parameter table in a database on the server to acquire the user participation project list and the role information of the user in the project, and according to the acquired information, the server acquires the latest class viewing data of the corresponding user role in the corresponding project.
And 303, the server packages the acquired user authority data into a Json format according to different roles of the device user in different projects, encrypts a Json format character string and transmits the Json format character string to the mobile device.
EXAMPLE III
Fig. 4 shows a flow chart of a method for receiving download request data returned by a server by a mobile device.
Step 401, the mobile device receives preset format data returned by the server. The data format is a Json character string format, and information such as the data type of the data and the data updating time is recorded in each Json character string.
Step 402, the data analysis module in the mobile device analyzes the Json character string transmitted back by the server, firstly obtains the specific type of the data, calls the data analysis module corresponding to the data type on the mobile device according to the agreed rule between the server and the mobile device, and analyzes the Json format data into a data format which can be recognized by the mobile device.
Step 403, the mobile device stores the data analyzed by the data analysis module in the mobile device in a database in the mobile device, when the data is stored, determines whether the corresponding data exists or not, if the corresponding data does not exist, the data is directly inserted, if the corresponding data exists, determines the time relationship between the corresponding recording time in the mobile device and the analyzed data, if the analyzed data time is later than the data of the mobile device, the data is updated, otherwise, the data of the mobile device is not changed.
And after all data are analyzed, setting the time of the downloadtime field in the user data in the mobile equipment database as the time of the mobile equipment requesting downloading.
Fig. 5 is a schematic diagram illustrating a first, a second, and a third data transmission method according to an embodiment of the present invention.
Step 5.1, the mobile equipment detects data downloading trigger and packages local user data into data with a preset format;
step 5.2, the mobile equipment sends a data downloading request to the server;
step 5.3, the server receives the request of the mobile equipment, analyzes the data and retrieves all data meeting the conditions in a database on the server according to the parameter authority;
step 5.4, the server uses a preset data packaging module to package the data analyzed out from the server into a Json format character string;
step 5.5, the server sends the encapsulated Json format character string to the mobile equipment;
step 5.6, after the mobile equipment receives the encapsulated data sent by the server, the encapsulated data is analyzed into data which can be identified and stored by the mobile equipment;
and 5.7, the mobile equipment stores the analyzed data in a local database and calls a module corresponding to the mobile equipment to display.
Fig. 6 is a schematic diagram illustrating the management of groups and users in a mobile device according to the third embodiment of the present invention.
This data is responsible for collecting data for the exploration unit administrator. The data of the exploration unit set, the data of the exploration unit user and the data of the user authority distribution of the exploration unit in the corresponding project are included.
The figure shows only a portion of the data for which the administrator of the exploration unit is responsible.
Fig. 7 shows a schematic diagram of the distribution of the drill holes in the mobile device according to example three of the present invention.
And according to different roles of the project in which the user is located in the mobile equipment, the number of the drilled holes which can be checked is different. Fig. 8 shows a schematic diagram of data acquisition in a mobile device according to example three of the present invention.
According to different roles of the user in the mobile equipment, different role accounts have different processing permissions on the collected data.
Fig. 9 shows a mobile device download architecture diagram according to example three of the present invention.
The mobile device triggers a trigger 11 after a download application is triggered, calls a download interface module 12 to acquire the mobile device data, then calls a resolver 13 to resolve the download data, displays the data by using a display 14 according to the requirement,
example four
Fig. 10 is a data flow diagram illustrating the uploading of collected data to a server by a mobile device in accordance with the fourth embodiment of the present invention.
In the embodiment of the invention, the data uploading request is completed by the interaction of the mobile equipment and the two ends of the putrefaction device.
Step 1001, detecting a trigger of the mobile device to upload data.
In the embodiment of the invention, the mobile equipment is used for triggering the transmission of the data uploading, and the triggering of the data uploading of the mobile equipment can be detected in real time.
In the embodiment of the invention, the data uploading trigger is realized by clicking a synchronous uploading button in the mobile equipment.
Step 1002, when detecting the data upload trigger, the mobile device detects data meeting the condition, and sends preset format data to a server.
Step 1003, the server receives the mobile device transmission data.
And after acquiring the data uploaded by the mobile equipment, the server analyzes and stores the data, and feeds back an uploading result to the mobile equipment.
Fig. 11 is a flowchart illustrating a method for acquiring and encapsulating latest data in a mobile device according to the fourth embodiment of the present invention. The corresponding method is implemented at the mobile equipment end.
Step 1101, after the mobile device detects a data uploading request triggered by a button, triggering a data uploading function, and acquiring login account information of the mobile device, including a login account and the update time of the mobile device.
Step 1102, the mobile device retrieves all items in a database in the mobile device according to the login account and the update time information acquired when the uploading is triggered, acquires the role of the account in the item, and acquires the latest data in the database on the mobile device after the update time by using the update time as a node.
1103, the mobile device calls a data encapsulation module of the mobile device, and encapsulates the latest data obtained in the step 1102, wherein the encapsulation format is a Json character string, and the character string includes information such as a data type, a corresponding type record data, and an update date.
Step 1104, the mobile device uploads the encapsulated Json data to a server, and performs subsequent processing according to a server feedback result, and if the result is successful, the update time of the user in the mobile device is updated; if the user fails, prompting the reason of the failure, and prompting the user to upload again without changing the data updating time of the user.
Fig. 12 is a flowchart illustrating a server-side parsing and storing upload data according to the fourth embodiment of the present invention. The corresponding method is implemented at the server side.
Step 1201, the server detects the mobile device data upload trigger.
Step 1202, the server calls an interface module to receive the Json data packet in the preset format uploaded by the mobile device.
Step 1203, the server calls an analysis module, and analyzes the Json data packet uploaded by the mobile device as data recognizable by the server according to a data field value corresponding to a data type agreed in advance.
Step 1204, the server updates the drilling records on the server according to the update time of each record of the data in the obtained uploading account, if the update time exists, the relationship between the uploading data and the current data update time is judged, if the uploading time is not earlier than the data of the server, the record is updated, otherwise, the record is not updated; and if no data exists, directly inserting the data into the server database.
And after the data processing of the server is finished, feeding back a result to the mobile equipment according to the success or failure so as to facilitate the mobile equipment to carry out subsequent processing.
Fig. 13 shows a data upload schematic according to a fourth embodiment of the present invention. The method is realized by interaction of the mobile device and the server side.
Step 12.1, the mobile device detects a data upload trigger;
step 12.2, the mobile equipment calls a data retrieval module to retrieve the latest drilling data meeting the requirements;
step 12.3, the mobile equipment calls a data packaging module to package the finest data into a preset Json format;
step 12.4, the mobile equipment uploads the encapsulated data to the server;
step 12.5, the server receives and analyzes the data uploaded by the mobile equipment into recognizable format data of the server database;
step 13.6, the server stores the analyzed data in the server database;
step 13.7, the server feeds back processing meaning to the mobile equipment according to the analysis and data storage results;
and step 13.8, the mobile equipment receives the server feedback result and updates the account uploading date field in the mobile equipment according to the uploading result.
Fig. 14 shows a mobile end upload structure diagram according to a fourth embodiment of the present invention.
The module 14.1 is triggered by the mobile terminal uploading trigger to acquire the mobile equipment login account and uploading date field data;
the module 14.2, the mobile equipment retriever, according to the login account and upload date, obtains the data which meets the conditions on the mobile equipment;
a module 14.3, the mobile device calls a packaging module to package the data meeting the conditions into a preset format Json character string;
and 14.4, uploading data after the mobile equipment calls the uploading section.
Fig. 15 is a diagram showing a structure of a data transmission system between a mobile terminal and a server according to the present invention.
In the invention, data uploading and downloading operations between all mobile devices are transferred through a server, and the latest data is stored in the server; and realizing data interaction among different mobile devices through an encapsulation (analysis) module of the server.
When no network condition exists or the network condition is not good, all the data collected by the mobile equipment are stored in the local database of the mobile equipment, the latest updating time of the data is stored in each record, and the user is used as a retrieval condition; when a network environment exists, the uploading or downloading function of the mobile equipment is triggered, the data of the server side is updated, and the synchronization of the data among different mobile equipment is kept.
The invention is not limited to the examples, and any equivalent changes to the technical solution of the invention by a person skilled in the art after reading the description of the invention are covered by the claims of the invention.

Claims (10)

1. The data transmission method based on the field mobile equipment is characterized in that:
the method comprises the following steps:
the incidence relation between the mobile devices is established at the server, when the mobile devices collect data in the field, the collected data are firstly stored in the database of the mobile devices, and then the data collected by the mobile devices are uploaded or downloaded under the network condition to be triggered.
2. The data transmission method based on the field mobile device as claimed in claim 1, wherein:
the database of the mobile equipment is a local SQLite database established at the mobile equipment end, when the mobile equipment collects data in the field, the collected data is firstly stored in the database of the mobile equipment, data collection coordinates and data collection time are stored, after the data are explored in the field and returned to a work gathering place, uploading or downloading triggering of the data of the mobile equipment is carried out under a network condition.
3. The data transmission method based on the field mobile device as claimed in claim 2, wherein:
in the method, the process of downloading triggering under the network condition is as follows:
when detecting the data downloading trigger, the mobile equipment transmits the user identity parameters to the server and sends a data downloading request to acquire the latest data file in the authority of the mobile equipment on the server;
the server receives a downloading request of the mobile equipment, acquires data in the account authority of the mobile equipment in a server database according to the transmission parameters of the mobile equipment and generates an interface file;
the server sends the generated interface file to the mobile equipment;
and when the mobile equipment receives a file acquisition message sent by the server, acquiring the interface file from the server.
4. The field mobile device-based data transmission method according to claim 3, wherein:
the interface file is a Json format interface file, the contents of the Json format interface file are formed by adopting data in different prefabricated formats according to transmission parameters, and the contents comprise:
presetting a format convention type;
a data download trigger to a mobile device is detected.
5. The field mobile device-based data transmission method according to claim 4, wherein:
after the mobile device acquires the Json format interface file from the server, the method further comprises the following steps: the mobile equipment converts the interface file with the preset format to generate format data for the mobile equipment database to recognize and store in the mobile equipment database; the mobile device displays the data.
6. The field mobile device-based data transmission method according to claim 5, wherein:
in the method, the uploading triggering process under the network condition is as follows:
after the mobile equipment collects relevant exploration data in a field non-network environment, and after a data uploading trigger request is detected, the mobile equipment acquires new un-uploaded data stored in a mobile equipment database according to the last uploading trigger time of a current authority user stored in the mobile equipment database;
the mobile equipment converts the acquired uploading data into a preset format Json character string;
the mobile equipment uploads the converted Json character string to a server;
the server acquires preset format character string data uploaded by the mobile equipment.
7. The field mobile device-based data transmission method according to claim 6, wherein:
after the server obtains the preset format character string data uploaded by the mobile equipment, the method further comprises the following steps:
and the server converts the preset format data to generate recognizable data of the server database, and stores the recognizable data in the server.
8. The field mobile device-based data transmission method according to claim 7, wherein:
when the data uploading trigger of the mobile equipment is detected, the authority account information of the mobile equipment and the latest uploading trigger time are simultaneously stored on the server;
after the mobile device detects the download trigger and successfully completes the download interaction with the server data, the mobile device saves the current download time of the mobile device authority account in the mobile device database as the upload request of the next trigger data of the mobile device, and the mobile device uploads the data acquisition range.
9. The method of claim 8, wherein the method comprises:
under the condition of a network environment, the mobile equipment triggers data uploading operation, and updates the upload time field of the user table in the mobile equipment database after the latest data of the mobile equipment end is successfully uploaded to the server; similarly, after the data downloading operation is successfully triggered, the download field in the user table of the database of the mobile device is updated, and the feedback result of the mobile device after each data uploading or downloading trigger is the latest version.
10. The data transmission method based on the field mobile device as claimed in claim 9, wherein:
the method also comprises the steps that when the mobile equipment collects data, the strength of the 4G signal is firstly detected, and different data transmission strategies are adopted for judging the strength of the mobile network signal according to the obtained dbm value.
CN202010607272.3A 2020-06-29 2020-06-29 Data transmission method based on field mobile equipment Pending CN111935214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010607272.3A CN111935214A (en) 2020-06-29 2020-06-29 Data transmission method based on field mobile equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010607272.3A CN111935214A (en) 2020-06-29 2020-06-29 Data transmission method based on field mobile equipment

Publications (1)

Publication Number Publication Date
CN111935214A true CN111935214A (en) 2020-11-13

Family

ID=73317664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010607272.3A Pending CN111935214A (en) 2020-06-29 2020-06-29 Data transmission method based on field mobile equipment

Country Status (1)

Country Link
CN (1) CN111935214A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115221172A (en) * 2022-07-25 2022-10-21 中国人民解放军陆军航空兵学院 Method for electronic acquisition and storage based on portable terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023910A (en) * 2012-12-24 2013-04-03 北京奇虎科技有限公司 Mobile device and method for calculating data transmission between devices
CN104361128A (en) * 2014-12-05 2015-02-18 河海大学 Data synchronization method of PC (Personnel Computer) end and mobile terminal based on hydraulic polling business
CN107516136A (en) * 2017-08-24 2017-12-26 北京鼎通远科技发展有限公司 Power Line Inspection System
WO2019096086A1 (en) * 2017-11-14 2019-05-23 钉钉控股(开曼)有限公司 Access method for shared space, and permission management method and apparatus
CN110648120A (en) * 2019-09-29 2020-01-03 国家林业和草原局西北调查规划设计院 Online forest resource supervision method based on mobile internet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023910A (en) * 2012-12-24 2013-04-03 北京奇虎科技有限公司 Mobile device and method for calculating data transmission between devices
CN104361128A (en) * 2014-12-05 2015-02-18 河海大学 Data synchronization method of PC (Personnel Computer) end and mobile terminal based on hydraulic polling business
CN107516136A (en) * 2017-08-24 2017-12-26 北京鼎通远科技发展有限公司 Power Line Inspection System
WO2019096086A1 (en) * 2017-11-14 2019-05-23 钉钉控股(开曼)有限公司 Access method for shared space, and permission management method and apparatus
CN110648120A (en) * 2019-09-29 2020-01-03 国家林业和草原局西北调查规划设计院 Online forest resource supervision method based on mobile internet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115221172A (en) * 2022-07-25 2022-10-21 中国人民解放军陆军航空兵学院 Method for electronic acquisition and storage based on portable terminal
CN115221172B (en) * 2022-07-25 2023-03-17 中国人民解放军陆军航空兵学院 Method for electronic acquisition and storage based on portable terminal

Similar Documents

Publication Publication Date Title
CN110807023B (en) Survey management and data intelligent analysis system and method based on GIS
CN102394885B (en) Information classification protection automatic verification method based on data stream
CN106096813A (en) A kind of Environment features based on whole process management and control management system and management method
CN105260857A (en) Intelligent management system and method thereof for rural migrant workers
CN107656981A (en) A kind of data sharing and management method and system based on identification technology
US8286257B2 (en) Enabling synchronous and asynchronous collaboration for software applications
CN102663545A (en) Power distribution network maintenance operation management system based on intelligent mobile phone
CN107392829A (en) Water power Emigration in Water Conservancy Project evaluation information system
CN111612405A (en) Rock and soil dynamic information processing system and method based on cloud GIS platform
KR20140032205A (en) System and method for disaster damage investigation based on mobile
CN107341605A (en) One kind prospecting field operation informationization monitoring and managing method and system
CN105704130A (en) Electricity safety system based on wireless communication devices
CN105225071A (en) Based on the power communication identity management method of Quick Response Code
CN109151090A (en) IP address association analysis method and analysis system based on Internet basic resource
CN111935214A (en) Data transmission method based on field mobile equipment
CN107590083A (en) A kind of magnanimity remote sensing tile data release quickly method based on OWGA memory caches
CN109961630A (en) A kind of intelligent bus information acquisition system
CN110322110A (en) A kind of petrochemical industry pressure pipeline management system
CN101277246B (en) Safety communication method based on transport layer VPN technique
CN109615700A (en) Three-dimension virtual reality tunnel monitoring system and its operating method
CN109033425A (en) A kind of knowledge base management system based on spatial geographic information
CN110069552A (en) A kind of data processing system and method
CN107832315A (en) The management method of oilfield enterprise's exploration and development volume data
AU2013374357B2 (en) System and method of populating a well log
Lin et al. ShakeCast manual

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201113

WD01 Invention patent application deemed withdrawn after publication