CN111405685B - Network resource processing method, device, radio frequency communication system and storage medium - Google Patents

Network resource processing method, device, radio frequency communication system and storage medium Download PDF

Info

Publication number
CN111405685B
CN111405685B CN202010104792.2A CN202010104792A CN111405685B CN 111405685 B CN111405685 B CN 111405685B CN 202010104792 A CN202010104792 A CN 202010104792A CN 111405685 B CN111405685 B CN 111405685B
Authority
CN
China
Prior art keywords
network resource
network
radio frequency
resource request
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010104792.2A
Other languages
Chinese (zh)
Other versions
CN111405685A (en
Inventor
邱悦
吕超
姚瑶
孙泉
张旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010104792.2A priority Critical patent/CN111405685B/en
Publication of CN111405685A publication Critical patent/CN111405685A/en
Application granted granted Critical
Publication of CN111405685B publication Critical patent/CN111405685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure

Abstract

The application discloses a network resource processing method, a device, a radio frequency communication system and a storage medium, wherein the method is applied to radio frequency equipment, the radio frequency equipment and first network transfer equipment establish a first radio frequency connection, and the method comprises the following steps: generating a network resource request task corresponding to a network resource under the condition that a network resource request based on a first radio frequency connection fails; the network resource request task is sent to second network transfer equipment through second radio frequency connection, so that the second network transfer equipment obtains network resources corresponding to the network resource request tasks; and receiving the network resource sent by the second network transfer equipment through the second radio frequency connection. The method has the advantages that under the condition that the first radio frequency connection cannot be normally used, such as WiFi network connection, other methods are sought for requesting network resources, so that the radio frequency equipment can be normally used under the conditions of weak network or no network and the like, the working efficiency of the radio frequency equipment is obviously improved, and the working time is greatly saved.

Description

Network resource processing method, device, radio frequency communication system and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a network resource processing method, apparatus, radio frequency communication system, and storage medium.
Background
At present, electronic commerce is developed rapidly, people shop on the internet becomes a part of daily life, a large number of commodities are stored in a warehouse, during sorting, workers in the warehouse generally use Radio Frequency (RF) equipment to complete tasks such as warehousing, picking, quality control and audit and the like, and the RF equipment is used as a tool for operation in the warehouse, so that the Radio Frequency equipment has the advantages of being in line with ergonomics, convenient to carry, capable of identifying goods codes and bar codes rapidly and the like.
Many functions of the rf device need to rely on the internet for implementation, such as uploading identified information to a server or the like. However, the radio frequency device does not generally have a function of accessing the internet through a cellular network such as 4G, and mainly relies on technologies such as wireless internet access (WiFi) and is indirectly connected to the internet through a network relay device. Due to reasons such as warehouse areas, warehouse sizes, shelf shielding and the like, radio frequency connection between the radio frequency equipment and the network transfer equipment is unstable, and the radio frequency equipment has network abnormality or no network in the use process if the wireless internet access environment is poor, the network is unavailable or partial corner network signals cannot be covered, so that the operation efficiency in the warehouse is seriously influenced.
Disclosure of Invention
In view of the above, the present application is proposed to provide a network resource handling method, apparatus, radio frequency communication system and storage medium that overcome the above problems or at least partially solve the above problems.
According to an aspect of the present application, a method for processing network resources is provided, where the method is applied to a radio frequency device, and the radio frequency device establishes a first radio frequency connection with a first network transit device, and the method includes:
generating a network resource request task corresponding to a network resource under the condition that a network resource request based on a first radio frequency connection fails;
the network resource request task is sent to second network transfer equipment through second radio frequency connection, so that the second network transfer equipment obtains network resources corresponding to the network resource request tasks;
and receiving the network resource sent by the second network transfer equipment through the second radio frequency connection.
Optionally, in the method, generating a network resource request task corresponding to a network resource includes:
generating a task identifier corresponding to the network resource;
and generating a network resource request task according to the task identifier and the request data of the network resource.
Optionally, in the method, receiving the network resource sent by the second network transit device through the second radio frequency connection includes:
and receiving the network resource which has a corresponding relation with the task identifier, wherein the corresponding relation is generated by the second network transfer equipment according to the network resource requested by the request data.
Optionally, in the above method, the network resource is a page resource of a specified page, and the method further includes:
and completing the loading of the specified page by using the received network resources.
Optionally, the method further includes:
recording the corresponding relation between the network resource request task and the specified page in a local cache; deleting the corresponding relation related to the specified page recorded in the local cache after the specified page is closed;
the loading of the specified page by using the received network resource comprises the following steps: and if the corresponding relation related to the specified page exists in the local cache, the loading of the specified page is completed by utilizing the received network resource, otherwise, the received network resource is discarded.
Optionally, in the foregoing method, sending the network resource request task to the second network transit device through the second radio frequency connection includes:
the network resource request task is put into a network resource request task queue, and the network resource request task in the network resource request task queue is sent to second network transfer equipment through a second radio frequency connection;
receiving the network resource sent by the second network transfer device through the second radio frequency connection includes: and putting the network resources sent by the second network transfer equipment through the second radio frequency connection into a network resource queue.
Optionally, in the method, the first radio frequency connection is a WiFi connection, and the second radio frequency connection is a bluetooth connection.
According to another aspect of the present application, there is provided a network resource processing apparatus, where the apparatus is applied to a radio frequency device, and the radio frequency device establishes a first radio frequency connection with a first network transit device, and the apparatus includes:
the task generating unit is used for generating a network resource request task corresponding to the network resource under the condition that the network resource request based on the first radio frequency connection fails;
the transmission unit is used for transmitting the network resource request task to second network transfer equipment through second radio frequency connection so that the second network transfer equipment can acquire network resources corresponding to the network resource request tasks; and receiving the network resource sent by the second network transfer device through the second radio frequency connection.
Optionally, in the apparatus, the task generating unit is configured to generate a task identifier corresponding to the network resource; and generating a network resource request task according to the task identifier and the request data of the network resource.
Optionally, in the apparatus, the transmission unit is configured to receive a network resource having a correspondence with the task identifier, where the correspondence is generated by the second network transfer device according to the network resource requested by the request data.
Optionally, the apparatus further comprises: and the page loading unit is further used for completing loading of the specified page by using the received network resource, wherein the network resource is the page resource of the specified page.
Optionally, in the apparatus, the task generating unit is further configured to record, in the local cache, a correspondence between the network resource request task and the specified page; deleting the corresponding relation related to the specified page recorded in the local cache after the specified page is closed;
and the page loading unit is also used for completing the loading of the specified page by using the received network resource if the corresponding relation related to the specified page exists in the local cache, and otherwise, discarding the received network resource.
Optionally, in the apparatus, the transmission unit is configured to put the network resource request task into a network resource request task queue, and send the network resource request task in the network resource request task queue to the second network transit device through the second radio frequency connection; and putting the network resources sent by the second network transfer equipment through the second radio frequency connection into a network resource queue.
Optionally, in the apparatus, the first radio frequency connection is a WiFi connection, and the second radio frequency connection is a bluetooth connection.
According to another aspect of the present application, there is provided a radio frequency communication system, including a first network relay device, a radio frequency device, and a second network relay device; the radio frequency equipment is connected with the first network transfer equipment through a first radio frequency, and the radio frequency equipment is connected with the second network transfer equipment through a second radio frequency;
wherein the radio frequency device comprises: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform any of the methods described above;
the second network transfer device is used for receiving the network resource request task sent by the radio frequency device, requesting the corresponding network resource according to the network resource request task, and sending the requested network resource to the radio frequency device.
According to yet another aspect of the application, a computer readable storage medium is provided, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement any of the methods described above.
As can be seen from the above, the technical solution of the present application is applied to a radio frequency device, where the radio frequency device establishes a first radio frequency connection with a first network transfer device, and generates a network resource request task corresponding to a network resource in a case where a network resource request based on the first radio frequency connection fails; the network resource request task is sent to second network transfer equipment through second radio frequency connection, so that the second network transfer equipment obtains network resources corresponding to the network resource request tasks; and receiving the network resource sent by the second network transfer equipment through the second radio frequency connection. The method has the advantages that under the condition that the first radio frequency connection cannot be normally used, such as WiFi network connection, other methods are sought for requesting network resources, so that the radio frequency equipment can be normally used under the condition of weak network or no network, the working efficiency of the radio frequency equipment is obviously improved, and the working time is greatly saved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of a network resource handling method according to an embodiment of the application;
FIG. 2 shows a flow diagram of a network resource handling method according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a network resource processing apparatus according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of a radio frequency communication system according to an embodiment of the present application;
FIG. 5 shows a schematic structural diagram of a radio frequency device according to an embodiment of the present application;
FIG. 6 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating a network resource processing method according to an embodiment of the present application, where the method is applied to a radio frequency device, and the radio frequency device establishes a first radio frequency connection with a first network transit device. For example, in a warehouse, the radio frequency device may be a code scanning gun, and in a general case, the radio frequency device makes a WiFi connection with a router, that is, the first radio frequency connection may be a WiFi connection, and the first network transit device may be a router. As shown in fig. 1, the network resource processing method includes:
step S110, in case of a failure to request the network resource based on the first radio frequency connection, generating a network resource request task corresponding to the network resource.
In general, a radio frequency device is connected to the internet through a network relay device such as a router, and acquires network resources such as a web page and task information. However, in the using process of some radio frequency devices, due to the fact that the radio frequency devices are far away from the router or other objects are covered, the situation that the network is overtime or unavailable often occurs, user experience and use are seriously affected, and in this situation, the technical scheme for guaranteeing normal use of the user under the condition that the network signal is weak or the coverage is not enough is provided by the embodiment.
Because there are many reasons for the failure of requesting the network resource, for example, the server may be busy, a step of determining the reason for the network resource failure may be further included before step S110, and when the reason for the first radio frequency connection causes the failure of requesting the network resource, the technical scheme of the present application is executed again.
Under the condition that the network resource request based on the first radio frequency connection fails, the radio frequency equipment used by the user can generate a network resource request task corresponding to the network resource, for example, in-warehouse operators use a wireless network with the name of wifi-1 in a warehouse to complete tasks such as warehousing, picking, quality control and auditing, and due to reasons such as warehouse areas, warehouse sizes, shelf shielding and the like, under some conditions, the wireless internet environment is poor, the network is unavailable or part of corner network signals cannot be covered, so that the code scanning gun is disconnected or overtime on the network, at this time, the code scanning gun used by the in-warehouse operators can generate a network resource request task, and the request task can be to refresh the current page of the code scanning gun.
Step S120, the network resource request task is sent to the second network transfer device through the second radio frequency connection, so that the second network transfer device obtains the network resource corresponding to each network resource request task.
In order to seek available network resources, the radio frequency device may switch to other radio frequency connections to seek network resources to bypass the first radio frequency connection that is timed out, weak, or unavailable.
For example, the code scanning gun used by the operator in the warehouse may send a network resource request task to the second network transfer device through the second radio frequency connection, where the network resource request task may be to refresh a current page of the code scanning gun, and the second radio frequency connection may be, for example, another radio frequency connection other than the wireless network named wifi-1, such as a radio frequency connection implemented based on a bluetooth technology; after receiving the network resource request task of the code scanning gun, the second network transfer device acquires the network resources corresponding to each network resource request task, and the process can be implemented in any one of the prior art, for example, by using a cellular network technology and based on 4G communication and other modes, because the use condition of other wireless networks is not excluded under the condition that a wireless network named wifi-1 is not ideal.
Step S130, receiving the network resource sent by the second network transit device through the second radio frequency connection.
And when the second network transfer equipment sends the acquired network resources through the second radio frequency connection, the radio frequency equipment receives the network resources so as to meet the working requirement of the radio frequency equipment.
For example, after the second network transfer device requests to refresh the network resource of the current page, the second network transfer device transmits the network resource to the radio frequency device through the bluetooth communication technology, and the radio frequency device of the operator in the warehouse receives the network resource and refreshes the current page, so that the sorting work in the warehouse can be smoothly performed.
As shown in fig. 1, in the case that the first radio frequency connection, such as a WiFi network connection, cannot be used normally, other methods are sought to request network resources, which ensures that the radio frequency device can be used normally in a weak network or in a no network, significantly improves the working efficiency of the radio frequency device, and greatly saves the working time.
In an embodiment of the present application, in the method, generating a network resource request task corresponding to a network resource includes: generating a task identifier corresponding to the network resource; and generating a network resource request task according to the task identifier and the request data of the network resource.
When the radio frequency device generates the network resource request task, the network resource request task may further include a task identifier, in addition to the request data of the network resource, where the task identifier is preferably unique, and it enables the second network transfer device to quickly match the request task according to the content of the network resource requested back.
By identifying the network resource request tasks, the embodiment enables the network resources to be quickly matched with each network resource request task, and greatly saves the calculation amount and the calculation time.
In an embodiment of the application, in the method, receiving the network resource sent by the second network transit device through the second radio frequency connection includes: and receiving the network resource which has a corresponding relation with the task identifier, wherein the corresponding relation is generated by the second network transfer equipment according to the network resource requested by the request data.
For example, the task of the network resource request task is identified as a1, and the requested network resource is a. The second network transit device requests the network resource a through a 4G network or the like after receiving the network resource request task a1, and after obtaining the network resource a, marks the network resource a with an identifier of a1, and returns the identifier to the radio frequency device. This enables the rf device to know which network resource request task the rf device has received, and how to perform subsequent processing. It can be seen that in the whole process, the task identifiers are multiplexed, so that the network resources which are received by the radio frequency equipment and contain the identifiers with the corresponding relations can be rapidly matched with the requested task.
In an embodiment of the present application, the method further includes: recording the corresponding relation between the network resource request task and the specified page in a local cache; deleting the corresponding relation related to the specified page recorded in the local cache after the specified page is closed; the loading of the specified page by using the received network resource comprises the following steps: and if the corresponding relation related to the specified page exists in the local cache, the loading of the specified page is completed by utilizing the received network resource, otherwise, the received network resource is discarded.
In some cases, although the radio frequency device has generated or sent the network resource request task, the worker may abandon the operation because the operation does not need to be executed, so that the returned network resource is not processed, and is congested in the network resource queue to occupy the cache space, and based on the reason, the embodiment records the corresponding relationship between the network resource request task and the designated page in the local cache; deleting the corresponding relation related to the specified page recorded in the local cache after the specified page is closed; after the radio frequency device acquires the requested network resource, whether the corresponding relation related to the specified page exists can be searched in a local cache, if yes, the loading of the specified page is completed by using the received network resource, and if not, the received network resource is discarded.
Specifically, the corresponding relationship between the network resource request task and the specified page may be recorded in the local cache by a key-value pair (key-value) of the task identifier-page, where key is the task identifier and value is the page. After the specified page is closed, such as an application exits, or the user leaves the specified page, all key-value pairs that have the specified page as value may be deleted.
Because a page resource required by a page is many, when a specified page is requested to be refreshed, a corresponding network request task can be generated for each page resource. Therefore, after the returned page resources are received, the corresponding part of the specified page can be loaded, and the loading is not required to be carried out after all the page resources of the specified page are returned. Of course, in other embodiments, a network resource request task may also be generated for a specific page, and the requested network resource is all page resources of the page.
In an embodiment of the present application, in the method, sending the network resource request task to the second network transit device through the second radio frequency connection includes: the network resource request task is put into a network resource request task queue, and the network resource request task in the network resource request task queue is sent to second network transfer equipment through a second radio frequency connection; receiving the network resource sent by the second network transfer device through the second radio frequency connection includes: and putting the network resources sent by the second network transfer equipment through the second radio frequency connection into a network resource queue.
In an actual operation process, when the radio frequency device fails to connect to the first radio frequency, more than one network resource may be required, which may generate a plurality of network resource request tasks, which may be processed by a queuing technique. For example, the generated network resource request tasks are written into a network resource request task queue according to the sequence of the generation time, and if the network resource request task queue sequentially includes task a, task b, task c, and task d, then the network resource request tasks are sequentially taken out from the network resource request task queue and sent to the second network transfer device.
Similarly, after receiving the network resource, the network resource may be placed in a network resource queue and then taken out of the network resource queue by an application or the like that utilizes the network resource. It should be noted that, the possibility of losing some tasks is not excluded, which does not affect the implementation of the present application, in this case, a time threshold may be set, and if the requested network resource is not obtained in a predetermined time, the corresponding network resource request task is regenerated.
In addition, by using the queue mode, the generation of the network resource request task, the data transmission and the utilization of the network resource are separated, and the parallel execution can be realized through different processes or threads, so that the processing efficiency is improved.
In some embodiments of the present application, in the above method, the first rf connection may be, but is not limited to, a WiFi connection, the second rf connection may be, but is not limited to, a bluetooth connection, the rf device may be, but is not limited to, a code scanning gun, and the second network transit device may be, but is not limited to, a mobile phone, a tablet computer, and the like.
The foregoing embodiments may be implemented separately or in combination, and specifically, fig. 2 shows a flowchart of a network resource processing method according to another embodiment of the present application, and as shown in fig. 2, a radio frequency device, such as a code scanning gun, requests a network resource through a first radio frequency connection, and in case of a request failure, detects whether the connection failure is caused by network timeout or weak signal, and if so, the radio frequency device generates a network resource request task with a unique ID and submits the network resource request task to a network resource request task queue, and at the same time, caches the task ID and a corresponding page in the local, and then the radio frequency device transmits the network resource request task in the network resource request task queue to a second network transit device through bluetooth technology, where the second network transit device may be, but is not limited to, a mobile phone or a tablet computer, and the second network transit device receives task a (task identifier is denoted as a-ID here), the second network transfer equipment requests network resources through mobile traffic according to the content of the task a to obtain returned network resources a corresponding to the task a, binds the network resources a with the unique identifier a-ID same as the task a, and then sends the network resources a with the identifier a-ID to the radio frequency equipment through the Bluetooth technology. After the radio frequency device takes out the network resource a from the network resource queue, whether a task with the identification a-ID and a corresponding page exist in a local cache or not is detected, and if the task with the identification a-ID and the corresponding page exist in the local cache, an action is executed according to the network resource, such as refreshing a current page UI. Otherwise, the network resource a is discarded.
In summary, according to the technology of the application, under the condition that the first radio frequency connection cannot be normally used, such as WiFi network connection, other methods are sought for requesting network resources, so that the radio frequency equipment can be normally used under the condition of weak network or no network, the working efficiency of the radio frequency equipment is obviously improved, and the working time is greatly saved.
Fig. 3 is a schematic structural diagram of a network resource processing apparatus according to an embodiment of the present application, where the apparatus is applied to a radio frequency device, and the radio frequency device establishes a first radio frequency connection with a first network transit device. For example, in a warehouse, the radio frequency device may be a code scanning gun, and in a general case, the radio frequency device makes a WiFi connection with a router, that is, the first radio frequency connection may be a WiFi connection, and the first network transit device may be a router. The network resource processing apparatus 300 includes:
a task generating unit 310, configured to generate a network resource request task corresponding to a network resource in a case that a network resource request based on a first radio frequency connection fails.
In general, a radio frequency device is connected to the internet through a network relay device such as a router, and acquires network resources such as a web page and task information. However, in the using process of some radio frequency devices, due to the fact that the radio frequency devices are far away from the router or other objects are covered, the situation that the network is overtime or unavailable often occurs, user experience and use are seriously affected, and in this situation, the technical scheme for guaranteeing normal use of the user under the condition that the network signal is weak or the coverage is not enough is provided by the embodiment.
Because there are many reasons for the failure of requesting the network resource, for example, the server may be busy, the reason for the failure of the network resource may be judged first, and when the failure of requesting the network resource is caused by the reason for the first radio frequency connection, the technical scheme of the present application is executed.
Under the condition that the network resource request based on the first radio frequency connection fails, the radio frequency equipment used by the user can generate a network resource request task corresponding to the network resource, for example, in-warehouse operators use a wireless network with the name of wifi-1 in a warehouse to complete tasks such as warehousing, picking, quality control and auditing, and due to reasons such as warehouse areas, warehouse sizes, shelf shielding and the like, under some conditions, the wireless internet environment is poor, the network is unavailable or part of corner network signals cannot be covered, so that the code scanning gun is disconnected or overtime on the network, at this time, the code scanning gun used by the in-warehouse operators can generate a network resource request task, and the request task can be to refresh the current page of the code scanning gun.
A transmission unit 320, configured to send the network resource request task to a second network transfer device through a second radio frequency connection, so that the second network transfer device obtains a network resource corresponding to each network resource request task; and receiving the network resource sent by the second network transfer device through the second radio frequency connection.
In order to seek available network resources, the radio frequency device may switch to other radio frequency connections to seek network resources to bypass the first radio frequency connection that is timed out, weak, or unavailable.
For example, the code scanning gun used by the operator in the warehouse may send a network resource request task to the second network transfer device through the second radio frequency connection, where the network resource request task may be to refresh a current page of the code scanning gun, and the second radio frequency connection may be, for example, other radio frequency connections besides the wireless network named wifi-1, such as a connection that can be implemented based on a bluetooth technology; after receiving the network resource request task of the code scanning gun, the second network transfer device acquires the network resources corresponding to each network resource request task, and the process can be implemented in any one of the prior art, for example, the process can be implemented by using a cellular network technology and based on 4G communication and other modes, because the use condition of other wireless networks is not excluded under the condition that a wireless network named wifi-1 is not ideal.
And when the second network transfer equipment sends the acquired network resources through the second radio frequency connection, the radio frequency equipment receives the network resources so as to meet the working requirement of the radio frequency equipment.
For example, after the second network transfer device requests to refresh the network resource of the current page, the second network transfer device transmits the network resource to the radio frequency device through the bluetooth communication technology, and the radio frequency device of the operator in the warehouse receives the network resource and refreshes the current page, so that the sorting work in the warehouse can be smoothly performed.
Referring to the apparatus shown in fig. 3, when the first radio frequency connection, such as the WiFi network connection, cannot be used normally, other methods are sought to request network resources, which ensures that the radio frequency device can be used normally in a weak network or in a no network, significantly improves the working efficiency of the radio frequency device, and greatly saves the working time.
In an embodiment of the present application, in the above apparatus, the task generating unit 310 is configured to generate a task identifier corresponding to a network resource; and generating a network resource request task according to the task identifier and the request data of the network resource.
In an embodiment of the present application, in the above apparatus, the transmitting unit 320 is configured to receive a network resource having a correspondence relationship with the task identifier, where the correspondence relationship is generated by the second network transit device according to the network resource requested by the request data.
In an embodiment of the present application, the apparatus further includes: the page loading unit 320 is further configured to complete loading of the specified page by using the received network resource, where the network resource is a page resource of the specified page.
In an embodiment of the present application, in the apparatus, the task generating unit 310 is further configured to record a corresponding relationship between the network resource request task and the specified page in a local cache; deleting the corresponding relation related to the specified page recorded in the local cache after the specified page is closed; the page loading unit is further configured to complete loading of the specified page by using the received network resource, where the completing includes: and if the corresponding relation related to the specified page exists in the local cache, the loading of the specified page is completed by utilizing the received network resource, otherwise, the received network resource is discarded.
In an embodiment of the present application, in the above apparatus, the transmission unit 320 is configured to put the network resource request task into a network resource request task queue, and send the network resource request task in the network resource request task queue to the second network transit device through the second radio frequency connection; and putting the network resources sent by the second network transfer equipment through the second radio frequency connection into a network resource queue.
In one embodiment of the present application, in the above apparatus, the first radio frequency connection is a WiFi connection, and the second radio frequency connection is a bluetooth connection.
It should be noted that, for the specific implementation of each apparatus embodiment, reference may be made to the specific implementation of the corresponding method embodiment, which is not described herein again.
The technical scheme of the application is applied to radio frequency equipment, the radio frequency equipment and first network transfer equipment establish first radio frequency connection, and a network resource request task corresponding to a network resource is generated under the condition that a network resource request based on the first radio frequency connection fails; the network resource request task is sent to second network transfer equipment through second radio frequency connection, so that the second network transfer equipment obtains network resources corresponding to the network resource request tasks; and receiving the network resource sent by the second network transfer equipment through the second radio frequency connection. The method has the advantages that under the condition that the first radio frequency connection cannot be normally used, such as WiFi network connection, other methods are sought for requesting network resources, so that the radio frequency equipment can be normally used under the condition of weak network or no network, the working efficiency of the radio frequency equipment is obviously improved, and the working time is greatly saved.
Fig. 4 shows a schematic structural diagram of a radio frequency communication system according to an embodiment of the present application; the radio frequency communication system 400 includes a first network transit device 410, a radio frequency device 420, and a second network transit device 430; the radio frequency device 420 is connected to the first network transit device 410 through a first radio frequency, and the radio frequency device 420 is connected to the second network transit device 430 through a second radio frequency;
wherein the radio frequency device 420 comprises: a processor 510; and a memory 520 arranged to store computer executable instructions that when executed cause the processor to perform any of the methods described above;
the second network transit device 430 is configured to receive a network resource request task sent by the radio frequency device, and send a network resource requested by the radio frequency device to the radio frequency device according to a network resource corresponding to the network resource request task request.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. In addition, this application is not directed to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the generation apparatus of the distribution line according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 5 shows a schematic structural diagram of a radio frequency device in a communication system according to an embodiment of the present application. The radio frequency device 420 includes:
a processor 510 and a memory 520 arranged to store computer executable instructions (computer readable program code). The memory 520 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 520 has a storage space 530 storing computer readable program code 531 for performing any of the method steps in the above described method. For example, the storage space 530 for storing the computer readable program code may include respective computer readable program codes 531 for respectively implementing various steps in the above method. The computer readable program code 531 may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 6. FIG. 6 shows a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer readable storage medium 600 stores computer readable program code 531 for performing the steps of the method according to the application, which is readable by the processor 510 of the radio frequency device 420 and which, when the computer readable program code 531 is executed by the radio frequency device 420, causes the radio frequency device 420 to perform the steps of the method described above, in particular the computer readable program code 531 stored by the computer readable storage medium may perform the method shown in any of the embodiments described above. The computer readable program code 531 may be compressed in a suitable form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. A network resource processing method is applied to a radio frequency device, wherein the radio frequency device establishes a first radio frequency connection with a first network transfer device, and the method comprises the following steps:
generating a network resource request task corresponding to a network resource in case of a failure to request the network resource based on the first radio frequency connection, the failure to request the network resource being caused by the first radio frequency connection, the network resource including a plurality of network resources in a specified page, the generating the network resource request task corresponding to the network resource including:
respectively generating corresponding network resource request tasks for each network resource in the specified page, or generating a network resource request task for the specified page;
the network resource request task is sent to second network transfer equipment through second radio frequency connection, so that the second network transfer equipment obtains network resources corresponding to the network resource request tasks;
and receiving the network resource sent by the second network transfer equipment through the second radio frequency connection.
2. The method of claim 1, wherein the generating a network resource request task corresponding to a network resource comprises:
generating a task identifier corresponding to the network resource;
and generating a network resource request task according to the task identifier and the request data of the network resource.
3. The method of claim 2, wherein the receiving the network resource sent by the second network transit device over the second radio frequency connection comprises:
and receiving the network resource having a corresponding relationship with the task identifier, wherein the corresponding relationship is generated by the second network transfer device according to the network resource requested by the request data.
4. The method of claim 1, wherein the network resource is a page resource that specifies a page, the method further comprising:
and completing the loading of the specified page by using the received network resources.
5. The method of claim 4, wherein the method further comprises:
recording the corresponding relation between the network resource request task and the specified page in a local cache; deleting the corresponding relation related to the specified page recorded in the local cache after the specified page is closed;
the completing the loading of the specified page by using the received network resource comprises: and if the corresponding relation related to the specified page exists in the local cache, completing the loading of the specified page by using the received network resources, otherwise, discarding the received network resources.
6. The method of claim 1, wherein the sending the network resource request task to the second network transit device over the second radio frequency connection comprises:
the network resource request task is put into a network resource request task queue, and the network resource request task in the network resource request task queue is sent to second network transfer equipment through a second radio frequency connection;
the receiving the network resource sent by the second network transfer device through the second radio frequency connection includes: and putting the network resources sent by the second network transfer equipment through the second radio frequency connection into a network resource queue.
7. The method of any of claims 1-6, wherein the first radio frequency connection is a WiFi connection and the second radio frequency connection is a Bluetooth connection.
8. A network resource processing device is applied to a radio frequency device, wherein the radio frequency device establishes a first radio frequency connection with a first network transfer device, and the device comprises:
a task generating unit, configured to generate a network resource request task corresponding to a network resource in a case where a network resource request based on the first radio frequency connection fails, where the network resource request failure is caused by the first radio frequency connection, the network resource includes a plurality of network resources in a specified page, and the generating the network resource request task corresponding to the network resource includes:
respectively generating corresponding network resource request tasks for each network resource in the specified page, or generating a network resource request task for the specified page;
a transmission unit, configured to send the network resource request task to a second network transfer device through a second radio frequency connection, so that the second network transfer device obtains a network resource corresponding to each network resource request task; and receiving the network resource sent by the second network transfer device through the second radio frequency connection.
9. A radio frequency communication system is characterized in that the system comprises a first network transfer device, a radio frequency device and a second network transfer device; the radio frequency equipment is connected with the first network transfer equipment through a first radio frequency, and the radio frequency equipment is connected with the second network transfer equipment through a second radio frequency;
the radio frequency device includes: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-7;
the second network transfer device is configured to receive the network resource request task sent by the radio frequency device, and send the requested network resource to the radio frequency device according to the network resource corresponding to the network resource request task request.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202010104792.2A 2020-02-20 2020-02-20 Network resource processing method, device, radio frequency communication system and storage medium Active CN111405685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010104792.2A CN111405685B (en) 2020-02-20 2020-02-20 Network resource processing method, device, radio frequency communication system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010104792.2A CN111405685B (en) 2020-02-20 2020-02-20 Network resource processing method, device, radio frequency communication system and storage medium

Publications (2)

Publication Number Publication Date
CN111405685A CN111405685A (en) 2020-07-10
CN111405685B true CN111405685B (en) 2022-04-15

Family

ID=71430331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010104792.2A Active CN111405685B (en) 2020-02-20 2020-02-20 Network resource processing method, device, radio frequency communication system and storage medium

Country Status (1)

Country Link
CN (1) CN111405685B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345676A (en) * 2008-08-12 2009-01-14 东莞文胜鼎电子科技有限公司 Bar code scanning method and system based on ZigBee wireless transmission network
CN101778492A (en) * 2009-12-29 2010-07-14 深圳市远望谷信息技术股份有限公司 Method for radio frequency identification of mobile communication terminal and equipment thereof
CN105022750A (en) * 2014-04-28 2015-11-04 腾讯科技(北京)有限公司 Resource file loading method and apparatus
CN106507422A (en) * 2016-12-26 2017-03-15 努比亚技术有限公司 Mobile terminal and method for switching network
CN106936929A (en) * 2017-04-21 2017-07-07 深圳华制智能制造技术有限公司 A kind of things-internet gateway equipment, internet of things equipment group network system and its network-building method
CN110324390A (en) * 2018-03-30 2019-10-11 京东方科技集团股份有限公司 A kind of cut-in method, platform of internet of things, application apparatus, service equipment
CN110418432A (en) * 2018-04-26 2019-11-05 宏达国际电子股份有限公司 Handle the device and method that wireless heterogeneous networks are rebuild

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8295184B2 (en) * 2010-04-01 2012-10-23 Apple Inc. Wireless connection control
CN103369707B (en) * 2012-03-27 2016-12-14 华为终端有限公司 Wireless network establishment of connection method and terminal unit
CN105760405A (en) * 2014-12-19 2016-07-13 阿里巴巴集团控股有限公司 Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
CN108259542B (en) * 2016-12-29 2020-02-07 腾讯科技(深圳)有限公司 Resource transmission method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345676A (en) * 2008-08-12 2009-01-14 东莞文胜鼎电子科技有限公司 Bar code scanning method and system based on ZigBee wireless transmission network
CN101778492A (en) * 2009-12-29 2010-07-14 深圳市远望谷信息技术股份有限公司 Method for radio frequency identification of mobile communication terminal and equipment thereof
CN105022750A (en) * 2014-04-28 2015-11-04 腾讯科技(北京)有限公司 Resource file loading method and apparatus
CN106507422A (en) * 2016-12-26 2017-03-15 努比亚技术有限公司 Mobile terminal and method for switching network
CN106936929A (en) * 2017-04-21 2017-07-07 深圳华制智能制造技术有限公司 A kind of things-internet gateway equipment, internet of things equipment group network system and its network-building method
CN110324390A (en) * 2018-03-30 2019-10-11 京东方科技集团股份有限公司 A kind of cut-in method, platform of internet of things, application apparatus, service equipment
CN110418432A (en) * 2018-04-26 2019-11-05 宏达国际电子股份有限公司 Handle the device and method that wireless heterogeneous networks are rebuild

Also Published As

Publication number Publication date
CN111405685A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN108234505B (en) Account login method and system
CN111291079A (en) Data query method and device
CN109656572A (en) Packaging method and device, computer equipment, the storage medium of installation kit
CN104954431A (en) Network selection method, device and system
CN104144170A (en) URL filtering method, device and system
CN108228476B (en) Data acquisition method and device
CN111405685B (en) Network resource processing method, device, radio frequency communication system and storage medium
CN108647102A (en) Service request processing method, device and the electronic equipment of heterogeneous system
CN108345621B (en) Data reconciliation method, system and data system
CN106454884B (en) For distinguishing the method and apparatus of wireless access point of the same name
CN109032787B (en) Task allocation method and device
CN106412144A (en) Network access method and device
CN110765392A (en) Data loading method and device, storage medium and terminal
CN108600296B (en) Merchant information processing method and device, electronic equipment and storage medium
CN106254092A (en) A kind of method for early warning, Apparatus and system
CN111767481A (en) Access processing method, device, equipment and storage medium
CN112449310A (en) Signal coverage blind area positioning method, server side, terminal and computing equipment
CN106469166A (en) A kind of information processing method and device
CN111443918A (en) Channel access method and device for business object installation package
CN105912477B (en) A kind of method, apparatus and system that catalogue is read
CN115080507A (en) Vehicle fault snapshot data storage method, system, equipment and storage medium
CN111049948B (en) Domain name detection method and device
CN107547681A (en) A kind of method and device of user access network
CN111773666A (en) Order data processing method and device, storage medium and electronic device
WO2018010600A1 (en) Exception handling method and device, and computer storage media

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant