TW202139767A - Web request processing method and device - Google Patents

Web request processing method and device Download PDF

Info

Publication number
TW202139767A
TW202139767A TW110110397A TW110110397A TW202139767A TW 202139767 A TW202139767 A TW 202139767A TW 110110397 A TW110110397 A TW 110110397A TW 110110397 A TW110110397 A TW 110110397A TW 202139767 A TW202139767 A TW 202139767A
Authority
TW
Taiwan
Prior art keywords
processing
web request
data
request
function
Prior art date
Application number
TW110110397A
Other languages
Chinese (zh)
Other versions
TWI815098B (en
Inventor
焦旭
Original Assignee
大陸商北京微動數聯科技有限公司
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 大陸商北京微動數聯科技有限公司 filed Critical 大陸商北京微動數聯科技有限公司
Publication of TW202139767A publication Critical patent/TW202139767A/en
Application granted granted Critical
Publication of TWI815098B publication Critical patent/TWI815098B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the technical field of computers, and particularly provides a Web request processing method, which is applied to a Wi-Fi chip capable of configuring Wi-Fi parameters, and comprises the following steps of receiving a Web request, and establishing connection for the Web request; remotely calling an LUA script, and selecting a processing function corresponding to the Web request for processing; returning processing result data. An apparatus, apparatus, and medium are also correspondingly provided. According to the Web request processing method provided by the invention, the function of the Web server can be realized based on the Wi-Fi chip, and a Web server architecture is established.

Description

Web請求處理方法、裝置、電子設備以及內儲程式之電腦可讀取記錄媒體Web request processing method, device, electronic equipment, and computer readable recording medium with stored program

本發明係關於一種電腦技術領域,尤其是一種Web(網路)請求處理方法、一種Web請求處理裝置、一種電子設備和一種電腦存儲介質。The present invention relates to the field of computer technology, in particular to a method for processing Web (network) requests, a device for processing Web requests, an electronic device, and a computer storage medium.

現有技術Wi-Fi晶片常作為Wi-Fi適配器來使用,例如,樂鑫公司開發的ESP8266晶片,提供了⼀套高度集成的Wi-Fi晶片解決方案,其具有低功耗、緊湊設計和高穩定性等特點。只需通過SPI(串列外設介面)/SDIO(安全數位輸入輸出)介面或UART(通用非同步收發傳輸器)介面即可作為Wi-Fi適配器,應⽤到基於各種微控制器的設計中。詳細的功能說明可見其官方網站:「https://www.espressif.com/zh-hans/products/hardware/esp8266ex/overview」。Prior art Wi-Fi chips are often used as Wi-Fi adapters. For example, ESP8266 chip developed by Espressif provides a set of highly integrated Wi-Fi chip solutions with low power consumption, compact design and high stability Sex and other characteristics. It can be used as a Wi-Fi adapter through SPI (serial peripheral interface)/SDIO (secure digital input output) interface or UART (universal asynchronous transceiver) interface, which can be used in designs based on various microcontrollers . The detailed function description can be found on its official website: "https://www.espressif.com/zh-hans/products/hardware/esp8266ex/overview".

由於ESP8266的價格比較低,現在已經應用於多種物聯網系統中。但由於其作為Wi-Fi晶片的本質,性能受限,目前所提供的軟體僅限於在Wi-Fi配置方面的功能,而無法提供更豐富的功能。如果想提供更豐富的Web服務,則需要提升硬體設定以運行Web伺服器,從而會導致整個系統的成本大幅增加。Due to the relatively low price of ESP8266, it has now been used in a variety of IoT systems. However, due to its nature as a Wi-Fi chip and limited performance, the software currently provided is limited to the functions of Wi-Fi configuration and cannot provide richer functions. If you want to provide richer Web services, you need to upgrade the hardware settings to run the Web server, which will lead to a substantial increase in the cost of the entire system.

而要基於諸如ESP8266這樣的Wi-Fi晶片實現伺服器的功能的話,會面臨幾個問題:首先是該晶片沒有提供直接的伺服器軟體或相關必要的函數,功能不全;其次,由於Wi-Fi晶片自身硬體的限制,在實現伺服器功能的時候,所處理的資料訪問量會顯得記憶體不足。If you want to implement server functions based on a Wi-Fi chip such as ESP8266, you will face several problems: first, the chip does not provide direct server software or related necessary functions, and the functions are incomplete; secondly, due to Wi-Fi Due to the limitation of the chip's own hardware, when the server function is implemented, the amount of data access processed will appear to be insufficient in memory.

本發明為了解決現有技術中,可配置參數的Wi-Fi晶片功能有限的問題,提出了一種利用Wi-Fi晶片搭建Web伺服器功能的技術,具體地,第一方面,提供了一種Web請求處理方法,應用於可配置Wi-Fi參數的Wi-Fi晶片,該方法包含:In order to solve the problem of limited functions of Wi-Fi chips with configurable parameters in the prior art, the present invention proposes a technology for building Web server functions using Wi-Fi chips. Specifically, in the first aspect, a Web request processing method is provided. The method is applied to a Wi-Fi chip with configurable Wi-Fi parameters, and the method includes:

接收Web請求,為該Web請求建立連接。Receive a web request and establish a connection for the web request.

遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理。Call the LUA script remotely and select the processing function corresponding to the Web request for processing.

返回處理結果資料。Return processing result data.

進一步地,該遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理的步驟包含:Further, the steps of calling the LUA script by the remote end and selecting the processing function corresponding to the Web request for processing include:

觸發receive事件。Trigger the receive event.

解析請求資料,獲取到LUA檔案名。Parse the requested data and get the LUA file name.

載入檔獲取LUA函數。Load the file to get the LUA function.

執行LUA函數。Execute the LUA function.

觸發sent事件,發送執行該LUA函數所獲取到的結果。The sent event is triggered, and the result obtained by executing the LUA function is sent.

進一步地,該載入檔獲取LUA函數的步驟包含:Further, the steps of obtaining the LUA function from the loading file include:

採用dofile方式載入檔獲取該LUA函數。Use dofile to load files to obtain the LUA function.

進一步地,該選擇與該Web請求對應的處理函數進行處理的步驟包含:Further, the step of selecting the processing function corresponding to the Web request for processing includes:

創建與該Web請求對應的協同程式。Create a cooperative program corresponding to the web request.

為該協同程式指定處理函數。Specify the processing function for the cooperative program.

利用該處理函數進行處理。Use this processing function for processing.

進一步地,該利用該處理函數進行處理的步驟包含:Further, the step of processing using the processing function includes:

S121:喚醒協同程式,執行處理函數得到返回資料。S121: Wake up the cooperative program and execute the processing function to obtain the return data.

S1221:回應於返回資料需要切片,而進行資料切片。S1221: Perform data slicing in response to the need to slice the returned data.

S1222:回應於獲取到閾值個切片,掛起該協同程式,並發送該閾值個切片。S1222: In response to obtaining the threshold number of slices, suspend the cooperative program, and send the threshold number of slices.

S1223:回應於資料未發送完畢,迴圈執行步驟S121~S1222。S1223: Responding to the fact that the data has not been sent, execute steps S121~S1222 in a loop.

進一步地,該利用該處理函數進行處理的步驟還包含:Further, the step of processing using the processing function further includes:

回應於返回資料不需要切片,直接進行資料發送。In response to the returned data, no slicing is required, and the data is sent directly.

進一步地,該利用該處理函數進行處理的步驟還包含:資料發送後,判斷該協同程式為掛起狀態時,關閉該連接。Further, the step of using the processing function for processing further includes: after the data is sent, when it is determined that the cooperative program is in a suspended state, the connection is closed.

第二方面,本發明實施例提供了一種Web請求處理裝置,應用於可配置Wi-Fi參數的Wi-Fi晶片,該裝置包含:In the second aspect, an embodiment of the present invention provides a Web request processing device, which is applied to a Wi-Fi chip with configurable Wi-Fi parameters, and the device includes:

一連接建立模組,被配置為基於接收到的Web請求,為該Web請求建立連接。A connection establishment module is configured to establish a connection for the Web request based on the received Web request.

一資料處理模組,被配置為遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理。A data processing module is configured to remotely call the LUA script and select the processing function corresponding to the Web request for processing.

一發送模組,被配置為返回處理結果資料。A sending module is configured to return processing result data.

協力廠商面,本發明實施例提供了一種電子設備,包含:For third-party vendors, an embodiment of the present invention provides an electronic device, including:

一個或多個處理器。One or more processors.

一存儲裝置,用於存儲一個或多個程式。A storage device for storing one or more programs.

當該一個或多個程式被該一個或多個處理器執行,使得該一個或多個處理器實現上述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned methods.

第四方面,本發明實施例提供了一種內儲程式之電腦可讀取記錄媒體,其上存儲有電腦程式,該程式被處理器執行時實現上述的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable recording medium with a program stored therein, and a computer program is stored thereon, and the program is executed by a processor to implement the above-mentioned method.

本發明實施例中的方法、裝置、電子設備和內儲程式之電腦可讀取記錄媒體,實現利用存儲和處理資源有限的可配置參數的Wi-Fi晶片,搭建Web伺服器,在Wi-Fi晶片上實現更豐富的功能。In the embodiments of the present invention, the method, device, electronic equipment, and computer-readable recording medium with stored programs realize the use of Wi-Fi chips with limited storage and processing resources and configurable parameters to build a Web server. More functions are realized on the chip.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合圖式和具體實施方式對本發明進行進一步的詳細描述。需要說明的是,在不衝突的情況下,本申請的實施例及實施例中的特徵可以相互組合。In order to be able to understand the above objectives, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the drawings and specific embodiments. It should be noted that the embodiments of the application and the features in the embodiments can be combined with each other if there is no conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,但是,本發明還可以採用其他不同於在此描述的其他方式來實施,因此,本發明的保護範圍並不受下面公開的具體實施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited to the specific details disclosed below. Limitations of the embodiment.

如第1圖所示,本發明實施例提供了一種Web請求處理方法,應用於可配置Wi-Fi參數的Wi-Fi晶片,該方法包含:As shown in Figure 1, an embodiment of the present invention provides a Web request processing method, which is applied to a Wi-Fi chip with configurable Wi-Fi parameters, and the method includes:

S110:接收Web請求,為該Web請求建立連接;本發明實施例中的Wi-Fi晶片,例如ESP8266晶片,分為兩種運行模式,分別是配置模式和工作模式,兩種模式通過開關進行切換。設備初次使用要先進入配置模式,操作方法是將開關置於開狀態。配置模式的執行邏輯是將設備的WI-FI模組進行初始化,將其置為AP模式,然後開啟WEB服務,該服務可以對HTTP請求進行處理。用戶端接入設備的WI-FI網路,通過流覽器訪問Web服務。Web伺服器偵聽http請求並進行處理,將處理後結果返回給用戶端。配置模式支援對Wi-Fi資訊、雲伺服器資訊進行配置。配置完成後將開關置為關,重啟設備便可進入工作模式。在工作模式下,設備首先連接Wi-Fi,然後對設備進行校時,接著連接雲伺服器,完成以上工作後設備便開始傳輸資料。工作流程如第2圖所示。S110: Receive a Web request and establish a connection for the Web request; the Wi-Fi chip in the embodiment of the present invention, such as the ESP8266 chip, is divided into two operating modes, namely the configuration mode and the working mode. The two modes are switched by a switch . The device must enter the configuration mode when it is used for the first time. The operation method is to set the switch to the on state. The execution logic of the configuration mode is to initialize the Wi-Fi module of the device, set it to AP mode, and then turn on the WEB service, which can process HTTP requests. The client connects to the WI-FI network of the device and accesses the Web service through the browser. The web server listens to the http request and processes it, and returns the processed result to the client. The configuration mode supports the configuration of Wi-Fi information and cloud server information. After the configuration is complete, set the switch to off, and restart the device to enter the working mode. In the working mode, the device first connects to Wi-Fi, then performs time calibration on the device, and then connects to the cloud server. After completing the above tasks, the device starts to transmit data. The workflow is shown in Figure 2.

S120:遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理;根據Web請求進行解析獲取相應的處理函數進行資料處理,例如,資料查詢、資料計算、資料打包等操作,形成處理結果。S120: Remotely call the LUA script, select the processing function corresponding to the Web request for processing; parse the Web request to obtain the corresponding processing function for data processing, such as data query, data calculation, data packaging, etc., to form the processing result .

S130:返回處理結果資料;獲取處理結果之後,根據採用的資料協定進行資料打包發送,例如採用http協定方式進行發送。S130: Return the processing result data; after the processing result is obtained, the data is packaged and sent according to the adopted data protocol, for example, the HTTP protocol is used for sending.

本發明實施例中採用Wi-Fi晶片搭建伺服器功能,由於Wi-Fi晶片新能受限沒有成熟的Web服務框架,為了滿足提供Web服務的需求,基於LUA基礎庫實現一套Web服務框架。LUA是一種輕量小巧的指令碼語言,該Wi-Fi晶片能夠承載此類指令碼語言函數進行運行,通過遠端調用LUA腳本實現伺服器功能。In the embodiment of the present invention, a Wi-Fi chip is used to build a server function. Due to the limited new capabilities of the Wi-Fi chip, there is no mature Web service framework. In order to meet the requirements of providing Web services, a set of Web service frameworks are implemented based on the LUA basic library. LUA is a lightweight and compact scripting language. The Wi-Fi chip can carry such scripting language functions to run, and realize server functions by remotely calling LUA scripts.

Web伺服器關鍵技術包含創建TCP server(傳輸控制協議伺服器),捕捉http(超文字傳輸協定)請求並建立連接,對請求資料進行解析和處理,將結果以http形式返回用戶端,關閉連接。本實施例主要實現對http請求資料的解析和處理。根據選擇可實現具有特點如下:The key technologies of the Web server include creating a TCP server (Transmission Control Protocol Server), capturing HTTP (Hypertext Transfer Protocol) requests and establishing a connection, parsing and processing the requested data, returning the result to the client in the form of http, and closing the connection. This embodiment mainly implements the analysis and processing of http request data. According to the selection, the features are as follows:

1)   支援多種請求方式,包含get(獲取)、post(張貼)、put(放置)等,根據不同的Web請求方式,進行解析。1) Support a variety of request methods, including get (get), post (post), put (place), etc., and analyze according to different web request methods.

