A data transmission method and device, electronic equipment and storage medium
By deploying WebService servers and clients in the vehicle control system, and combining them with a network gateway for forwarding and result feedback mechanisms, the issues of data transmission security and real-time performance were resolved, achieving secure, fast, and complete data transmission.
Patent Information
- Application Number
- CN202011224596.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-05
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2040-11-05
AI Technical Summary
In existing vehicle control systems, the network gateway opens the database server port to external network devices, resulting in low data transmission security, affecting real-time performance and integrity. Furthermore, external network devices cannot promptly resend data, leading to data loss.
Deploy the first connection server on the intranet and configure the first WebService server. Deploy the second connection server on the extranet and configure the second WebService client. Data is transmitted through the WebService protocol and forwarded through the network gateway. The result is saved to determine whether to resend the data.
It improves the security and real-time performance of data transmission, ensures data integrity, and enhances data transmission efficiency through parallel data stream transmission and data retransmission mechanisms.
Smart Images

Figure CN114531566B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of video monitoring technology, and in particular to a data transmission method and device, electronic equipment and a storage medium. BACKGROUND
[0002] The vehicle control system is a most commonly used system platform for traffic police, which can display vehicle information, illegal information and pictures, and has functions of vehicle control and capture, route analysis, vehicle statistics, etc. Each manufacturer uploads the captured vehicle data and pictures to the vehicle control system. Since network transmission of data is involved, a network gateway is introduced in networking to divide the networking into two parts, one part being an external network and the other part being an internal network. The front-end camera, industrial computer and other devices are in the external network (such as the Internet), and the vehicle control system platform is in the internal network (such as a local area network).
[0003] The most commonly used data transmission scheme at present is as follows: a database server is set in the internal network, and the network gateway opens the port of the database server to the specified devices in the external network, so that the external network devices can penetrate the network gateway and write the vehicle data and pictures into the database server.
[0004] However, this method still has some disadvantages: the network gateway opens the port of the database server to the specified devices in the external network, so that some specified external network devices directly write data to the internal network database server without passing through the network gateway, which reduces the security of data transmission; moreover, the time consumption for writing vehicle data and pictures into the database depends on the disk IO performance of the database server, and with the increase of the database data volume, the time consumption for writing increases, which affects the real-time performance of data transmission; if the data writing fails, the external network devices cannot know it, and the data cannot be re-sent, which results in data loss and affects the integrity of data. SUMMARY
[0005] The embodiments of the present application provide a data transmission method and device, electronic equipment and a storage medium to improve the security of data transmission and ensure the real-time performance and integrity of data transmission.
[0006] In a first aspect, the embodiments of the present application provide a data transmission method applied to a first docking server deployed in an internal network, the first docking server comprising a first WebService server, and the method comprises the following steps:
[0007] receiving, by the first WebService server, the to-be-uploaded data sent by a second WebService client on a second docking server and saved, wherein the second docking server is deployed in an external network, and the external network is separated from the internal network by a network gateway;
[0008] The saving result is fed back to the second docking server through the gateway, so that the second docking server judges whether the to-be-uploaded data needs to be resent according to the saving result.
[0009] In a second aspect, the embodiments of the present application provide a data transmission method, applied to a second docking server deployed in an external network, the second docking server being provided with a second WebService client, and the method comprising:
[0010] receiving to-be-uploaded data sent by an external network platform, wherein the to-be-uploaded data is saved in the external network platform after being collected by a front-end collector;
[0011] forwarding the to-be-uploaded data to a first WebService server of a first docking server through the second WebService client via a gateway, so that the first docking server saves the to-be-uploaded data; wherein the first docking server is deployed in an internal network;
[0012] receiving a saving result fed back by the first docking server, and judging whether the to-be-uploaded data needs to be resent according to the saving result.
[0013] In a third aspect, the embodiments of the present application provide a data transmission device, configured in a first docking server deployed in an internal network, the first docking server comprising a first WebService server, and the device comprising:
[0014] a first data receiving module, configured to receive to-be-uploaded data sent by a second WebService client of a second docking server via a gateway and through the first WebService server, and save the to-be-uploaded data; wherein the second docking server is deployed in an external network, and the external network is separated from the internal network by the gateway;
[0015] a feedback module, configured to feed back a saving result to the second docking server through the gateway, so that the second docking server judges whether the to-be-uploaded data needs to be resent according to the saving result.
[0016] In a fourth aspect, the embodiments of the present application provide a data transmission device, configured in a second docking server deployed in an external network, the second docking server being provided with a second WebService client, and the device comprising:
[0017] a second data receiving module, configured to receive to-be-uploaded data sent by an external network platform, wherein the to-be-uploaded data is saved in the external network platform after being collected by a front-end collector;
[0018] The data sending module is configured to forward the data to be uploaded to the first WebService server of the first docking server through the second WebService client via the gatekeeper, so that the first docking server saves the data to be uploaded; wherein the first docking server is deployed in the intranet.
[0019] The feedback result receiving module is configured to receive the saving result fed back by the first docking server, and determine whether the data to be uploaded needs to be resent according to the saving result.
[0020] In a fifth aspect, the embodiments of the present application further provide an electronic device, comprising:
[0021] One or more processors;
[0022] A storage device configured to store one or more programs,
[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method according to any embodiment of the present application.
[0024] In a sixth aspect, the embodiments of the present application further provide a computer readable storage medium having a computer program stored thereon, which is executed by a processor to implement the data transmission method according to any embodiment of the present application.
[0025] In the embodiments of the present application, the data transmission between the first docking server and the second docking server is forwarded through the gatekeeper, which guarantees the security of the data; and the data transmission adopts the WebService protocol, so that the data is sent in parallel in the form of data stream, the data transmission speed is fast, and the real-time performance of the data transmission is guaranteed; by feeding back the saving result of the data to the second docking server, the second docking server resends the data when the saving fails, so as to guarantee the integrity of the data. BRIEF DESCRIPTION OF DRAWINGS
[0026] Figure 1 is a flowchart of the data transmission method according to the first embodiment of the present application;
[0027] Figure 2a is a flowchart of the data transmission method according to the second embodiment of the present application;
[0028] Figure 2b is a flowchart of the data transmission between the devices according to the second embodiment of the present application;
[0029] Figure 3 is a logic flowchart of the data transmission method according to the third embodiment of the present application;
[0030] Figure 4is a logical flowchart of a data transmission method according to the fourth embodiment of the present application;
[0031] Figure 5 is a flowchart of a data transmission method according to the fifth embodiment of the present application;
[0032] Figure 6 is a logical flowchart of a data transmission method according to the sixth embodiment of the present application;
[0033] Figure 7 is a flowchart of a data transmission method according to the seventh embodiment of the present application;
[0034] Figure 8 is a flowchart of a data transmission method according to the eighth embodiment of the present application;
[0035] Figure 9 is a structural schematic diagram of a data transmission device according to the ninth embodiment of the present application;
[0036] Figure 10 is a structural schematic diagram of a data transmission device according to the tenth embodiment of the present application;
[0037] Figure 11 is a structural schematic diagram of an electronic device for implementing a data transmission method according to the eleventh embodiment of the present application. DETAILED DESCRIPTION
[0038] The present application will be further described below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, not all the structures.
[0039] Figure 1 is a flowchart of a data transmission method according to the first embodiment of the present application. The present embodiment can be applied to the case of realizing safe and fast data transmission through the docking server of the intranet and the extranet. The method can be executed by a data transmission device, which can be realized in software and / or hardware, and can be integrated in an electronic device, such as a server.
[0040] In the embodiments of the present application, vehicle data (for example, vehicle passing data, illegal data) and snapshot pictures need to be uploaded to a vehicle control system platform deployed in an internal network from an external network. Although a network lock safeguards the security of the network in networking, it complicates the entire networking. Currently, the vehicle control system usually has two requirements for uploaded vehicle data and pictures, one is real-time, which ensures that the vehicle data and pictures are uploaded to the vehicle control system platform within 8 seconds, and if the delay is large, the control function cannot be used; the other is integrity, the vehicle data and pictures cannot be lost, otherwise the historical data analysis, illegal judgment and other functions will be affected. Based on this, in order to ensure the real-time and integrity of the uploaded vehicle data and pictures, the inventors creatively propose a data transmission method, specifically, a first docking server is deployed in the internal network, and the first docking server is configured with a first WebService server; a second docking server is deployed in the external network, and the second docking server is configured with a second WebService client, so that the first docking server and the second docking server can perform data transmission based on the WebService protocol.
[0041] It should be noted that, in order to ensure that the first docking server and the second docking server can perform data transmission based on the WebService protocol, it is necessary to first establish a connection between the first WebService server and the second WebService client. Optionally, the process of establishing the connection includes: the first docking server starts the first WebService server, and the second docking server starts the second WebService client; the first docking server receives the connection message sent by the second WebService client on the second docking server and forwarded by the network lock, and replies to the response message, that is, the response message is forwarded to the second docking server through the network lock, so as to establish a connection between the first WebService server and the second WebService client.
[0042] On the basis of the above, as shown in Figure 1 The data transmission method specifically includes the following processes:
[0043] S101, receiving the to-be-uploaded data sent by the second WebService client on the second docking server and forwarded by the network lock through the first WebService server, and saving the to-be-uploaded data.
[0044] In the embodiment of the present application, the to-be-uploaded data is obtained by the second docking server from an external network platform. The external network platform is a platform deployed in the external network for storing various data collected by a front-end collector, and is optionally an entity server device. That is, after the front-end collector (for example, a camera) collects picture data and vehicle data, the picture data and the vehicle data are stored in the external network platform through a transmission protocol (for example, a tcp protocol), so that the external network platform forwards the stored data to the second docking platform.
[0045] Further, the to-be-uploaded data can be determined according to the storage pressure of the vehicle control system platform (i.e., the internal network platform). If the storage of the vehicle control system platform is sufficient, the to-be-uploaded data is optionally a combination of vehicle data and picture data; if the storage of the vehicle control system platform is insufficient, the to-be-uploaded data is optionally vehicle data and a picture URL (Uniform Resource Locator, Uniform Resource Locator system); wherein the vehicle data is optionally structured text data, including vehicle brand, license plate number, and illegal information, etc., and the picture URL is suitable for representing the storage location of the picture data in the external network platform.
[0046] In the embodiment of the present application, in order to further ensure the real-time performance of data transmission, the second WebService client on the second docking server can create multiple data transmission threads in advance, and then send the to-be-uploaded data to the gatekeeper in parallel through multi-threading, and after being verified by the gatekeeper, the to-be-uploaded data sent in parallel is forwarded to the first WebService server of the first docking server, so that the first WebService server receives the to-be-uploaded data in parallel, thereby ensuring the speed of data transmission, and further ensuring the real-time performance of data transmission.
[0047] After the first docking server receives the to-be-uploaded data, it can save the data in its local database or disk, so as to subsequently upload the receipts saved in the database or disk to the vehicle control system platform.
[0048] S102, the saving result is fed back to the second docking server through the gatekeeper, so that the second docking server determines whether the to-be-uploaded data needs to be resent according to the saving result.
[0049] The saving result can optionally include saving success and saving failure, and the first docking server can feed back the saving result to the second docking server through the gatekeeper, so that the second docking server knows whether the to-be-uploaded data is successfully saved, and if not, the to-be-uploaded data is resent to ensure the integrity of the to-be-uploaded data.
[0050] In the embodiment of the application, the data transmission between the first docking server and the second docking server is forwarded through the gateway, ensuring the security of the data; and the data transmission adopts the WebService protocol, so that the data is sent in the form of data stream in parallel, ensuring the real-time performance of the data transmission; and the saving result of the data is fed back to the second docking server, so that the second docking server re-sends the data when the saving fails, ensuring the integrity of the data.
[0051] Figure 2a is a flow chart of the data transmission method according to the second embodiment of the application, which is optimized on the basis of the above-mentioned embodiment, and the method comprises the steps of Figure 2a
[0052] S201, receiving, by the first WebService server, the to-be-uploaded data sent by the second WebService client on the second docking server and forwarded by the gateway.
[0053] The second docking server is deployed in an external network, and the external network is separated from an internal network by the gateway.
[0054] In the embodiment of the application, the to-be-uploaded data comprises vehicle data and picture data; the first docking server further comprises a local memory disk and a local database. The local memory disk is formed by dividing the memory, and optionally divided by using the SoftPerfect ram disk software, and the size is exemplarily 24 GB (the first docking server has a total of 32 GB memory, 24 GB is used for caching pictures, and 8 GB is used for system use). The local memory disk has the advantage of fast read-write speed. The local database is used for saving structured data.
[0055] S202, caching the picture data to the local memory disk and obtaining the cache path of the picture data.
[0056] Since the writing of the vehicle data and the picture into the database needs time, the time consumption depends on the disk IO performance of the database server, and with the increase of the database data volume, the writing time consumption will also increase, and the picture is large, and the writing into the database is slow, so the real-time performance of the data transmission will be affected. Based on this, in order to improve the real-time performance of the data transmission, the inventors creatively propose to save the vehicle data and the picture data separately. Specifically, the picture data is cached to the local memory disk, and since the local memory disk has fast read-write speed, the time consumption is short compared with the storage in the database, thereby ensuring the real-time performance of the output transmission.
[0057] Further, after the picture data is cached in the local memory disk, the cache path of the picture data in the local memory disk is obtained. It should be noted that the reason for obtaining the cache path of the picture data in the local memory disk is to ensure that the corresponding picture data can be quickly found according to the cache path subsequently.
[0058] S203, write the vehicle data and the cache path into the local database.
[0059] The vehicle data and the cache path are optional structured text data, which are written into the local database at a high speed and with a short time consumption, thereby ensuring the real-time data transmission.
[0060] S204, feed the saving result to the second docking server through the gatekeeper, so that the second docking server judges whether the to-be-uploaded data needs to be re-sent according to the saving result.
[0061] The specific process is described in the above embodiment, which is not repeated here.
[0062] S205, query the cache path of the to-be-uploaded vehicle data and the picture data in the database, and acquire the corresponding picture data from the local memory disk according to the cache path.
[0063] In the embodiment, the data in the local database can be identified in different states according to different flag bits, wherein the states include a to-be-uploaded state, an uploaded state, a deleted state and the like. After the to-be-uploaded data is saved in the first docking server through the steps S201-S203, the cache path of the vehicle data and the picture data in the to-be-uploaded state in the database is queried, and the corresponding picture data is acquired from the local memory disk according to the cache path.
[0064] S206, upload the vehicle data and the acquired picture data to the intranet platform.
[0065] After the to-be-uploaded vehicle data and the picture data are acquired, the vehicle data and the picture data can be uploaded to the intranet platform through a preset transmission protocol, wherein the intranet platform is a platform in which the vehicle control system is deployed.
[0066] S207, judge whether the data is uploaded successfully.
[0067] Optionally, the first docking server and the intranet platform have a response mechanism, and the first docking server can determine whether the uploading is successful according to the information fed back by the intranet platform. If not, S208 is executed, and if yes, S209 is executed.
[0068] S208, re-upload the vehicle data and the acquired picture data, and the number of repeated uploading is less than a preset number threshold.
[0069] If the uploading fails or times out, the vehicle data and the obtained picture data need to be re-uploaded. It is to be noted that, in order to avoid the abnormal situation of infinite retransmission, a preset number threshold is set in advance, that is, the maximum number of allowed retransmissions is equal to the preset number threshold. If the retransmission fails when the number of retransmissions is equal to the preset number threshold, the uploading of the data and the picture is abandoned, and is marked as uploading failure, and other data is continuously uploaded; if the uploading succeeds when the number of repeated uploading is less than the preset number threshold, S209 is executed.
[0070] S209, marking the cache path of the vehicle data and the picture data as uploaded in the local database.
[0071] After the vehicle data and the obtained picture data are uploaded to the intranet platform, the cache path of the vehicle data and the picture data is marked as uploaded in the local database, so as to avoid subsequent repeated uploading.
[0072] Further, in order to clearly describe the process of data transmission, refer to Figure 2b which shows a flowchart of data transmission. Specifically, the first docking server and the intranet platform are deployed on the intranet side, the second docking server, the extranet platform and the front-end camera are deployed on the extranet side; the intranet and the extranet are separated by a network lock. The front-end camera collects the data of the passing vehicle, such as license plate information, vehicle brand, whether illegal and the captured picture; the vehicle data and the picture are sent to the extranet platform through a transmission protocol. The extranet platform sends the saved to-be-uploaded data to the second docking server, the second docking server sends the to-be-uploaded data to the network lock through the second WebService client, the network lock verifies and sends the to-be-uploaded data to the first WebService server on the first docking server, then saves the received picture data in the local memory disk, and saves the cache path of the picture and the vehicle data in the database; then, the to-be-uploaded vehicle data and the cache path are queried from the local memory disk, the corresponding picture is obtained, and the obtained picture and the vehicle data are uploaded to the intranet platform.
[0073] In the embodiment of the application, the structured vehicle data and the picture data are separated, and the picture data is cached in the local memory disk. Since the memory disk has high reading and writing speed, the caching of the picture consumes less time, and the real-time performance of data transmission is ensured. At the same time, the cache path of the structured vehicle data and the picture data is saved in the database. Since the data volume of the cache path of the vehicle data and the picture data is small, the writing speed into the database is fast, and the output transmission speed is ensured. The docking server and the platform on the intranet have a response mechanism, can realize data and picture retransmission, and ensure the integrity of the data.
[0074] Figure 3is a logic flow chart of the data transmission method according to the third embodiment of the present application, which is optimized on the basis of the above-mentioned embodiments, see Figure 3 The method logic comprises:
[0075] Firstly, the second docking server is started, and a second WebService client is started, and a multi-thread is created, so as to send the to-be-uploaded data in parallel through the multi-thread subsequently; the first docking server is started, and a first WebService server is started. The second WebService client sends a connection message to the gateway, the gateway verifies and forwards the connection message to the first WebService server, and replies an answer message to the gateway after the connection is successful, and the gateway sends the answer message to the second docking server, so as to establish the second WebService client and the first WebService server.
[0076] Further, the front-end camera transmits the to-be-uploaded picture and vehicle data to the external network platform, and optionally, a TCP protocol is used for transmission. The second docking server sends the to-be-uploaded data to the server address of the first docking server in parallel based on the WebService protocol through the multi-thread. Specifically, the to-be-uploaded data is sent to the gateway first, and after verification by the gateway, the to-be-uploaded data is forwarded to the first WebService server of the first docking server.
[0077] After receiving the to-be-uploaded data, the picture in the to-be-uploaded data is saved in the local memory disk, and the vehicle data and the picture in the to-be-uploaded data are saved in the local database in the cache path of the memory disk. Further, a saving result message is returned to the second docking server, specifically, the saving result message is sent to the gateway first, and after verification by the gateway, the saving result message is forwarded to the second docking server, and the second docking server judges whether the sending is successful or failed according to the saving result message. If failed, a re-sending process is started.
[0078] Further, the first docking server queries the database, and uploads the to-be-uploaded vehicle data in the database and the picture data corresponding to the to-be-uploaded cache path to the memory platform. It needs to be explained that if the uploading fails or times out, the data is re-uploaded. In order to avoid the abnormal situation of unlimited retransmission, the number of re-uploading is less than a preset number threshold. According to the feedback message of the memory platform, the flag bit of the corresponding data in the database is updated, that is, the cache path of the vehicle data and the picture data is marked as uploaded in the local database. And the specific logic can be executed according to the numbers in Figure 3 from 0 to 13.
[0079] In the embodiments of the present application, the structured vehicle data and the picture data are separated, the picture data is cached in the local memory disk, and the cache picture consumes less time due to the fast reading and writing speed of the memory disk, thereby ensuring the real-time data transmission. Meanwhile, the cache paths of the structured vehicle data and the picture data are saved in the database, and the data volume of the cache paths of the vehicle data and the picture data is small, thereby ensuring the speed of output transmission. The first docking server and the second docking server have a response mechanism, which can realize the retransmission of the vehicle data and the picture data, thereby ensuring the data integrity. The first docking server and the intranet platform have a response mechanism, which can realize the retransmission of the data and the picture data, thereby ensuring the data integrity.
[0080] Figure 4 FIG. 4 is a logic flow diagram of a data transmission method according to the fourth embodiment of the present application. The embodiment is optimized on the basis of the above-mentioned embodiments, and the cache paths of the vehicle data and the picture data in the local database are marked as uploaded. A step of periodically deleting the uploaded picture is added, as shown in FIG. 4. Figure 4 The method comprises the following steps.
[0081] S401, receiving the to-be-uploaded data sent by the second WebService client on the second docking server through the first WebService server.
[0082] S402, caching the picture data to the local memory disk and obtaining the cache path of the picture data.
[0083] S403, writing the vehicle data and the cache path into the local database.
[0084] S404, feeding back the saving result to the second docking server through the gatekeeper, so that the second docking server judges whether the to-be-uploaded data needs to be re-sent according to the saving result.
[0085] S405, querying the cache paths of the to-be-uploaded vehicle data and picture data in the database, and obtaining the corresponding picture data from the local memory disk according to the cache path.
[0086] S406, uploading the vehicle data and the obtained picture data to the intranet platform.
[0087] S407, judging whether the data is uploaded successfully.
[0088] If not, S408 is executed, and if yes, S409 is executed.
[0089] S408, re-uploading the vehicle data and the obtained picture data, and the number of repeated uploading is less than a preset number threshold.
[0090] S409, mark the cache path of the vehicle data and the picture data as uploaded in the local database.
[0091] For the description of the processes of S401-S409, refer to the above embodiments, which will not be repeated here.
[0092] In the embodiments of the present application, the local memory disk only serves as picture cache and does not serve as long-term picture storage; meanwhile, the local memory disk is limited, and if not cleaned, it will be full very easily, causing abnormal conditions. Therefore, the local memory disk needs to be cleaned regularly, and in the embodiments of the present application, a picture cleaning thread is established after the first WebService server is started, and the picture cleaning thread cleans pictures by performing S410-S411.
[0093] S410, periodically acquire the cache path of the vehicle data and the picture data marked as uploaded from the local database.
[0094] S411, delete the picture data corresponding to the cache path in the local memory disk.
[0095] In the embodiments of the present application, if the cache path of a picture in the database is marked as uploaded, it indicates that the picture data corresponding to the cache path has been uploaded to the memory platform, and there is no need to continue to cache in the local memory disk. That is, in order to save the local memory disk space, the picture data corresponding to the cache path marked as uploaded can be deleted in the local memory disk.
[0096] Further, the first docking server can appear abnormal, and when the first docking server appears abnormal, the first docking server will not process the picture and the vehicle data, causing part of the pictures to be not uploaded to the intranet platform due to timeout, at this time, the picture cleaning thread needs to determine the timeout pictures in the local memory disk, clean the timeout pictures, so as to ensure that the memory disk can always write pictures and will not appear full. Specifically, refer to S412-S413.
[0097] S412, compare the cache time of all picture data in the local memory disk with the current time in turn.
[0098] S413, if the time difference between the cache time of a picture data and the current time is greater than a preset time length, delete the picture data.
[0099] S414, mark the cache path corresponding to all deleted picture data as deleted in the local database.
[0100] After the uploaded and timeout picture data in the local memory disk are deleted through S410-S413, the cache paths corresponding to all the deleted picture data are marked as deleted in the local database. Then the picture cleaning thread enters hibernation and waits for the next round of cleaning.
[0101] In the embodiment of the application, the uploaded picture data or the timeout picture data in the local memory disk are periodically deleted by the picture cleaning thread, so as to ensure that the space of the local memory disk is sufficient, thereby ensuring that the picture data can be quickly saved in the local memory disk, and further ensuring the real-time performance of data transmission.
[0102] Figure 5 is a flowchart diagram of a data transmission method according to the fifth embodiment of the application. The embodiment is an optimization based on the above-mentioned embodiments: in the embodiment of the application, the to-be-uploaded data includes vehicle data and a picture URL; the picture URL is used to represent the storage address of the picture in the external network platform, that is, the picture data is always saved in the external network platform; the external network platform is a platform deployed in the external network and used to save the data collected by the front-end collector; correspondingly, the saving of the to-be-uploaded data includes: saving the vehicle data and the picture URL in the local database of the first docking server, so as to send the vehicle data and the picture URL to the internal network platform, so that the internal network platform subsequently accesses the corresponding picture by sending a picture acquisition request.
[0103] In the embodiment of the application, the first docking server further includes a first WebService client and a second WebService server on the second docking server; the process of establishing a connection between the first WebService client and the second WebService server is similar to the process of establishing a connection between the first WebService server and the second WebService client, and will not be described herein.
[0104] On the basis of the above-mentioned content, the data transmission method further includes:
[0105] S501, receiving a picture acquisition request sent by the internal network platform.
[0106] In the embodiment of the application, since the data uploaded to the internal network platform is vehicle data and a picture URL, when a certain picture data is to be viewed in the internal network platform, the picture is to be acquired from the external network through a picture acquisition request. The picture acquisition request includes the picture URL of the target picture. Specifically, when the picture data is acquired, the internal network platform first issues a picture acquisition instruction to the first docking server.
[0107] S502, sending a picture acquisition request to the gateway by the first WebService client, and forwarding the picture acquisition request to the second WebService server on the second docking server by the gateway, so that the second WebService server acquires the corresponding picture from the external network platform according to the picture URL of the target picture.
[0108] After the first docking server acquires the picture acquisition instruction, the first docking server sends the picture acquisition instruction to the gateway, and forwards the picture acquisition instruction to the second WebService server on the second docking server after the gateway verifies the security, so that the second WebService server analyzes the picture acquisition instruction to acquire the picture URL of the target picture in the instruction, and then acquires the corresponding target picture from the external network platform according to the picture URL of the target picture.
[0109] S503, receiving the target picture sent by the second WebService client on the second docking server and forwarded by the gateway through the first WebService server, and feeding back the target picture to the internal network platform.
[0110] After acquiring the target picture through S502, the target picture sent by the second WebService client on the second docking server and forwarded by the gateway is received through the first WebService server, and the specific transmission process is described above and will not be repeated here.
[0111] In the embodiment of the application, if the data uploaded to the internal network platform is vehicle data and a picture URL, the internal network platform can acquire the corresponding picture from the external network platform by sending a picture acquisition instruction with the picture URL, thereby realizing real-time access to picture data.
[0112] Figure 6 is a logic flowchart of a data transmission method according to the sixth embodiment of the application, which is optimized on the basis of the above-mentioned embodiments. Referring to Figure 6 , the method logic includes:
[0113] The logic of real-time access to picture data in the embodiment of the application can be executed in steps from 0 to 8 according to the numbers in Figure 6 . Specifically, the first WebService client of the first docking server and the second WebService server on the second docking server are started, and the connection between the first WebService client and the second WebService server is established, and the specific process is described above and will not be repeated here.
[0114] Further, when the inner network platform needs pictures, a picture acquisition request is initiated to the first docking server, and the request is optionally sent through http or webservice, and the like, and the specific implementation is not limited herein. The picture acquisition request includes a picture URL of a target picture. After receiving the picture acquisition request, the first docking server forwards the picture acquisition request to the gateway through the first webservice client, and the gateway forwards the picture acquisition request to the second webservice server of the second docking server.
[0115] Further, the second docking server analyzes the picture acquisition request to determine the picture URL of the target picture, and executes the picture acquisition request. After obtaining the target picture, the second docking server sends a response message including the target picture to the gateway through the second webservice client of the second docking server, and the gateway forwards the response message to the first docking server.
[0116] Further, the first docking server receives the target picture, and interacts with the inner network platform to upload the target picture to the inner network platform. The interaction is optionally performed through http or webservice, or through other protocols, and the specific implementation is not limited herein. After the inner network platform receives the target picture, the picture acquisition request is completed.
[0117] In the embodiment of the application, if the data uploaded to the inner network platform is vehicle data and a picture URL, the inner network platform can obtain the corresponding picture from the outer network platform by sending a picture acquisition instruction with the picture URL, thereby realizing real-time access to picture data.
[0118] Figure 7 FIG. 7 is a flowchart of a data transmission method according to the seventh embodiment of the application. The embodiment is applicable to the case of realizing safe and fast data transmission through the docking servers of the inner network and the outer network. The method can be executed by a data transmission device, which can be realized in software and / or hardware, and can be integrated in an electronic device, for example, a server.
[0119] In the embodiment of the application, the data transmission method is executed by the second docking server deployed in the outer network. The second docking server is provided with a second webservice client, as shown in FIG. 7. Figure 7 The method includes the following steps.
[0120] S701, receiving data to be uploaded sent by an outer network platform, wherein the data to be uploaded is collected by a front-end collector and saved in the outer network platform.
[0121] The data to be uploaded is a combination of vehicle data and picture data, or a combination of vehicle data and picture RUL. The specific implementation can be determined according to the storage capacity of the inner network platform.
[0122] S702, forwarding the data to be uploaded to the first WebService server of the first docking server via the gateway by the second WebService client, so that the first docking server saves the data to be uploaded; wherein the first docking server is deployed in the intranet.
[0123] S703, receiving the saving result fed back by the first docking server, and judging whether the data to be uploaded needs to be resent according to the saving result.
[0124] In the embodiments of the present application, the process of S702-S703 can be referred to the above-mentioned embodiments, and will not be repeated here.
[0125] In the embodiments of the present application, the data transmission between the first docking server and the second docking server is forwarded through the gateway, which guarantees the security of the data; and the data transmission adopts the WebService protocol, so that the data is sent in parallel in the form of data stream, which guarantees the real-time performance of the data transmission; by feeding back the saving result of the data to the second docking server, the second docking server resends the data when the saving fails, so as to guarantee the integrity of the data.
[0126] Figure 8 is a flowchart of the data transmission method according to the eighth embodiment of the present application, which is optimized on the basis of the above-mentioned embodiments. Referring to Figure 8 , the method comprises:
[0127] S801, receiving the picture acquisition request sent by the first WebService client and forwarded by the gateway by the second WebService server, wherein the picture acquisition request comprises the picture URL of the target picture.
[0128] S802, acquiring the corresponding target picture from the external network platform according to the picture URL of the target picture by the second WebService server.
[0129] S803, sending the target picture to the gateway by the second WebService client, so that the gateway forwards the target picture to the first WebService server.
[0130] In the embodiments of the present application, the process of S801-S803 can be referred to the logical description of the real-time access of the picture in the above-mentioned embodiments, and will not be repeated here.
[0131] Figure 9is a structural schematic diagram of a data transmission device according to a ninth embodiment of the application, configured in a first docking server deployed in an intranet, the first docking server comprising a first WebService server, the embodiment can be applied to the case of realizing safe and fast data transmission through the docking server of the intranet and the extranet, see Figure 9 The device comprises:
[0132] The first data receiving module 901 is configured to receive, through the first WebService server, the to-be-uploaded data sent by the second WebService client on the second docking server and saved, wherein the second docking server is deployed in an extranet, and the extranet is separated from the intranet through a gatekeeper;
[0133] The feedback module 902 is configured to feed back the saving result to the second docking server through the gatekeeper, so that the second docking server judges whether the to-be-uploaded data needs to be resent according to the saving result.
[0134] On the basis of the above-mentioned embodiments, optionally, the first docking server further comprises a local memory disk and a local database; the to-be-uploaded data comprises vehicle data and picture data;
[0135] Correspondingly, the first data receiving module comprises:
[0136] The picture caching unit is configured to cache the picture data to the local memory disk and acquire a caching path of the picture data;
[0137] The first vehicle data and path storage unit is configured to write the vehicle data and the caching path into the local database.
[0138] On the basis of the above-mentioned embodiments, optionally, the device further comprises:
[0139] The data query module is configured to, after the vehicle data and the caching path are written into the local database, query the caching path of the to-be-uploaded vehicle data and picture data in the database and acquire the corresponding picture data from the local memory disk according to the caching path;
[0140] The data reporting module is configured to upload the vehicle data and the acquired picture data to an intranet platform, wherein the intranet platform is a platform on which a vehicle control system is deployed.
[0141] On the basis of the above-mentioned embodiments, optionally, the device further comprises:
[0142] The judging module is configured to, after the vehicle data and the acquired picture data are uploaded to the intranet platform, judge whether the data is successfully uploaded;
[0143] The first repeated uploading module is configured to re-upload the vehicle data and the obtained picture data if the determination result is no, and the number of times of repeated uploading is less than a preset number threshold.
[0144] The first marking module is configured to mark the cache path of the vehicle data and the picture data as uploaded in the local database if the determination result is yes.
[0145] On the basis of the above-mentioned embodiments, the device further comprises:
[0146] The data query module is configured to periodically obtain the cache path of the vehicle data and the picture data marked as uploaded from the local database after marking the cache path of the vehicle data and the picture data as uploaded in the local database.
[0147] The first deletion module is configured to delete the picture data corresponding to the cache path in the local memory disk.
[0148] On the basis of the above-mentioned embodiments, the device further comprises:
[0149] The comparison module is configured to compare the cache time of all picture data in the local memory disk with the current time in sequence after deleting the picture data corresponding to the cache path in the local memory disk.
[0150] The second deletion module is configured to delete a certain picture data if the time difference between the cache time of the picture data and the current time is greater than a preset time length.
[0151] The second marking module is configured to mark the cache path of all deleted picture data as deleted in the local database.
[0152] On the basis of the above-mentioned embodiments, the device further comprises:
[0153] The starting module is configured to start the first WebService server, and receive the connection message sent by the second WebService client on the second docking server through the gateway.
[0154] The connection module is configured to forward the response message to the second docking server through the gateway, so as to establish the connection between the first WebService server and the second WebService client.
[0155] On the basis of the above-mentioned embodiments, the data to be uploaded comprises vehicle data and picture URL; wherein the picture URL is used to represent the storage address of the picture in the external network platform; wherein the external network platform is a platform deployed in the external network and used to save the data collected by the front-end collector.
[0156] Correspondingly, the first data receiving module comprises:
[0157] The second vehicle data and path storage unit saves the vehicle data and the picture URL in the local database of the first docking server, so as to send the vehicle data and the picture URL to the intranet platform.
[0158] On the basis of the above-mentioned embodiments, optionally, the first docking server further comprises a first WebService client, and the device further comprises:
[0159] The first request receiving module is configured to receive a picture acquisition request sent by the intranet platform, wherein the picture acquisition request comprises a picture URL of a target picture;
[0160] The request forwarding module is configured to send the picture acquisition request to the gateway by the first WebService client, and forward the picture acquisition request to the second WebService server on the second docking server by the gateway, so that the second WebService server acquires the corresponding picture from the extranet platform according to the picture URL of the target picture;
[0161] The picture receiving and feedback module is configured to receive the target picture sent by the second WebService client on the second docking server and forwarded by the gateway through the first WebService server, and feed back the target picture to the intranet platform.
[0162] The data transmission device provided in the embodiments of the present application can execute the data transmission method provided in any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.
[0163] Figure 10 is a structural schematic diagram of the data transmission device according to the tenth embodiment of the present application, which is configured on the second docking server deployed in the extranet, and the second docking server is provided with a second WebService client, the present embodiment can be applied to the case of realizing safe and rapid data transmission through the docking servers of the intranet and the extranet, referring to Figure 10 , the device comprises:
[0164] The second data receiving module 1001 is configured to receive the to-be-uploaded data sent by the extranet platform, wherein the to-be-uploaded data is collected by the front-end collector and saved in the extranet platform;
[0165] The data sending module 1002 is configured to forward the to-be-uploaded data to the first WebService server of the first docking server through the second WebService client and the gateway, so that the first docking server saves the to-be-uploaded data; wherein the first docking server is deployed in the intranet;
[0166] The feedback result receiving module 1003 is configured to receive the saving result fed back by the first docking server, and determine whether the to-be-uploaded data needs to be resent according to the saving result.
[0167] On the basis of the above-mentioned embodiments, optionally, the to-be-uploaded data is a combination of vehicle data and picture data or a combination of vehicle data and picture URL.
[0168] On the basis of the above-mentioned embodiments, optionally, the second docking server further comprises a second WebService server end;
[0169] Correspondingly, the apparatus further comprises:
[0170] The second request receiving module is configured to receive, through the second WebService server end, the picture acquisition request sent by the first WebService client and forwarded by the network gate, wherein the picture acquisition request comprises the picture URL of the target picture;
[0171] The picture acquisition module is configured to acquire, through the second WebService server end, the corresponding target picture from the external network platform according to the picture URL of the target picture;
[0172] The picture sending module is configured to send the target picture to the network gate through the second WebService client, so that the network gate forwards the target picture to the first WebService server end.
[0173] The data transmission apparatus provided in the embodiments of the present application can execute the data transmission method provided in any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.
[0174] Figure 11 is a structural schematic diagram of an electronic device provided in the sixth embodiment of the present application. As shown in the structure, the electronic device provided in the embodiments of the present application comprises one or more processors 1102 and a memory 1101; the processor 1102 in the electronic device can be one or more, Figure 11 for example; the memory 1101 is configured to store one or more programs; the one or more programs are executed by the one or more processors 1102, so that the one or more processors 1102 implement the data transmission method in any of the embodiments of the present application. Figure 11 The electronic device can further comprise an input device 1103 and an output device 1104.
[0175] The processor 1102, the memory 1101, the input device 1103 and the output device 1104 in the electronic device can be connected through a bus or other means,
[0176] Figure 11 The bus connection is taken as an example.
[0177] The storage device 1101 in the electronic device can be used to store one or more programs as a computer readable storage medium, which can be a software program, a computer executable program and a module, such as the program instructions / modules of the application control method provided in the embodiments of the present application. The processor 1102 executes various function applications and data processing of the electronic device by running the software programs, instructions and modules stored in the storage device 1101, that is, implements the data transmission method in the above method embodiments.
[0178] The storage device 1101 can include a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs required by at least one function; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 1101 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state memory device. In some examples, the memory 1101 can further include a memory remotely arranged with respect to the processor 1102, which can be connected to the device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0179] The input device 1103 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device. The output device 1104 can include a display device such as a display screen.
[0180] And when the above electronic device includes one or more programs executed by the one or more processors 1102, the program performs the following operations:
[0181] The first WebService server receives the data to be uploaded sent by the second WebService client on the second docking server through the gateway, and saves the data to be uploaded; wherein the second docking server is deployed in the external network, and the external network and the internal network are separated by the gateway;
[0182] The saving result is fed back to the second docking server through the gateway, so that the second docking server judges whether the data to be uploaded needs to be resent according to the saving result.
[0183] Of course, those skilled in the art can understand that when the above electronic device includes one or more programs executed by one or more processors 1102, the program can also perform the related operations in the application control method provided in any embodiment of the present application.
[0184] In one embodiment of the present application, a computer readable storage medium is provided, and a computer program is stored on the computer readable storage medium. The computer program is executed by a processor to perform a data transmission method. The method is applied to a first docking server deployed in an intranet. The first docking server comprises a first WebService server. The method comprises the following steps:
[0185] receiving, by the first WebService server, data to be uploaded sent by a second WebService client on a second docking server via a gatekeeper, and saving the data to be uploaded; wherein the second docking server is deployed in an extranet, and the extranet is separated from the intranet by the gatekeeper;
[0186] feeding the saving result to the second docking server via the gatekeeper, so that the second docking server judges whether the data to be uploaded needs to be resent according to the saving result.
[0187] Optionally, the computer program is executed by the processor to perform the method provided in any embodiment of the present application.
[0188] The computer storage medium of the embodiments of the present application can adopt any combination of one or more computer readable media. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples (non-exhaustive list) of the computer readable storage medium include: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus.
[0189] The computer readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, in which a computer readable program code is carried. Such a propagated data signal can take a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can be used to carry or store a program for use by or in connection with an instruction execution system, apparatus or device.
[0190] The program code embodied on the computer readable media can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, Radio Frequency (RF) etc., or any suitable combination of the foregoing.
[0191] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0192] Note that the above merely describes preferred embodiments of the present application and the principles of the technology applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, adjustments and substitutions can be made by those skilled in the art without departing from the scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A data transmission method, characterized by, The method is applied to a first docking server deployed in an intranet, and the first docking server comprises a first WebService server, and the method comprises the following steps: receiving, by the first WebService server, data to be uploaded sent by a second WebService client on a second docking server through a network gateway, and saving the data to be uploaded; wherein the second docking server is deployed in an extranet, the extranet is separated from the intranet through the network gateway, and the data to be uploaded comprises vehicle data and a picture URL; feeding back the saving result to the second docking server through the network gateway, so that the second docking server judges whether the data to be uploaded needs to be resent according to the saving result; The first docking server further comprises a first WebService client, and the method further comprises the following steps: receiving a picture acquisition request sent by the intranet platform, wherein the picture acquisition request comprises a picture URL of a target picture; sending the picture acquisition request to the network gateway through the first WebService client, and forwarding the picture acquisition request to the second WebService server on the second docking server through the network gateway, so that the second WebService server acquires corresponding pictures from the extranet platform according to the picture URL of the target picture; receiving the target picture sent by the second WebService client on the second docking server through the network gateway, and feeding back the target picture to the intranet platform through the first WebService server; The first docking server further comprises a local memory disk and a local database; the data to be uploaded comprises vehicle data and picture data; The saving of the data to be uploaded comprises the following steps: caching the picture data to the local memory disk, and acquiring a cache path of the picture data; writing the vehicle data and the cache path into the local database; wherein the vehicle data and the cache path are structured text data; querying the cache path of the vehicle data and the picture data to be uploaded in the database, and acquiring corresponding picture data from the local memory disk according to the cache path; uploading the vehicle data and the acquired picture data to the intranet platform, wherein the intranet platform is a platform for deploying a vehicle control system; judging whether the data is successfully uploaded; if not, reuploading the vehicle data and the acquired picture data, and repeating the uploading less than a preset number of times; if yes, marking the cache path of the vehicle data and the picture data as uploaded in the local database.
2. The method of claim 1, wherein, After marking the cache path of the vehicle data and the picture data as uploaded in the local database, the method further comprises the following steps: periodically acquiring the cache path of the vehicle data and the picture data marked as uploaded from the local database; deleting the picture data corresponding to the cache path in the local memory disk.
3. The method of claim 2, wherein, After deleting the picture data corresponding to the cache path in the local memory disk, the method further comprises the following steps: Comparing the cache time of each picture data in the local memory disk with the current time in sequence; If the time difference between the cache time of a certain picture data and the current time is greater than a preset time length, the picture data is deleted; In the local database, the cache path corresponding to the deleted picture data is marked as deleted.
4. The method of claim 1, wherein, Before receiving the data to be uploaded sent by the second WebService client on the second docking server through the gateway, the method further comprises: Starting the first WebService server to receive the connection message sent by the second WebService client on the second docking server through the gateway; Forwarding the response message to the second docking server through the gateway to establish the connection between the first WebService server and the second WebService client.
5. The method of claim 1, wherein, The picture URL is used to represent the storage address of the picture on the external network platform; wherein the external network platform is a platform deployed in the external network for saving the data collected by the front-end collector; Correspondingly, the method for saving the data to be uploaded comprises: Saving the vehicle data and the picture URL in the local database of the first docking server so as to send the vehicle data and the picture URL to the internal network platform.
6. A data transmission method, characterized by, The second docking server is deployed in the external network, and the second WebService client is arranged on the second docking server, and the method comprises: Receiving the data to be uploaded sent by the external network platform, wherein the data to be uploaded is saved on the external network platform after being collected by the front-end collector; Forwarding the data to be uploaded to the first WebService server of the first docking server through the gateway by the second WebService client, so that the first docking server saves the data to be uploaded; wherein the first docking server is deployed in the internal network; the data to be uploaded is a combination of vehicle data and picture data or a combination of vehicle data and picture RUL; Receiving the saving result fed back by the first docking server, and judging whether the data to be uploaded needs to be resent according to the saving result; The second docking server further comprises a second WebService server; The method further comprises: Receiving the picture acquisition request sent by the first WebService client through the gateway by the second WebService server, wherein the picture acquisition request includes the picture URL of the target picture; Acquiring the corresponding target picture from the external network platform according to the picture URL of the target picture by the second WebService server; Sending the target picture to the gateway by the second WebService client, so that the gateway forwards the target picture to the first WebService server; The first docking server further comprises a local memory disk and a local database; the data to be uploaded comprises vehicle data and picture data; The saving of the to-be-uploaded data includes: storing the picture data in the local memory disk and obtaining a storage path of the picture data; writing the vehicle data and the storage path into the local database; wherein the vehicle data and the storage path are structured text data; querying the storage path of the to-be-uploaded vehicle data and picture data in the database and obtaining corresponding picture data from the local memory disk according to the storage path; uploading the vehicle data and the obtained picture data to an intranet platform, wherein the intranet platform is a platform on which a vehicle control system is deployed; judging whether the data is successfully uploaded; if not, re-uploading the vehicle data and the obtained picture data, and repeating the uploading less than a preset number of times; if yes, marking the storage path of the vehicle data and the picture data as uploaded in the local database.
7. A data transmission apparatus, characterized by comprising: A first docking server deployed in an intranet, the first docking server including a first WebService server, comprising: a first data receiving module configured to receive, through the first WebService server, to-be-uploaded data sent by a second WebService client on a second docking server via a network lock, and save the to-be-uploaded data; wherein the second docking server is deployed in an extranet, and the extranet is separated from the intranet by the network lock; the to-be-uploaded data includes vehicle data and a picture URL; a feedback module configured to feed back a saving result to the second docking server via the network lock, so that the second docking server judges whether the to-be-uploaded data needs to be re-sent according to the saving result; The first docking server further includes a first WebService client, and the apparatus further includes: a first request receiving module configured to receive a picture obtaining request sent by the intranet platform, wherein the picture obtaining request includes a picture URL of a target picture; a request forwarding module configured to send the picture obtaining request to the network lock via the first WebService client, and forward the picture obtaining request to the second WebService server on the second docking server via the network lock, so that the second WebService server obtains a corresponding picture from an extranet platform according to the picture URL of the target picture; a picture receiving and feedback module configured to receive the target picture sent by the second WebService client on the second docking server via the network lock via the first WebService server, and feed back the target picture to the intranet platform; The first docking server further includes a local memory disk and a local database; the to-be-uploaded data includes vehicle data and picture data; The first data receiving module includes: a picture storage unit configured to store the picture data in the local memory disk and obtain a storage path of the picture data; The first vehicle data and path storage unit is configured to write the vehicle data and the cache path into the local database, wherein the vehicle data and the cache path are structured text data. The device further comprises: The data query module is configured to query the cache path of the vehicle data and the picture data to be uploaded in the database after the vehicle data and the cache path are written into the local database, and acquire corresponding picture data from the local memory disk according to the cache path. The data reporting module is configured to upload the vehicle data and the acquired picture data to an intranet platform, wherein the intranet platform is a platform on which a vehicle control system is deployed. The judging module is configured to judge whether the data is successfully uploaded after the vehicle data and the acquired picture data are uploaded to the intranet platform. The first repeated uploading module is configured to re-upload the vehicle data and the acquired picture data if the judgment result is no, and the number of repeated uploading is less than a preset number threshold. The first marking module is configured to mark the cache path of the vehicle data and the picture data as having been uploaded in the local database if the judgment result is yes.
8. A data transmission apparatus, characterized by comprising: The second server is configured to be deployed in an extranet, and a second WebService client is arranged on the second server. The second data receiving module is configured to receive to-be-uploaded data sent by an extranet platform, wherein the to-be-uploaded data is saved in the extranet platform after being collected by a front-end collector, and the to-be-uploaded data is a combination of vehicle data and picture data or a combination of vehicle data and picture URL. The data sending module is configured to forward the to-be-uploaded data to a first WebService server of a first server through the second WebService client and the network barrier, so that the first server saves the to-be-uploaded data, wherein the first server is deployed in an intranet. The feedback result receiving module is configured to receive a saving result fed back by the first server, and judge whether the to-be-uploaded data needs to be re-sent according to the saving result. The second server further comprises a second WebService server. The device further comprises: The second request receiving module is configured to receive a picture acquisition request sent by the first WebService client and forwarded by the network barrier through the second WebService server, wherein the picture acquisition request comprises a picture URL of a target picture. The picture acquisition module is configured to acquire the target picture from the extranet platform according to the picture URL of the target picture through the second WebService server. The picture sending module is configured to send the target picture to the network barrier through the second WebService server, so that the network barrier forwards the target picture to the first WebService server. The first server further comprises a local memory disk and a local database, and the to-be-uploaded data comprises vehicle data and picture data. The data sending module comprises: caching the picture data to the local memory disk and obtaining a cache path of the picture data; writing the vehicle data and the cache path into the local database; wherein the vehicle data and the cache path are structured text data; The device further comprises: querying the cache path of the vehicle data and the picture data to be uploaded in the database and obtaining the corresponding picture data from the local memory disk according to the cache path; uploading the vehicle data and the obtained picture data to an intranet platform, wherein the intranet platform is a platform on which a vehicle control system is deployed; judging whether the data is successfully uploaded; if not, re-uploading the vehicle data and the obtained picture data, and the number of repeated uploading is less than a preset number threshold; if yes, marking the cache path of the vehicle data and the picture data as uploaded in the local database.
9. An electronic device, comprising: comprise: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method as claimed in any one of claims 1-5 or claim 6.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the data transmission method as claimed in any one of claims 1-5 or claim 6.
Citation Information
Patent Citations
Cross-gatekeeper data transmission method and system
CN111200624A
Industrial data one-way import system and method thereof
CN111641650A