Data compensation method, driving equipment or mobile terminal, system and medium
By judging and using the forwarding device to obtain compensation data in the local area network, it solves the problem of vehicle or mobile terminal network requests being difficult to proceed smoothly in a weak network environment, and improves network performance and experience.
Patent Information
- Application Number
- CN202310194011.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
In a weak network environment, network requests from vehicles or mobile terminals are difficult to proceed smoothly, especially in areas where base stations are unevenly distributed, resulting in large changes in network signal strength and affecting the experience.
By determining whether there is a forwarding device in the LAN, and obtaining compensation data based on the evaluation results, the forwarding device is used to forward network requests to improve network performance.
It effectively solves the problem that network requests of networked devices in weak network environments are difficult to proceed smoothly, and improves network performance and experience, especially in LANs with multiple operators and different network environments.
Smart Images

Figure CN118590835A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle area network communication, and specifically provides a data compensation method, a driving device or a mobile terminal, a system, and a medium. Background Art
[0002] At present, most mainstream smart cockpits carry data cards to support network access, but different vehicle suppliers have very different choices in data card operators. Since the geographical distribution of base stations of different operators is very uneven, the network signal strength of some operators varies greatly, and the support experience for remote areas is even worse.
[0003] When in a weak network environment, it is difficult for vehicles or mobile terminals to make network requests smoothly, and for some data application scenarios with larger data transmission or lower latency, a good experience cannot be achieved. Based on this scenario, if only improvements are made to the vehicle, the improvement effect is relatively limited. For example, when designing the vehicle's electronic architecture, some hardware design optimizations on the signal antenna can provide partial improvements, but in some areas where base stations are not distributed, these measures are of little help.
[0004] Accordingly, a new data compensation solution is needed in the art to solve the above problems. Summary of the invention
[0005] In order to overcome the above-mentioned defects, the present invention is proposed to provide a data compensation method, a driving device or a mobile terminal, a system, and a medium to solve or at least partially solve the technical problem that network requests of networked devices in a weak network environment are difficult to proceed smoothly.
[0006] In a first aspect, the present invention provides a data compensation method, which is applied to a networked device to be compensated, wherein the networked device to be compensated is connected to at least one other networked device to form a local area network, and the networked device to be compensated or the other networked device is a driving device. The method includes: in response to the network status of the networked device to be compensated not meeting a preset status, determining whether there is a forwarding device for the other networked devices in the local area network; if so, obtaining compensation data based on the forwarding device.
[0007] In a technical solution of the above-mentioned data compensation method, the determination of whether there is a forwarding device in the other networked devices within the local area network includes: broadcasting a query to the other networked devices within the local area network as to whether they support receiving forwarding requests; if a response broadcast fed back by the other networked devices is received, evaluating the other networked devices that fed back the response broadcast; and determining whether there is a forwarding device in the local area network based on the evaluation result.
[0008] In a technical solution of the above-mentioned data compensation method, before broadcasting to the other networked devices in the local area network to inquire whether they support receiving and forwarding requests, it also includes: judging the security level of the forwarding request; if the security level meets the requirements, jumping to execute "broadcasting to the other networked devices in the local area network to inquire whether they support receiving and forwarding requests".
[0009] In a technical solution of the above-mentioned data compensation method, the evaluation of the other networked devices that feed back the response broadcast includes: sending an evaluation data request to the other networked devices that feed back the response broadcast, the evaluation data including at least network delay data and a security identification code; and evaluating the other networked devices based on the evaluation data received as feedback from the other networked devices.
[0010] In a technical solution of the above-mentioned data compensation method, the judging whether there is a forwarding device in the local area network based on the evaluation result includes: judging whether the network status of the other networked devices is better than that of the networked device to be compensated based on the network delay data; performing a security check on the other networked devices based on the security identification code; if the network status of the other networked devices is better than that of the networked device to be compensated and the security check passes, then determining that the other networked devices are forwarding devices.
[0011] In a technical solution of the above-mentioned data compensation method, the network status of the networked device to be compensated does not conform to the preset status, which at least includes: there is a delay in the network transmission of the networked device to be compensated, and the delay time exceeds a preset threshold; and / or, the packet loss rate of the networked device to be compensated exceeds a preset threshold; and / or, the network signal strength is lower than a preset threshold.
[0012] In a technical solution of the above-mentioned data compensation method, the obtaining of compensation data based on the forwarding device includes: performing a handshake with the forwarding device before the forwarding request; sending the compensation data obtaining request to the forwarding device in response to the forwarding preparation completion notification received from the forwarding device; and receiving the compensation data obtained by the forwarding device.
[0013] In a technical solution of the above-mentioned data compensation method, the method also includes: obtaining a data request from an application module; sending a compensation data acquisition request to the forwarding device based on the data request from the application module; and sending the acquired compensation data to the application module requesting data.
[0014] In a second aspect, the present invention provides a data compensation method, which is applied to a forwarding device, wherein the forwarding device is a networking device, and the forwarding device is connected to the networking device to be compensated to form a local area network, and the networking device to be compensated or the networking device is a driving device. The method includes: receiving a compensation data acquisition request from the networking device to be compensated; acquiring compensation data based on the request and sending the compensation data to the networking device to be compensated.
[0015] In a technical solution of the above-mentioned data compensation method, the forwarding device is configured with a network switch and a proxy request function switch, and the method further includes: receiving a broadcast inquiry sent by the networked device to be compensated regarding whether it supports receiving forwarding requests; judging whether to respond to the broadcast inquiry based at least on the network switch on state, the proxy request function switch on state, the load state, and the network state, and selectively feeding back a response broadcast to the networked device to be compensated based on the judgment result.
[0016] In a technical solution of the above-mentioned data compensation method, the method also includes: receiving an evaluation data request sent by the networked device to be compensated based on the feedback response broadcast; based on the evaluation data request, sending evaluation data to the networked device to be compensated, so that the networked device to be compensated evaluates the networked device, and sending the compensation data acquisition request to the forwarding device based on the evaluation result, wherein the evaluation data at least includes network delay data and a security identification code.
[0017] In a technical solution of the above-mentioned data compensation method, obtaining compensation data based on the request and sending it to the networked device to be compensated includes: performing a handshake with the networked device to be compensated before forwarding the request; after completing the forwarding preparation, sending a forwarding preparation completion notification to the networked device to be compensated.
[0018] In a third aspect, the present invention provides a data compensation method, which is applied to a device interconnection local area network system, the system comprising a networked device to be compensated and at least one other networked device, the networked device to be compensated or the other networked device is a driving device, the method comprising: in response to the network status of the networked device to be compensated not meeting a preset status, determining whether there is a forwarding device for the other networked devices in the local area network; if so, the networked device to be compensated sends a compensation data acquisition request to the forwarding device; the forwarding device obtains compensation data based on the request and sends it to the networked device to be compensated; the networked device to be compensated receives the compensation data forwarded by the forwarding device.
[0019] In a technical solution of the above-mentioned data compensation method, the determination of whether there is a forwarding device in the other networked devices in the local area network includes: the networked device to be compensated broadcasts an inquiry to the other networked devices in the local area network as to whether they support receiving forwarding requests; the other networked devices determine whether to respond to the broadcast inquiry based on at least the network switch on state, the proxy request function switch on state, the load state and the network state, and selectively feed back a response broadcast to the networked device to be compensated based on the determination result; based on the response broadcast fed back by the other networked devices, the other networked devices that feed back the response broadcast are evaluated; and based on the evaluation result, the determination of whether there is a forwarding device in the other networked devices in the local area network is determined.
[0020] In a technical solution of the above-mentioned data compensation method, before the networked device to be compensated broadcasts to the other networked devices in the local area network to inquire whether they support receiving forwarding requests, the method also includes: the networked device to be compensated determines the security level of the forwarding request; if the security level meets the requirements, jumps to execute "the networked device to be compensated broadcasts to the other networked devices in the local area network to inquire whether they support receiving forwarding requests."
[0021] In a technical solution of the above-mentioned data compensation method, the evaluation of the other networked devices that feed back the response broadcast includes: the networked device to be compensated sends an evaluation data request to the other networked devices that feed back the response broadcast; based on the evaluation data request, the other networked devices that feed back the response broadcast send evaluation data to the networked device to be compensated, the evaluation data including at least network delay data and a security identification code; and the other networked devices are evaluated based on the evaluation data.
[0022] In a technical solution of the above-mentioned data compensation method, the judging whether there is a forwarding device in the local area network based on the evaluation result includes: judging whether the network status of the other networked devices is better than that of the networked device to be compensated based on the network delay data; performing a security check on the other networked devices based on the security identification code; if the network status of the other networked devices is better than that of the networked device to be compensated and the security check passes, then determining that the other networked devices are forwarding devices.
[0023] In a technical solution of the above-mentioned data compensation method, the network status of the networked device to be compensated does not conform to the preset status, which at least includes: there is a delay in the network transmission of the networked device to be compensated, and the delay time exceeds a preset threshold; and / or, the packet loss rate of the networked device to be compensated exceeds a preset threshold; and / or, the network signal strength is lower than a preset threshold.
[0024] In a technical solution of the above-mentioned data compensation method, the method also includes: the networked device to be compensated and the forwarding device perform a handshake before forwarding the request; after the forwarding device completes the forwarding preparation, the forwarding device sends a forwarding preparation completion notification to the networked device to be compensated; in response to the forwarding preparation completion notification, the networked device to be compensated sends a compensation data acquisition request to the forwarding device.
[0025] In a technical solution of the above-mentioned data compensation method, the method also includes: the networked device to be compensated obtains a data request from an application module in the networked device to be compensated; based on the data request from the application module, the networked device to be compensated sends a compensation data acquisition request to the forwarding device; based on the compensation data acquisition request, the forwarding device obtains compensation data and sends it to the networked device to be compensated; the networked device to be compensated sends the obtained compensation data to the application module that requested the data.
[0026] In a fourth aspect, the present invention provides a driving device or a mobile terminal, comprising a driving device body or a mobile terminal body, a processor and a memory, wherein the memory is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the data compensation method described in any one of the technical solutions of the above-mentioned data compensation method applied to the networked device to be compensated, or the data compensation method described in any one of the technical solutions of the above-mentioned data compensation method applied to the forwarding device.
[0027] In a fifth aspect, the present invention provides a device interconnection local area network system, characterized in that the system includes a driving device, at least one mobile terminal, a processor and a memory, the memory is suitable for storing multiple program codes, and the program code is suitable for being loaded and run by the processor to execute the data compensation method described in any one of the technical solutions of the data compensation method applied to the device interconnection local area network system.
[0028] In a sixth aspect, the present invention provides a computer-readable storage medium storing a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the data compensation method described in any one of the technical solutions of the above-mentioned data compensation method.
[0029] Solution 1. A data compensation method, applied to a networked device to be compensated, characterized in that the networked device to be compensated is connected to at least one other networked device to form a local area network, and the networked device to be compensated or the other networked device is a driving device, and the method comprises:
[0030] In response to the network state of the to-be-compensated networked device not meeting a preset state, determining whether there is a forwarding device in the other networked devices in the local area network;
[0031] If so, the compensation data is obtained based on the forwarding device.
[0032] Solution 2. The data compensation method according to Solution 1 is characterized in that the step of determining whether there is a forwarding device in the other networked devices in the local area network comprises:
[0033] Broadcasting to the other networked devices in the local area network to inquire whether they support receiving the forwarding request;
[0034] If a response broadcast fed back by the other networked devices is received, evaluating the other networked devices that fed back the response broadcast;
[0035] Based on the evaluation result, it is determined whether there is a forwarding device in the local area network.
[0036] Solution 3. The data compensation method according to Solution 2 is characterized in that before broadcasting to the other networked devices in the local area network to inquire whether they support receiving the forwarding request, it also includes:
[0037] Determining a security level of the request forwarding;
[0038] If the security level meets the requirements, the process jumps to "broadcasting to other networked devices in the local area network to inquire whether they support receiving forwarding requests".
[0039] Solution 4. The data compensation method according to Solution 2 is characterized in that the evaluating the other networked devices that feed back the response broadcast comprises:
[0040] Sending an evaluation data request to the other networked devices that feed back the response broadcast, the evaluation data including at least network delay data and a security identification code;
[0041] The other networked devices are evaluated based on the evaluation data received and fed back by the other networked devices.
[0042] Solution 5. The data compensation method according to Solution 4 is characterized in that judging whether there is a forwarding device in the local area network based on the evaluation result comprises:
[0043] Determining whether the network status of the other networked devices is better than that of the networked device to be compensated based on the network delay data;
[0044] Performing security verification on the other networked devices based on the security identification code;
[0045] If the network status of the other networked device is better than that of the networked device to be compensated and the security check passes, it is determined that the other networked device is a forwarding device.
[0046] Solution 6. The data compensation method according to Solution 1 is characterized in that the network status of the networked device to be compensated does not meet the preset status and at least includes:
[0047] There is a delay in the network transmission of the networked device to be compensated, and the delay time exceeds a preset threshold;
[0048] And / or, the packet loss rate of the networked device to be compensated exceeds a preset threshold;
[0049] And / or, the network signal strength is lower than a preset threshold.
[0050] Solution 7. The data compensation method according to Solution 1 is characterized in that the step of obtaining compensation data based on the forwarding device comprises:
[0051] Performing a handshake with the forwarding device before forwarding the request;
[0052] In response to the received forwarding preparation completion notification fed back by the forwarding device, sending the compensation data acquisition request to the forwarding device;
[0053] The compensation data acquired by the forwarding device is received.
[0054] Solution 8. The data compensation method according to Solution 1, characterized in that the method further comprises:
[0055] Obtaining a data request from an application module; and sending a compensation data acquisition request to the forwarding device based on the data request from the application module;
[0056] And, sending the acquired compensation data to the application module requesting data.
[0057] Solution 9. A data compensation method, applied to a forwarding device, characterized in that the forwarding device is a networking device, and the forwarding device is connected to a networked device to be compensated to form a local area network, and the networked device to be compensated or the networked device is a driving device, and the method comprises:
[0058] Receiving a compensation data acquisition request from the networked device to be compensated;
[0059] Compensation data is obtained based on the request and sent to the networked device to be compensated.
[0060] Solution 10. The data compensation method according to Solution 9 is characterized in that the forwarding device is configured with a network switch and a proxy request function switch, and the method further comprises:
[0061] Receiving a broadcast inquiry sent by the to-be-compensated networked device, asking whether it supports receiving a forwarding request;
[0062] Whether to respond to the broadcast inquiry is determined based at least on the network switch on state, the proxy request function switch on state, the load state, and the network state, and a response broadcast is selectively fed back to the networked device to be compensated based on the determination result.
[0063] Solution 11. The data compensation method according to Solution 10, characterized in that the method further comprises:
[0064] receiving an evaluation data request sent by the to-be-compensated networked device based on the feedback response broadcast;
[0065] Based on the evaluation data request, the evaluation data is sent to the networked device to be compensated so that the networked device to be compensated evaluates the networked device, and based on the evaluation result, the compensation data acquisition request is sent to the forwarding device, wherein the evaluation data includes at least network delay data and a security identification code.
[0066] Solution 12. The data compensation method according to Solution 9 is characterized in that the step of obtaining compensation data based on the request and sending the compensation data to the networked device to be compensated comprises:
[0067] Performing a handshake with the networked device to be compensated before forwarding the request;
[0068] After the forwarding preparation is completed, a forwarding preparation completion notification is sent to the networked device to be compensated.
[0069] Solution 13. A data compensation method, applied to a device interconnection local area network system, characterized in that the system includes a networked device to be compensated and at least one other networked device, the networked device to be compensated or the other networked device is a driving device, and the method includes:
[0070] In response to the network state of the to-be-compensated networked device not meeting a preset state, determining whether there is a forwarding device in the other networked devices in the local area network;
[0071] If so, the to-be-compensated networked device sends a compensation data acquisition request to the forwarding device;
[0072] The forwarding device obtains compensation data based on the request and sends the compensation data to the networked device to be compensated;
[0073] The networked device to be compensated receives the compensation data forwarded by the forwarding device.
[0074] Solution 14. The data compensation method according to Solution 13 is characterized in that the step of determining whether there is a forwarding device in the other networked devices in the local area network comprises:
[0075] The networked device to be compensated broadcasts to the other networked devices in the local area network to inquire whether receiving the forwarding request is supported;
[0076] The other networked devices judge whether to respond to the broadcast inquiry based at least on the network switch on state, the proxy request function switch on state, the load state and the network state, and selectively feed back the response broadcast to the networked device to be compensated based on the judgment result;
[0077] Based on the response broadcast fed back by the other networked devices, evaluating the other networked devices that fed back the response broadcast;
[0078] Based on the evaluation result, it is determined whether there is a forwarding device in the other networked devices in the local area network.
[0079] Solution 15. The data compensation method according to Solution 14 is characterized in that before the networked device to be compensated broadcasts to the other networked devices in the local area network to inquire whether they support receiving the forwarding request, the method further includes:
[0080] The to-be-compensated networked device determines the security level of the forwarding request;
[0081] If the security level meets the requirements, the step of executing "the networked device to be compensated broadcasts to the other networked devices in the local area network to inquire whether they support receiving the forwarding request" is jumped.
[0082] Solution 16. The data compensation method according to Solution 14 is characterized in that the evaluating the other networked devices that feed back the response broadcast comprises:
[0083] The networked device to be compensated sends an evaluation data request to the other networked devices that feed back the response broadcast;
[0084] Based on the evaluation data request, the other networked device that feeds back the response broadcast sends evaluation data to the networked device to be compensated, the evaluation data at least including network delay data and a security identification code;
[0085] The other networked devices are evaluated based on the evaluation data.
[0086] Solution 17. The data compensation method according to Solution 16 is characterized in that judging whether there is a forwarding device in the local area network based on the evaluation result comprises:
[0087] Determining whether the network status of the other networked devices is better than that of the networked device to be compensated based on the network delay data;
[0088] Performing security verification on the other networked devices based on the security identification code;
[0089] If the network status of the other networked device is better than that of the networked device to be compensated and the security check passes, it is determined that the other networked device is a forwarding device.
[0090] Solution 18. The data compensation method according to Solution 13 is characterized in that the network status of the networked device to be compensated does not meet the preset status and at least includes:
[0091] There is a delay in the network transmission of the networked device to be compensated, and the delay time exceeds a preset threshold;
[0092] And / or, the packet loss rate of the networked device to be compensated exceeds a preset threshold;
[0093] And / or, the network signal strength is lower than a preset threshold.
[0094] Solution 19. The data compensation method according to Solution 13, characterized in that the method further comprises:
[0095] The networked device to be compensated performs a handshake with the forwarding device before forwarding the request;
[0096] After the forwarding device completes the forwarding preparation, it sends a forwarding preparation completion notification to the networked device to be compensated;
[0097] In response to the forwarding preparation completion notification, the to-be-compensated networked device sends a compensation data acquisition request to the forwarding device.
[0098] Solution 20. The data compensation method according to Solution 13, characterized in that the method further comprises:
[0099] The networked device to be compensated obtains a data request from an application module in the networked device to be compensated;
[0100] Based on the data request of the application module, the to-be-compensated networked device sends a compensation data acquisition request to the forwarding device;
[0101] Based on the compensation data acquisition request, the forwarding device acquires the compensation data and sends it to the networked device to be compensated;
[0102] The networked device to be compensated sends the acquired compensation data to the application module requesting the data.
[0103] Scheme 21. A driving device or a mobile terminal, characterized in that it comprises a driving device body or a mobile terminal body, a processor and a memory, wherein the memory is suitable for storing multiple program codes, and characterized in that the program code is suitable for being loaded and run by the processor to execute the data compensation method described in any one of Schemes 1 to 8, or the data compensation method described in any one of Schemes 9 to 12.
[0104] Scheme 22. A device interconnection local area network system, characterized in that the system includes a driving device, at least one mobile terminal, a processor and a memory, the memory is suitable for storing multiple program codes, and characterized in that the program code is suitable for being loaded and run by the processor to execute the data compensation method described in any one of Schemes 13 to 20.
[0105] Solution 23. A computer-readable storage medium storing a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the data compensation method described in any one of Solutions 1 to 20.
[0106] The above one or more technical solutions of the present invention have at least one or more of the following Beneficial effects:
[0107] In the technical solution of the present invention, the driving device or mobile terminal in a weak network environment is used as the networked device to be compensated, and other networked devices with a good network environment are obtained in the local area network as forwarding devices, and the network request of the networked device to be compensated is forwarded to the forwarding device, so that the network request is made through the forwarding device, and the compensation data is obtained and transmitted back to the networked device to be compensated. For a local area network with networked devices of multiple operators and different network environments, the problem that the network request of the networked device in a weak network environment is difficult to proceed smoothly is effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0108] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:
[0109] Figure 1 It is a flow chart of the main steps of the data compensation method applied to the networked device to be compensated of the present invention;
[0110] Figure 2 It is a flow chart of the main steps of the data compensation method applied to the forwarding device of the present invention;
[0111] Figure 3 It is a flow chart of the main steps of the data compensation method applied to the device interconnection local area network system of the present invention;
[0112] Figure 4 is a flowchart of detailed steps of a data compensation method corresponding to determining whether a forwarding device exists in an embodiment of the present invention;
[0113] Figure 5It is a main structural block diagram of a driving device or a mobile terminal for executing the data compensation method of the present invention;
[0114] Figure 6 It is a main structural block diagram of a device interconnection local area network system for executing the data compensation method of the present invention. DETAILED DESCRIPTION
[0115] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0116] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
[0117] The present invention provides a data compensation method, which is applied to a networked device to be compensated, wherein the networked device to be compensated is connected to at least one other networked device to form a local area network, and the networked device to be compensated or the other networked device is a driving device.
[0118] In one embodiment, the local area network includes a driving device and a mobile terminal, the mobile terminal includes a mobile phone, a tablet computer, a laptop computer, a wearable device, etc., and the number of the mobile terminal is at least one.
[0119] The networked device to be compensated is connected to other networked devices through a specific connection protocol to form a local area network; illustratively, the driving device and the mobile terminal can be connected to form a local area network using a Wi-Fi protocol or a USB protocol.
[0120] Please see attached Figure 1 , Figure 1It is a flow chart of the main steps of the data compensation method of the present invention applied to the networked device to be compensated.
[0121] like Figure 1 As shown, the data compensation method in the embodiment of the present invention mainly includes the following steps S101 to S102.
[0122] Step S101, in response to the network state of the to-be-compensated networked device not meeting a preset state, determining whether there is a forwarding device in the other networked devices in the local area network.
[0123] In one embodiment, the network status of the networked device to be compensated does not meet the preset status, which at least includes: there is a delay in the network transmission of the networked device to be compensated, and the delay time exceeds a preset threshold; and / or, the packet loss rate of the networked device to be compensated exceeds a preset threshold; and / or, the network signal strength is lower than a preset threshold.
[0124] In this embodiment, the network state not meeting the preset state may also be referred to as a weak network state. The driving device and the mobile terminal are both provided with a weak network detection function module to perform weak network detection.
[0125] The driving devices and mobile terminals in the local area network are in different network states due to differences in their own hardware and software or the use of different network operators. When some networked devices are in a weak network state, some networked devices may be in a non-weak network state.
[0126] In one embodiment, determining whether there is a forwarding device in the other networked devices within the local area network includes: broadcasting a query to the other networked devices within the local area network whether they support receiving forwarding requests; if a response broadcast is received from the other networked devices, evaluating the other networked devices that feedback the response broadcast; and determining whether there is a forwarding device in the local area network based on the evaluation result.
[0127] In one embodiment, before broadcasting to the other networked devices in the local area network to inquire whether they support receiving and forwarding requests, it also includes: judging the security level of the forwarding request; if the security level meets the requirements, jumping to execute "broadcasting to the other networked devices in the local area network to inquire whether they support receiving and forwarding requests".
[0128] Exemplarily, in one embodiment, if the security level meets the requirement, that is, the security requirement of the forwarding request is lower than a preset threshold, if there are multiple forwarding requests, only the forwarding requests with security requirements lower than the preset threshold are broadcasted.
[0129] In this embodiment, the driving device and the mobile terminal are both provided with a request forwarding function module and a receiving function module.
[0130] In one embodiment, the evaluating of the other networked devices that feed back the response broadcast includes: sending an evaluation data request to the other networked devices that feed back the response broadcast, the evaluation data including at least network delay data and a security identification code; and evaluating the other networked devices based on the evaluation data received as feedback from the other networked devices.
[0131] In one implementation, the evaluation of the other networked devices may be performed by the networked device to be compensated, and may be performed by a third-party server.
[0132] In one embodiment, judging whether there is a forwarding device in the local area network based on the evaluation results includes: judging whether the network status of the other networked devices is better than that of the networked device to be compensated based on the network delay data; performing a security check on the other networked devices based on the security identification code; if the network status of the other networked devices is better than that of the networked device to be compensated and the security check passes, determining that the other networked devices are forwarding devices.
[0133] Exemplarily, if there are multiple other networked devices, the one with the smallest network delay and passing the security check is preferably used as the forwarding device; if there is only one other networked device, it can be used as the forwarding device if its network status is better than the networked device to be compensated and passes the security check.
[0134] Step S102: if it exists, obtaining compensation data based on the forwarding device.
[0135] In one embodiment, obtaining compensation data based on the forwarding device includes: performing a handshake with the forwarding device before forwarding the request; sending the compensation data acquisition request to the forwarding device in response to a forwarding preparation completion notification received from the forwarding device; and receiving the compensation data acquired by the forwarding device.
[0136] In one embodiment, the method also includes: obtaining a data request from an application module; sending a compensation data acquisition request to the forwarding device based on the data request from the application module; and sending the acquired compensation data to the application module that requested the data so that the application module can perform subsequent processing.
[0137] The present invention also provides a data compensation method, which is applied to a forwarding device, wherein the forwarding device is a networking device, and the forwarding device is connected to a networking device to be compensated to form a local area network, and the networking device to be compensated or the networking device is a driving device.
[0138] In one embodiment, the local area network includes a driving device and a mobile terminal, the mobile terminal includes a mobile phone, a tablet computer, a laptop computer, a wearable device, etc., and the number of the mobile terminal is at least one.
[0139] The networked device to be compensated is connected to other networked devices through a specific connection protocol to form a local area network; illustratively, the driving device and the mobile terminal can be connected to form a local area network using a Wi-Fi protocol or a USB protocol.
[0140] In this embodiment, the driving device and the mobile terminal are both provided with a weak network detection module, a request forwarding function module and a receiving function module.
[0141] Please see attached Figure 2 , Figure 2 It is a flow chart of the main steps of the data compensation method applied to the forwarding device of the present invention.
[0142] like Figure 2 As shown, the data compensation method in the embodiment of the present invention mainly includes the following steps S201 to S202.
[0143] Step S201: receiving a compensation data acquisition request of the networked device to be compensated.
[0144] Furthermore, before receiving the compensation data acquisition request of the networked device to be compensated, the following steps are also included.
[0145] In one embodiment, the forwarding device is configured with a network switch and a proxy request function switch, and the method further includes: receiving a broadcast inquiry sent by the networked device to be compensated regarding whether it supports receiving forwarding requests; judging whether to respond to the broadcast inquiry based at least on the network switch on state, the proxy request function switch on state, the load state, and the network state, and selectively feeding back a response broadcast to the networked device to be compensated based on the judgment result.
[0146] For example, if the network switch is not turned on, the proxy request function switch is not turned on, the device memory or CPU load is too high, and the device network status does not support it, the other networked devices may not feedback the response broadcast to the networked device to be compensated.
[0147] In one embodiment, the method also includes: receiving an evaluation data request sent by the networked device to be compensated based on the feedback response broadcast; based on the evaluation data request, sending evaluation data to the networked device to be compensated, so that the networked device to be compensated evaluates the networked device, and sending the compensation data acquisition request to the forwarding device based on the evaluation result, wherein the evaluation data includes at least network delay data and a security identification code.
[0148] In one implementation, the evaluation of the other networked devices may be performed by the networked device to be compensated, and may be performed by a third-party server.
[0149] Step S202: obtaining compensation data based on the request and sending the compensation data to the networked device to be compensated.
[0150] In one embodiment, obtaining compensation data based on the request and sending it to the networked device to be compensated includes: performing a handshake with the networked device to be compensated before forwarding the request; after completing the forwarding preparation, sending a forwarding preparation completion notification to the networked device to be compensated.
[0151] The present invention also provides a data compensation method, which is applied to a device interconnection local area network system, wherein the system includes a networked device to be compensated and at least one other networked device, wherein the networked device to be compensated or the other networked device is a driving device.
[0152] In one embodiment, the local area network includes a driving device and a mobile terminal, the mobile terminal includes a mobile phone, a tablet computer, a laptop computer, a wearable device, etc., and the number of the mobile terminal is at least one.
[0153] The networked device to be compensated is connected to other networked devices through a specific connection protocol to form a local area network; illustratively, the driving device and the mobile terminal can be connected to form a local area network using a Wi-Fi protocol or a USB protocol.
[0154] Please see attached Figure 3 , Figure 3 It is a flow chart of the main steps of the data compensation method applied to the device interconnection local area network system of the present invention.
[0155] like Figure 3 As shown, the data compensation method in the embodiment of the present invention mainly includes the following steps S301 to S304.
[0156] Step S301, in response to the network status of the to-be-compensated networked device not meeting a preset status, determining whether there is a forwarding device in the other networked devices in the local area network.
[0157] In one embodiment, the network status of the networked device to be compensated does not meet the preset status, which at least includes: there is a delay in the network transmission of the networked device to be compensated, and the delay time exceeds a preset threshold; and / or, the packet loss rate of the networked device to be compensated exceeds a preset threshold; and / or, the network signal strength is lower than a preset threshold.
[0158] In this embodiment, the network state not meeting the preset state may also be referred to as a weak network state. The driving device and the mobile terminal are both provided with a weak network detection function module to perform weak network detection.
[0159] The driving devices and mobile terminals in the local area network are in different network states due to differences in their own hardware and software or the use of different network operators. When some networked devices are in a weak network state, some networked devices may be in a non-weak network state.
[0160] Please see attached Figure 4 , Figure 4 It is a flowchart of detailed steps of a data compensation method corresponding to determining whether a forwarding device exists in one embodiment of the present invention.
[0161] like Figure 4 As shown, the determining whether there is a forwarding device in the other networked devices in the local area network includes:
[0162] Step S401: the networked device to be compensated broadcasts to other networked devices in the local area network to inquire whether they support receiving forwarding requests.
[0163] In one embodiment, before the networked device to be compensated broadcasts to the other networked devices in the local area network to inquire whether it supports receiving the forwarding request, the method further includes: the networked device to be compensated determines the security level of the forwarding request; if the security level meets the requirements, the method jumps to the execution of "the networked device to be compensated broadcasts to the other networked devices in the local area network to inquire whether it supports receiving the forwarding request". If the security level does not meet the requirements, the method stops broadcasting to inquire whether it supports receiving the forwarding request.
[0164] Exemplarily, in one embodiment, if the security level meets the requirement, that is, the security requirement of the forwarding request is lower than a preset threshold, if there are multiple forwarding requests, only the forwarding requests with security requirements lower than the preset threshold are broadcasted.
[0165] In this embodiment, the driving device and the mobile terminal are both provided with a request forwarding function module and a receiving function module.
[0166] In step S402, the other networked devices determine whether to respond to the broadcast inquiry based at least on the network switch on state, the proxy request function switch on state, the load state, and the network state, and selectively feed back a response broadcast to the networked device to be compensated based on the determination result.
[0167] For example, if the network switch is not turned on, the proxy request function switch is not turned on, the device memory or CPU load is too high, and the device network status does not support it, the other networked devices may not feedback the response broadcast to the networked device to be compensated.
[0168] Step S403: Based on the response broadcast fed back by the other networked devices, the other networked devices that feed back the response broadcast are evaluated.
[0169] In one embodiment, the evaluating of the other networked devices that feed back the response broadcast includes: the networked device to be compensated sends an evaluation data request to the other networked devices that feed back the response broadcast; based on the evaluation data request, the other networked devices that feed back the response broadcast send evaluation data to the networked device to be compensated, the evaluation data including at least network delay data and a security identification code; and the other networked devices are evaluated based on the evaluation data.
[0170] In one implementation, the evaluation of the other networked devices may be performed by the networked device to be compensated, and may be performed by a third-party server.
[0171] Step S404: determine whether there is a forwarding device among the other networked devices in the local area network based on the evaluation result.
[0172] In one embodiment, judging whether there is a forwarding device in the local area network based on the evaluation results includes: judging whether the network status of the other networked devices is better than that of the networked device to be compensated based on the network delay data; performing a security check on the other networked devices based on the security identification code; if the network status of the other networked devices is better than that of the networked device to be compensated and the security check passes, determining that the other networked devices are forwarding devices.
[0173] Exemplarily, if there are multiple other networked devices, the one with the smallest network delay and passing the security check is preferably used as the forwarding device; if there is only one other networked device, it can be used as the forwarding device if its network status is better than the networked device to be compensated and passes the security check.
[0174] Step S302: If so, the networked device to be compensated sends a compensation data acquisition request to the forwarding device.
[0175] In one embodiment, the method further includes: the networked device to be compensated and the forwarding device perform a handshake before forwarding a request; after the forwarding device completes the forwarding preparation, the forwarding device sends a forwarding preparation completion notification to the networked device to be compensated; in response to the forwarding preparation completion notification, the networked device to be compensated sends a compensation data acquisition request to the forwarding device.
[0176] In one embodiment, the networked device to be compensated obtains a data request of an application module in the networked device to be compensated; based on the data request of the application module, the networked device to be compensated sends a compensation data acquisition request to the forwarding device.
[0177] Step S303: the forwarding device obtains compensation data based on the request and sends the compensation data to the networked device to be compensated.
[0178] In one embodiment, based on the compensation data acquisition request, the forwarding device acquires compensation data and sends it to the networked device to be compensated. The forwarding device will sort and manage the requests so as to request compensation data sequentially or simultaneously according to the actual situation.
[0179] Step S304: the networked device to be compensated receives the compensation data forwarded by the forwarding device.
[0180] In one embodiment, the networked device to be compensated sends the acquired compensation data to the application module requesting the data, so that the application module performs subsequent processing.
[0181] Based on the above steps S301 to S304, by taking the driving device or mobile terminal in the weak network environment as the networked device to be compensated, and obtaining other networked devices with good network environment in the local area network as forwarding devices, the network request of the networked device to be compensated is forwarded to the forwarding device, so as to make a network request through the forwarding device, and obtain compensation data and transmit it back to the networked device to be compensated. For a local area network with networked devices of multiple operators and different network environments, the problem that the network request of the networked device in the weak network environment is difficult to proceed smoothly is effectively solved.
[0182] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0183] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0184] Furthermore, the present invention also provides a driving device or a mobile terminal. Figure 5 , Figure 5 It is a main structural block diagram of a driving device or a mobile terminal for executing the data compensation method of the present invention.
[0185] like Figure 5As shown, in an embodiment of a driving device or mobile terminal according to the present invention, it includes a driving device body or a mobile terminal body 504, a processor 501 and a memory 502, the memory 502 is suitable for storing multiple program codes 503, and the program code 503 is suitable for being loaded and run by the processor 502 to execute the data compensation method described in any one of the technical solutions of the data compensation method applied to the networked device to be compensated, or the data compensation method described in any one of the technical solutions of the data compensation method applied to the forwarding device. For ease of explanation, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention.
[0186] The present invention also provides a device interconnection local area network system. Figure 6 , Figure 6 It is a main structural block diagram of a device interconnection local area network system for executing the data compensation method of the present invention.
[0187] like Figure 6 As shown, in an embodiment of a device interconnection local area network system according to the present invention, the system includes a driving device 604, at least one mobile terminal 605, a processor 601 and a memory 602, the memory 602 is suitable for storing multiple program codes 603, and the program code 603 is suitable for being loaded and run by the processor 602 to execute the data compensation method described in any one of the technical solutions of the data compensation method applied to the device interconnection local area network system. For ease of explanation, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention.
[0188] Exemplarily, the processors 501 and 601 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0189] The memory 502, 602 may be an internal storage unit of the electronic device, for example, a hard disk or memory of the electronic device; the memory may also be an external storage device of the electronic device, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device. Further, the memory may also include both an internal storage unit of the electronic device and an external storage device. The memory is used to store computer programs and other programs and data required by the electronic device. The memory may also be used to temporarily store data that has been output or is to be output.
[0190] In some possible implementations, the electronic device may include multiple processors and memories. The program code for executing the data compensation method of the above method embodiment may be divided into multiple subprograms, each of which may be loaded and run by a processor to execute different steps of the data compensation method of the above method embodiment. Specifically, each subprogram may be stored in different memories, and each processor may be configured to execute programs in one or more memories to jointly implement the data compensation method of the above method embodiment, that is, each processor executes different steps of the data compensation method of the above method embodiment to jointly implement the data compensation method of the above method embodiment.
[0191] The above-mentioned multiple processors may be processors deployed on the same device. For example, the above-mentioned electronic device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors may also be processors deployed on different devices. For example, the above-mentioned electronic device may be a server cluster, and the above-mentioned multiple processors may be processors on different servers in the server cluster.
[0192] The electronic device may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device, such as the driving device, the mobile terminal, and the device interconnection local area network system in the above embodiment. The electronic device may include but is not limited to a processor and a memory. Those skilled in the art will understand that Figure 5 , Figure 6 These are merely examples of electronic devices and do not constitute a limitation of the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0193] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the data compensation method of the above method embodiment, and the program can be loaded and run by the processor to implement the above data compensation method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
[0194] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0195] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0196] In the embodiments provided by the present invention, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the electronic device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
[0197] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0198] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0199] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. The computer program may include computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0200] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A data compensation method, applied to a networked device to be compensated, characterized in that: The networked device to be compensated is connected to at least one other networked device to form a local area network, the networked device to be compensated or the other networked device is a driving device, and the method includes: In response to the network state of the to-be-compensated networked device not meeting a preset state, determining whether there is a forwarding device in the other networked devices in the local area network; If so, the compensation data is obtained based on the forwarding device.
2. The data compensation method according to claim 1, characterized in that: The determining whether there is a forwarding device in the other networked devices in the local area network includes: Broadcasting to the other networked devices in the local area network to inquire whether they support receiving the forwarding request; If a response broadcast fed back by the other networked devices is received, evaluating the other networked devices that fed back the response broadcast; Based on the evaluation result, it is determined whether there is a forwarding device in the local area network.
3. The data compensation method according to claim 2, characterized in that: Before broadcasting to the other networked devices in the local area network to inquire whether they support receiving the forwarding request, the method further includes: Determining a security level of the request forwarding; If the security level meets the requirements, the process jumps to "broadcast to other networked devices in the local area network to inquire whether they support receiving forwarding requests".
4. The data compensation method according to claim 2, characterized in that: The evaluating the other networked devices that feed back the response broadcast comprises: Sending an evaluation data request to the other networked devices that feed back the response broadcast, the evaluation data including at least network delay data and a security identification code; The other networked devices are evaluated based on the evaluation data received and fed back by the other networked devices.
5. The data compensation method according to claim 4, characterized in that: The determining whether there is a forwarding device in the local area network based on the evaluation result includes: Determining whether the network status of the other networked devices is better than that of the networked device to be compensated based on the network delay data; Performing security verification on the other networked devices based on the security identification code; If the network status of the other networked device is better than that of the networked device to be compensated and the security check passes, it is determined that the other networked device is a forwarding device.
6. The data compensation method according to claim 1, characterized in that: The network status of the networked device to be compensated does not meet the preset status and at least includes: There is a delay in the network transmission of the networked device to be compensated, and the delay time exceeds a preset threshold; And / or, the packet loss rate of the networked device to be compensated exceeds a preset threshold; And / or, the network signal strength is lower than a preset threshold.
7. The data compensation method according to claim 1, characterized in that: The acquiring compensation data based on the forwarding device comprises: Performing a handshake with the forwarding device before forwarding the request; In response to the received forwarding preparation completion notification fed back by the forwarding device, sending the compensation data acquisition request to the forwarding device; The compensation data acquired by the forwarding device is received.
8. The data compensation method according to claim 1, characterized in that: The method further comprises: Obtaining a data request from an application module; and sending a compensation data acquisition request to the forwarding device based on the data request from the application module; And, sending the acquired compensation data to the application module requesting data.
9. A data compensation method, applied to a forwarding device, characterized in that: The forwarding device is a networking device, and the forwarding device is connected to the networking device to be compensated to form a local area network, the networking device to be compensated or the networking device is a driving device, and the method includes: Receiving a compensation data acquisition request from the networked device to be compensated; Compensation data is obtained based on the request and sent to the networked device to be compensated.
10. The data compensation method according to claim 9, characterized in that: The forwarding device is configured with a network switch and a proxy request function switch, and the method further includes: Receiving a broadcast inquiry sent by the to-be-compensated networked device, asking whether it supports receiving a forwarding request; Whether to respond to the broadcast inquiry is determined based at least on the network switch on state, the proxy request function switch on state, the load state, and the network state, and a response broadcast is selectively fed back to the networked device to be compensated based on the determination result.
Citation Information
Cited By
Data compensation method and device, storage medium and electronic device
CN119342180A