2)   支持http訪問認證。2) Support http access authentication.

3)   實現http方式遠端調用LUA腳本。3) Realize remote calling of LUA scripts in http mode.

4)   支援多種請求編碼。4) Support multiple request codes.

5)   能夠正確處理單次請求返回較大資料量的場景。5) It can correctly handle scenarios where a single request returns a large amount of data.

本發明實施例中採用遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理的步驟包含:In the embodiment of the present invention, the steps of remotely calling the LUA script and selecting the processing function corresponding to the Web request for processing include:

觸發receive事件,解析請求資料,獲取到LUA檔案名,載入檔獲取LUA函數,執行LUA函數,觸發sent事件,發送執行該LUA函數所獲取到的結果。Trigger the receive event, parse the requested data, obtain the LUA file name, load the file to obtain the LUA function, execute the LUA function, trigger the sent event, and send the result obtained by executing the LUA function.

本發明實施例中,該載入檔獲取LUA函數的步驟包含:In the embodiment of the present invention, the step of loading the file to obtain the LUA function includes:

採用dofile方式載入檔獲取該LUA函數。Use dofile to load files to obtain the LUA function.

為了在性能受限的Wi-Fi晶片實現處理較大資料量的場景,本發明實施中的處理Web請求的方式採用協同程式來處理,能夠減小對設備性能的要求,同時不會造成資料傳輸錯誤。具體地,該選擇與該Web請求對應的處理函數進行處理的步驟包含:創建與該Web請求對應的協同程式;為該協同程式指定處理函數;以及利用該處理函數進行處理。進一步地,如第3圖所示,該利用該處理函數進行處理的步驟包含:In order to realize the scenario of processing a large amount of data on a Wi-Fi chip with limited performance, the method of processing Web requests in the implementation of the present invention adopts a cooperative program to process, which can reduce the requirements for device performance without causing data transmission. mistake. Specifically, the step of selecting a processing function corresponding to the Web request for processing includes: creating a cooperative program corresponding to the Web request; specifying a processing function for the cooperative program; and processing using the processing function. Further, as shown in Figure 3, the steps of using the processing function for processing include:

S1231:喚醒協同程式,執行處理函數得到返回資料。S1231: Wake up the cooperative program and execute the processing function to get the return data.

S1232:回應於返回資料需要切片,而進行資料切片。S1232: Perform data slicing in response to the need to slice the returned data.

S1233:回應於獲取到閾值個切片,掛起該協同程式,並發送該閾值個切片。S1233: In response to obtaining the threshold number of slices, suspend the cooperative program, and send the threshold number of slices.

S1234:回應於資料未發送完畢,迴圈執行步驟S1231至步驟S1233。S1234: Responding to the fact that the data has not been sent, step S1231 to step S1233 are executed in a loop.

本發明實施例中通過協同程式執行處理函數得到返回資料,當資料量較大時,對應進行資料切片,然後發送,發送時,掛起該協同程式,降低對晶片性能要求,迴圈發送直到資料發送完畢。上述協同程式和資料發送可以類似並行的方式進行,例如,當發送資料時掛起協同程式,切片的資料發送完之後又喚醒該協同程式繼續執行,獲取返回資料,然後適應性選擇切片,掛起協同程式然後發送資料。採用協同程式保證了,多個處理請求都能被執行,避免由於單個請求獲取資料較多造成其他請求不被處理的情況。為了減小對晶片性能的要求,本發明實施例中,可以獲取到1個切片後即進行發送。In the embodiment of the present invention, the return data is obtained by executing the processing function through the cooperative program. When the amount of data is large, the data is sliced and then sent. When sending, the cooperative program is suspended to reduce the performance requirements of the chip, and the data is sent in a loop until the data is sent. Sent. The aforementioned cooperative program and data sending can be carried out in a similar parallel manner. For example, the cooperative program is suspended when sending data, and after the sliced data is sent, the cooperative program is awakened to continue execution, obtain the returned data, and then adaptively select the slice and suspend The collaborative program then sends the data. The use of a cooperative program ensures that multiple processing requests can be executed, avoiding the situation that other requests are not processed due to a single request for obtaining more data. In order to reduce the requirements on the performance of the wafer, in the embodiment of the present invention, one slice may be obtained and sent immediately.

本發明實施例中當獲取的返回資料資料量較小時,或者沒有其他協同程式要運行時,可以進行直接發送。具體地,該處理函數進行處理的步驟還包含:In the embodiment of the present invention, when the amount of returned data obtained is small, or when there is no other cooperative program to run, it can be sent directly. Specifically, the processing steps of the processing function further include:

S1235:回應於返回資料不需要切片,直接進行資料發送。S1235: Responding to the returned data without slicing, the data is sent directly.

如第4圖所示,本發明實施例中使用協同程式解決設備記憶體不足問題,保證對較大資料量訪問場景的支援,用戶發送Web請求,為請求建立連接,對請求資料進行解析,選擇相應的處理函數對請求進行處理,返回處理結果資料並關閉連接。資料處理過程採用協同程式,為每次請求創建協同程式並指定處理函數,處理流程是:首先喚醒協同程式,執行處理函數得到返回資料;然後,對返回資料按序進行切片,每獲取一個切片便進行發送,發送前將協同程式掛起,發送完後喚醒並繼續切片操作直到資料發送完;最後關閉連接完成一次請求過程。協同程式保證同一請求的返回資料能夠連續正確地發送。As shown in Figure 4, in the embodiment of the present invention, a cooperative program is used to solve the problem of insufficient device memory and to ensure support for larger data access scenarios. The user sends a Web request, establishes a connection for the request, analyzes the requested data, and selects The corresponding processing function processes the request, returns the processing result data and closes the connection. The data processing process adopts a cooperative program. A cooperative program is created for each request and a processing function is specified. The processing flow is: first wake up the cooperative program, execute the processing function to obtain the returned data; then, slice the returned data in sequence, and each slice is obtained Send, suspend the cooperative program before sending, wake up after sending and continue the slicing operation until the data is sent; finally close the connection to complete a request process. The cooperative program ensures that the returned data of the same request can be sent continuously and correctly.

進一步地,該利用該處理函數進行處理的步驟還包含:S1236:資料發送後,判斷該協同程式為掛起狀態時,關閉該連接。及時清空資源的佔用。Further, the step of processing using the processing function further includes: S1236: After the data is sent, when it is determined that the cooperative program is in a suspended state, the connection is closed. Clear the occupation of resources in time.

如第5圖所示,本發明實施例可以實現通過http方式遠端調用LUA腳本,請求到達後,觸發receive的回呼函數,該函數對請求資料進行解析,獲取到LUA檔案名稱,然後用dofile方式載入檔便得到該腳本定義的處理函數,將請求的參數傳遞給該函數完成資料處理工作。此方式要求LUA腳本遵循格式定義為:return function(connection, req, args)。As shown in Figure 5, the embodiment of the present invention can remotely call the LUA script via http. After the request arrives, the receive callback function is triggered. This function parses the requested data, obtains the LUA file name, and then uses dofile Load the file in a way to get the processing function defined by the script, and pass the requested parameters to the function to complete the data processing work. This method requires the LUA script to follow the format definition: return function (connection, req, args).

本發明實施例基於可配置參數的Wi-Fi晶片,提供了一種針對Web請求的處理方法。能夠基於有限的記憶體資源處理較大資料請求的場景,也能實現遠端調用LUA腳本。The embodiment of the present invention provides a processing method for Web requests based on a Wi-Fi chip with configurable parameters. It can process larger data requests based on limited memory resources, and it can also realize remote calling of LUA scripts.

如第6圖所示,本發明實施例還提供了一種Web請求處理裝置200,應用於可配置Wi-Fi參數的Wi-Fi晶片,該裝置200包含:As shown in Figure 6, an embodiment of the present invention also provides a Web request processing device 200, which is applied to a Wi-Fi chip with configurable Wi-Fi parameters. The device 200 includes:

一連接建立模組210,被配置為基於接收到的Web請求,為該Web請求建立連接。A connection establishment module 210 is configured to establish a connection for the Web request based on the received Web request.

一資料處理模組220,被配置為遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理。A data processing module 220 is configured to remotely call the LUA script and select the processing function corresponding to the Web request for processing.

一發送模組230,被配置為返回處理結果資料。A sending module 230 is configured to return processing result data.

進一步地,該資料處理模組220配置為:Further, the data processing module 220 is configured as:

觸發receive事件,解析請求資料,獲取到LUA檔案名,載入檔獲取LUA函數,執行LUA函數,觸發sent事件,發送執行該LUA函數所獲取到的結果。Trigger the receive event, parse the requested data, obtain the LUA file name, load the file to obtain the LUA function, execute the LUA function, trigger the sent event, and send the result obtained by executing the LUA function.

進一步地,該資料處理模組220採用dofile方式載入檔獲取該LUA函數。進一步地,該資料處理模組220還被配置為,創建與該Web請求對應的協同程式;為該協同程式指定處理函數;利用該處理函數進行處理。Further, the data processing module 220 uses a dofile method to load files to obtain the LUA function. Further, the data processing module 220 is also configured to create a coordinated program corresponding to the Web request; specify a processing function for the coordinated program; and use the processing function for processing.

進一步地,該資料處理模組220還被配置為,喚醒協同程式,執行處理函數得到返回資料;回應於返回資料需要切片,進行資料切片;回應於獲取到閾值個切片,進行發送,掛起該協同程式,並發送該閾值個切片;回應於資料未發送完畢,迴圈進行喚醒、切片發送的步驟直至發送完畢;當返回資料不需要切片時進行直接進行資料發送;資料發送後,判斷該協同程式為掛起狀態時,關閉該連接。Further, the data processing module 220 is also configured to wake up the cooperative program and execute the processing function to obtain the returned data; in response to the return data requiring slicing, perform data slicing; in response to obtaining a threshold number of slices, send it, and suspend the Cooperative program, and send the threshold number of slices; in response to the data has not been sent, the loop will wake up and slice sending steps until the sending is completed; when the returned data does not need to be sliced, the data will be sent directly; after the data has been sent, the collaboration is judged When the program is suspended, close the connection.

上述模組所執行的步驟詳細細節已在上述的方法實施例中進行了描述,在此不再進行贅述。The detailed details of the steps performed by the above-mentioned module have been described in the above-mentioned method embodiment, and will not be repeated here.

應當注意,儘管在上文詳細描述中提及了用於動作執行的設備的若干模組或者單元,但是這種劃分並非強制性的。實際上,根據本發明的實施方式,上文描述的兩個或更多模組或者單元的特徵和功能可以在一個模組或者單元中具體化。反之,上文描述的一個模組或者單元的特徵和功能可以進一步劃分為由多個模組或者單元來具體化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present invention, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.

此外,儘管在圖式中以特定順序描述了本發明中方法的各個步驟,但是,這並非要求或者暗示必須按照該特定順序來執行這些步驟,或是必須執行全部所示的步驟才能實現期望的結果。附加的或備選的,可以省略某些步驟,將多個步驟合併為一個步驟執行,以及/或者將一個步驟分解為多個步驟執行等。In addition, although the various steps of the method of the present invention are described in a specific order in the drawings, this does not require or imply that these steps must be performed in the specific order, or that all the steps shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.

在本發明的示例性實施例中,還提供了一種能夠實現上述方法的電子設備。In an exemplary embodiment of the present invention, an electronic device capable of implementing the above method is also provided.

所屬技術領域的技術人員能夠理解,本發明的各個方面可以實現為系統、方法或程式產品。因此,本發明的各個方面可以具體實現為以下形式,即:完全的硬體實施方式、完全的軟體實施方式(包含固件、微代碼等),或硬體和軟體方面結合的實施方式,這裡可以統稱為“電路”、“模組”或“系統”。Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, a method, or a program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, where you can Collectively referred to as "circuits", "modules" or "systems".

下面參照第7圖來描述根據本發明的這種實施方式的電子設備1100。第7圖顯示的電子設備1100僅僅是一個示例,不應對本發明實施例的功能和使用範圍帶來任何限制。The electronic device 1100 according to this embodiment of the present invention will be described below with reference to FIG. 7. The electronic device 1100 shown in FIG. 7 is only an example, and should not bring any limitation to the function and application scope of the embodiment of the present invention.

如第7圖所示,電子設備1100以通用計算設備的形式表現。電子設備1100的元件可以包含但不限於:上述至少一個處理單元1110、上述至少一個存儲單元1120、連接不同系統元件(包含存儲單元1120和處理單元1110)的匯流排1130以及顯示單元1140。As shown in Figure 7, the electronic device 1100 is represented in the form of a general-purpose computing device. The components of the electronic device 1100 may include, but are not limited to: the aforementioned at least one processing unit 1110, the aforementioned at least one storage unit 1120, a bus 1130 connecting different system components (including the storage unit 1120 and the processing unit 1110), and a display unit 1140.

其中,該存儲單元存儲有程式碼,該程式碼可以被該處理單元1110執行,使得該處理單元1110執行本說明書上述“示例性方法”部分中描述的根據本發明各種示例性實施方式的步驟。例如,該處理單元1110可以執行如第1圖中所示的S110接收Web請求,為該Web請求建立連接;S120遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理;S130返回處理結果資料。Wherein, the storage unit stores a program code, which can be executed by the processing unit 1110, so that the processing unit 1110 executes the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of this specification. For example, the processing unit 1110 may execute S110 as shown in Figure 1 to receive a Web request and establish a connection for the Web request; S120 remotely call the LUA script, select the processing function corresponding to the Web request for processing; S130 return processing Result information.

該存儲單元1120可以包含易失性存儲單元形式的可讀介質,例如隨機存取存儲單元(RAM)11201和/或快取記憶體存儲單元11202,還可以進一步包含唯讀存儲單元(ROM)11203。The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 11201 and/or a cache storage unit 11202, and may further include a read-only storage unit (ROM) 11203 .

該存儲單元1120還可以包含具有一組(至少一個)程式模組11205的程式/實用工具11204,這樣的程式模組11205包含但不限於:作業系統、一個或者多個應用程式、其它程式模組以及程式資料,這些示例中的每一個或某種組合中可能包含網路環境的實現。The storage unit 1120 may also include a program/utility tool 11204 having a set (at least one) program module 11205. Such program module 11205 includes but is not limited to: an operating system, one or more application programs, and other program modules. As well as program data, each of these examples or some combination may include the realization of the network environment.

該匯流排1130可以為表示幾類匯流排結構中的一種或多種,包含存儲單元匯流排或者存儲單元控制器、週邊匯流排、圖形加速埠、處理單元或者使用多種匯流排結構中的任意匯流排結構的局域匯流排。The bus 1130 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or any bus using a variety of bus structures Structure of the local bus.

電子設備1100也可以與一個或多個外部設備1200(例如鍵盤、指向設備、藍牙設備等)通信,還可與一個或者多個使得使用者能與該電子設備1100交互的設備通信,和/或與使得該電子設備1100能與一個或多個其它計算設備進行通信的任何設備(例如路由器、數據機等等)通信。這種通信可以通過一輸入/輸出(I/O)介面1150進行。並且,電子設備1100還可以通過一網路介面卡1160與一個或者多個網路(例如局域網(LAN),廣域網路(WAN)和/或公共網路,例如網際網路)通信。如圖所示,該網路介面卡1160通過該匯流排1130與該電子設備1100的其它模組通信。應當明白,儘管圖中未示出,可以結合該電子設備1100使用其它硬體和/或軟體模組,包含但不限於:微代碼、裝置驅動程式、冗餘處理單元、外部磁片驅動陣列、RAID系統、磁帶驅動器以及資料備份存儲系統等。The electronic device 1100 may also communicate with one or more external devices 1200 (such as keyboards, pointing devices, Bluetooth devices, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and/or Communicate with any device (eg, router, modem, etc.) that enables the electronic device 1100 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 1150. In addition, the electronic device 1100 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through a network interface card 1160. As shown in the figure, the network interface card 1160 communicates with other modules of the electronic device 1100 through the bus 1130. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

通過以上的實施方式的描述,本領域的技術人員易於理解,這裡描述的示例實施方式可以通過軟體實現,也可以通過軟體結合必要的硬體的方式來實現。因此,根據本發明實施方式的技術方案可以以軟體產品的形式體現出來,該軟體產品可以存儲在一個非易失性存儲介質(可以是CD-ROM,U盤,移動硬碟等)中或網路上,包含若干指令以使得一台計算設備(可以是個人電腦、伺服器、終端裝置、或者網路設備等)執行根據本發明實施方式的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, removable hard disk, etc.) or on the Internet. On the road, several instructions are included to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present invention.

在本發明的示例性實施例中,還提供了一種電腦可讀存儲介質,其上存儲有能夠實現本說明書上述方法的程式產品。在一些可能的實施方式中,本發明的各個方面還可以實現為一種程式產品的形式,其包含程式碼,當該程式產品在終端設備上運行時,該程式碼用於使該終端設備執行本說明書上述“示例性方法”部分中描述的根據本發明各種示例性實施方式的步驟。In an exemplary embodiment of the present invention, a computer-readable storage medium is also provided, on which a program product capable of implementing the above-mentioned method in this specification is stored. In some possible implementation manners, various aspects of the present invention can also be implemented in the form of a program product, which contains a program code. When the program product runs on a terminal device, the program code is used to make the terminal device execute the program. The steps according to various exemplary embodiments of the present invention are described in the above-mentioned "Exemplary Method" section of the specification.

根據本發明的實施方式的用於實現上述方法的程式產品,其可以採用可擕式緊湊盤唯讀記憶體(CD-ROM)並包含程式碼,並可以在終端設備,例如個人電腦上運行。然而,本發明的程式產品不限於此,在本檔中,可讀存儲介質可以是任何包含或存儲程式的有形介質,該程式可以被指令執行系統、裝置或者器件使用或者與其結合使用。The program product for implementing the above-mentioned method according to the embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and contain program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system, device, or device.

該程式產品可以採用一個或多個可讀介質的任意組合。可讀介質可以是可讀信號介質或者可讀存儲介質。可讀存儲介質例如可以為但不限於電、磁、光、電磁、紅外線、或半導體的系統、裝置或器件,或者任意以上的組合。可讀存儲介質的更具體的例子(非窮舉的列表)包含:具有一個或多個導線的電連接、可擕式盤、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可擦式可程式設計唯讀記憶體(EPROM或快閃記憶體)、光纖、可擕式緊湊盤唯讀記憶體(CD-ROM)、光記憶體件、磁記憶體件、或者上述的任意合適的組合。The program product can use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard drives, random access memory (RAM), read-only memory ( ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical memory, magnetic memory, or Any suitable combination of the above.

電腦可讀信號介質可以包含在基帶中或者作為載波一部分傳播的資料信號,其中承載了可讀程式碼。這種傳播的資料信號可以採用多種形式,包含但不限於電磁信號、光信號或上述的任意合適的組合。可讀信號介質還可以是可讀存儲介質以外的任何可讀介質,該可讀介質可以發送、傳播或者傳輸用於由指令執行系統、裝置或者器件使用或者與其結合使用的程式。The computer-readable signal medium may be contained in a baseband or a data signal propagated as a part of a carrier wave, which carries readable program code. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium can send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.

可讀介質上包含的程式碼可以用任何適當的介質傳輸,包含但不限於無線、有線、光纜、RF等等,或者上述的任意合適的組合。The program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

可以以一種或多種程式設計語言的任意組合來編寫用於執行本發明操作的程式碼,該程式設計語言包含物件導向的程式設計語言—諸如Java、C++等,還包含常規的過程式程式設計語言—諸如“C”語言或類似的程式設計語言。程式碼可以完全地在使用者計算設備上執行、部分地在使用者設備上執行、作為一個獨立的套裝軟體執行、部分在使用者計算設備上部分在遠端計算設備上執行、或者完全在遠端計算設備或伺服器上執行。在涉及遠端計算設備的情形中,遠端計算設備可以通過任意種類的網路,包含局域網(LAN)或廣域網路(WAN),連接到使用者計算設備,或者,可以連接到外部計算設備(例如利用網際網路服務提供者來通過網際網路連接)。The programming code used to perform the operations of the present invention can be written in any combination of one or more programming languages. The programming language includes object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. -Such as "C" language or similar programming languages. The code can be executed entirely on the user's computing device, partly on the user's device, executed as a stand-alone software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device. On the end computing device or server. In the case of a remote computing device, the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device ( For example, use an Internet service provider to connect via the Internet).

此外,上述圖式僅是根據本發明示例性實施例的方法所包含的處理的示意性說明,而不是限制目的。易於理解,上述圖式所示的處理並不表明或限制這些處理的時間順序。另外,也易於理解,這些處理可以是例如在多個模組中同步或非同步執行的。In addition, the above-mentioned drawings are merely schematic illustrations of the processing included in the method according to the exemplary embodiment of the present invention, and are not intended for limitation. It is easy to understand that the processing shown in the above drawings does not indicate or limit the time sequence of these processings. In addition, it is easy to understand that these processes can be executed synchronously or asynchronously in multiple modules, for example.

本領域技術人員在考慮說明書及實踐這裡發明的發明後,將容易想到本發明的其他實施例。本申請旨在涵蓋本發明的任何變型、用途或者適應性變化,這些變型、用途或者適應性變化遵循本發明的一般性原理並包含本發明未發明的本技術領域中的公知常識或慣用技術手段。說明書和實施例僅被視為示例性的,本發明的真正範圍和精神由請求項指出。Those skilled in the art will easily think of other embodiments of the present invention after considering the description and practicing the invention herein. This application is intended to cover any variations, uses, or adaptive changes of the present invention, which follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field that the present invention is not invented. . The description and the embodiments are only regarded as exemplary, and the true scope and spirit of the present invention are pointed out by the claims.

﹝本發明﹞ 200:Web請求處理裝置 210:連接建立模組 220:資料處理模組 230:發送模組 1100:電子設備 1110:處理單元 1120:存儲單元 11201:隨機存取存儲單元 11202:快取記憶體存儲單元 11203:唯讀存儲單元 11204:程式/實用工具 11205:程式模組 1130:匯流排 1140:顯示單元 1150:輸入/輸出介面 1160:網路介面卡 1200:外部設備 S110:步驟 S120:步驟 S1231:步驟 S1232:步驟 S1233:步驟 S1234:步驟 S1235:步驟 S1236:步驟 S130:步驟﹝this invention﹞ 200: Web request processing device 210: Connection establishment module 220: data processing module 230: send module 1100: electronic equipment 1110: processing unit 1120: storage unit 11201: Random Access Storage Unit 11202: Cache storage unit 11203: read-only storage unit 11204: Programs/Utilities 11205: program module 1130: bus 1140: display unit 1150: input/output interface 1160: network interface card 1200: external equipment S110: Step S120: Step S1231: Step S1232: steps S1233: steps S1234: steps S1235: steps S1236: steps S130: Step

[第1圖]  本發明一實施例中的Web請求處理方法的流程示意圖。 [第2圖]  本發明一實施例中的Wi-Fi晶片配置過程流程示意圖。 [第3圖]  本發明一實施例中的利用協同程式處理請求的流程示意圖。 [第4圖]  本發明一實施例中的對Web請求進行資料處理的流程示意圖示意圖。 [第5圖]  本發明一實施例中的實現LUA腳本遠端調用的流程示意圖。 [第6圖]  本發明一實施例中的Web請求處理裝置的結構示意圖。 [第7圖]  本發明一實施例中的電子設備的結構示意圖。[Figure 1] A schematic flowchart of a method for processing a Web request in an embodiment of the present invention. [Figure 2] Schematic diagram of the process flow of Wi-Fi chip configuration in an embodiment of the present invention. [Figure 3] Schematic diagram of the process of processing a request using a cooperative program in an embodiment of the present invention. [Figure 4] A schematic diagram of the flow of data processing on a Web request in an embodiment of the present invention. [Figure 5] Schematic diagram of the process of implementing remote invocation of LUA scripts in an embodiment of the present invention. [Figure 6] A schematic structural diagram of a Web request processing apparatus in an embodiment of the present invention. [Figure 7] A schematic structural diagram of an electronic device in an embodiment of the present invention.

S110:步驟S110: Step

S120:步驟S120: Step

S130:步驟S130: Step

Claims (10)

一種Web請求處理方法,應用於可配置Wi-Fi參數的Wi-Fi晶片,該方法包含: 接收Web請求,為該Web請求建立連接; 遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理; 返回處理結果資料。A Web request processing method, applied to a Wi-Fi chip with configurable Wi-Fi parameters, the method includes: Receive a web request and establish a connection for the web request; Call the LUA script remotely and select the processing function corresponding to the Web request for processing; Return processing result data. 如請求項1之Web請求處理方法,其中,該遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理的步驟包含:觸發receive事件;解析請求資料,獲取到LUA檔案名;載入檔獲取LUA函數;執行LUA函數;觸發sent事件,發送執行該LUA函數所獲取到的結果。For example, the Web request processing method of request item 1, wherein the remote call LUA script and the steps of selecting the processing function corresponding to the Web request for processing include: triggering the receive event; parsing the request data to obtain the LUA file name; loading File to obtain the LUA function; execute the LUA function; trigger the sent event, and send the result obtained by executing the LUA function. 如請求項2之Web請求處理方法,其中,該載入檔獲取LUA函數的步驟包含:採用dofile方式載入檔獲取該LUA函數。For example, the Web request processing method of request item 2, wherein the step of loading the file to obtain the LUA function includes: loading the file in the dofile mode to obtain the LUA function. 如請求項1或2之Web請求處理方法,其中,該選擇與該Web請求對應的處理函數進行處理的步驟包含:創建與該Web請求對應的協同程式;為該協同程式指定處理函數;以及利用該處理函數進行處理。For example, the Web request processing method of request item 1 or 2, wherein the step of selecting the processing function corresponding to the Web request for processing includes: creating a cooperative program corresponding to the Web request; specifying the processing function for the cooperative program; and using This processing function performs processing. 如請求項4之Web請求處理方法,其中,該利用該處理函數進行處理的步驟包含:S1231:喚醒協同程式,執行處理函數得到返回資料;S1232:回應於返回資料需要切片,而進行資料切片;S1233:回應於獲取到閾值個切片,掛起該協同程式,並發送該閾值個切片;S1234:回應於資料未發送完畢,迴圈執行步驟S1231~S1234。For example, the web request processing method of claim 4, wherein the step of processing using the processing function includes: S1231: wake up the cooperative program, execute the processing function to obtain the returned data; S1232: perform data slicing in response to the need to slice the returned data; S1233: Responding to the acquisition of the threshold number of slices, suspend the cooperative program, and send the threshold number of slices; S1234: Responding to the fact that the data has not been sent, and execute steps S1231 to S1234 in a loop. 如請求項4之Web請求處理方法,其中,該利用該處理函數進行處理的步驟還包含:回應於返回資料不需要切片,直接進行資料發送。For example, the web request processing method of request item 4, wherein the step of processing using the processing function further includes: responding to the returned data without slicing, and directly sending the data. 如請求項5或6之Web請求處理方法,其中,該利用該處理函數進行處理的步驟還包含:資料發送後,判斷該協同程式為掛起狀態時,關閉該連接。For example, the web request processing method of request item 5 or 6, wherein the step of using the processing function for processing further includes: after the data is sent, when it is determined that the cooperative program is in a suspended state, the connection is closed. 一種Web請求處理裝置,應用於可配置Wi-Fi參數的Wi-Fi晶片,該裝置包含: 一連接建立模組,被配置為基於接收到的Web請求,為該Web請求建立連接; 一資料處理模組,被配置為遠端調用LUA腳本,選擇與該Web請求對應的處理函數進行處理; 一發送模組,被配置為返回處理結果資料。A web request processing device applied to a Wi-Fi chip with configurable Wi-Fi parameters. The device includes: A connection establishment module configured to establish a connection for the web request based on the received web request; A data processing module is configured to remotely call the LUA script and select the processing function corresponding to the Web request for processing; A sending module is configured to return processing result data. 一種電子設備,包含: 一個或多個處理器; 一存儲裝置,用於存儲一個或多個程式, 當該一個或多個程式被該一個或多個處理器執行,使得該一個或多個處理器實現如請求項1至7中任一項之Web請求處理方法。An electronic device that contains: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the web request processing method such as any one of request items 1 to 7. 一種內儲程式之電腦可讀取記錄媒體,其上存儲有電腦程式,該程式被處理器執行時實現如請求項1至7中任一項之Web請求處理方法。A computer-readable recording medium with a program stored therein has a computer program stored thereon, and when the program is executed by a processor, the Web request processing method such as any one of request items 1 to 7 is realized.
TW110110397A 2020-04-09 2021-03-23 Web request processing method, device, electronic device, and computer-readable recording medium with stored program TWI815098B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
WOPCT/CN2020/083875 2020-04-09
PCT/CN2020/083875 WO2021203343A1 (en) 2020-04-09 2020-04-09 Web request processing method and apparatus

Publications (2)

Publication Number Publication Date
TW202139767A true TW202139767A (en) 2021-10-16
TWI815098B TWI815098B (en) 2023-09-11

Family

ID=73334984

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110110397A TWI815098B (en) 2020-04-09 2021-03-23 Web request processing method, device, electronic device, and computer-readable recording medium with stored program

Country Status (3)

Country Link
CN (1) CN111937366B (en)
TW (1) TWI815098B (en)
WO (1) WO2021203343A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461296B (en) * 2021-12-29 2024-01-02 天翼云科技有限公司 Openresty-based service platform development and access method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488143A (en) * 2008-01-16 2009-07-22 重庆安软信息科技有限公司 Novel web application and local application interaction mode
WO2011127640A1 (en) * 2010-04-12 2011-10-20 Google Inc. Extension framework for input method editor
CN103036891A (en) * 2012-12-19 2013-04-10 北京时代凌宇科技有限公司 Method and device based on wireless fidelity (Wi-Fi) for accessing to Internet of Things
CN105516337B (en) * 2015-12-28 2018-07-13 南京大学金陵学院 Web site based on dynamic load mechanism docks analytic method
US9898384B2 (en) * 2016-03-18 2018-02-20 International Business Machines Corporation Automated problem determination for cooperating web services using debugging technology
US10162690B2 (en) * 2017-01-27 2018-12-25 Mz Ip Holdings, Llc System and method for encapsulating computer communications
CN108717285A (en) * 2018-04-14 2018-10-30 张著岳 The programmable logic controller (PLC) programmed by built-in web
CN110392375B (en) * 2018-04-18 2022-02-22 腾讯科技(深圳)有限公司 WiFi network channel modification method, terminal, server and storage medium
CN110545298A (en) * 2018-05-28 2019-12-06 上海驿卓通信科技有限公司 Exhibition hall multi-information acquisition system
CN110875858B (en) * 2018-08-31 2023-06-27 北京京东尚科信息技术有限公司 Application test data grabbing method, system, equipment and storage medium
CN109814915B (en) * 2018-12-29 2022-07-22 天津字节跳动科技有限公司 Parameter configuration method, device, medium and electronic equipment based on lua
CN110545269A (en) * 2019-08-22 2019-12-06 西安四叶草信息技术有限公司 Access control method, device and storage medium

Also Published As

Publication number Publication date
CN111937366B (en) 2023-08-01
CN111937366A (en) 2020-11-13
WO2021203343A1 (en) 2021-10-14
TWI815098B (en) 2023-09-11

Similar Documents

Publication Publication Date Title
US11223704B2 (en) Event service for local client applications through local server
US9436521B2 (en) TCP/IP stack-based operating system
CN112257135B (en) Model loading method and device based on multithreading, storage medium and terminal
WO2017156713A1 (en) Service processing method and apparatus
US10318359B2 (en) Techniques to remotely access object events
WO2021057925A1 (en) Intelligent device control method and apparatus, intelligent device and storage medium
WO2021022710A1 (en) Message queue processing method, device, electronic apparatus, and computer readable non-volatile storage medium
JP2009157648A (en) Communication terminal, communication method, and communication program
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
WO2021120544A1 (en) Method and apparatus for debugging device
TWI815098B (en) Web request processing method, device, electronic device, and computer-readable recording medium with stored program
WO2021012795A1 (en) Network node scheduling method and apparatus, electronic device and storage medium
JP7367287B2 (en) Methods, devices, electronic devices, and readable storage media for performing change tasks
US9386010B2 (en) Abstracted authenticated client connectivity application programming interface (API)
EP2766806B1 (en) Event service for local client applications through local server
WO2019140565A1 (en) Cloud storage instruction management method and system
WO2021057351A1 (en) Apparatus and method for controlling android bluetooth in glibc environment, and terminal device
Wang et al. Design and implementation of remote control system between Android platform
CN109474944A (en) A kind of maintaining method of the network equipment, device, terminal and the network equipment
KR100494827B1 (en) Distributed object model based radio server with hardware-independent communication interface and communication control method using the same
WO2023179801A1 (en) Data processing method and apparatus, communication system, electronic device, and storage medium
WO2017166094A1 (en) Server front-end method
WO2019140578A1 (en) Data backup instruction management method and system
Jiang Transplantation research of the lwip agreement under the uc/os-ii
CN116846977A (en) Network sharing method, device and system, electronic equipment and storage medium