為了使本技術領域的人員更好地理解本發明方案,下面將結合本發明實施例中的圖式,對本發明實施例中的技術方案進行清楚、完整地描述。
在本發明的說明書和申請專利範圍及上述圖式中的描述的一些流程中,包含了按照特定順序出現的多個操作,但是應該清楚瞭解,這些操作可以不按照其在本文中出現的順序來執行或並行執行,操作的序號如101、102等,僅僅是用於區分開各個不同的操作,序號本身不代表任何的執行順序。另外,這些流程可以包括更多或更少的操作,並且這些操作可以按順序執行或並行執行。需要說明的是,本文中的“第一”、“第二”等描述,是用於區分不同的消息、設備、模組等,不代表先後順序,也不限定“第一”和“第二”是不同的類型。
本發明實施例的技術方案主要應用於基於LoRaWAN網路系統實現的通信場景中。LoRaWAN技術廣泛應用在工業、科學和醫療等領域,實現廣域通信。
LoRaWAN網路系統主要由LoRa終端(在下文相應解釋中,簡稱為終端)、閘道器(Gateway)以及服務端構成,當然還可以包括用戶端等,終端上報的數據可以通過閘道器及服務端發送至用戶端,以供用戶查看等。
由背景技術中描述可知,終端與服務端的數據交互分為上行以及下行,為了方便描述,本發明實施例中,將服務端向終端發送的內容可以統稱為下行指令,終端上報至服務端的內容可以統稱為上行數據。在LoRaWAN的協議規範中,終端對下行指令需要進行響應並反饋應答指令,該應答指令也即作為一種上行數據上報至服務端。
其中,服務端可以包括NS(Network server,核心網伺服器)、AS(application server,應用伺服器)、CS(Custom server、用戶伺服器)等。終端為遠程通信端,在不同應用場景下,其可以例如是進行業務數據採集的遠程傳感器或者電能/電錶等採集設備。NS為直接與閘道器通信的伺服器,因此下行指令是由NS通過閘道器中轉下發至終端,而下行指令可能是NS或者AS的生成指令,在不同應用場景下,下行指令可以不同,比如下行指令可以是進行數據採集的啟動指令,以控制終端開始進行業務數據採集等。
而終端可以週期性或非週期性上報上行數據,比如將採集獲得的業務數據上報至服務端等。
其中,終端存在三種工作模式:A、B以及C。
工作模式A是指:終端先發送,在發送後開啟一段時間的接收窗口,終端只有在發送後才可以接收。也就是說上行沒有限制,下行指令只有在上行數據發送上來的時候終端才可以接收到。
工作模式B是指:終端和伺服器約定好接收窗口的開啟時間,然後僅再約定時間接收下行指令。
工作模式C是指:終端在發送以外的其他時間都開啟接收窗口,可以隨時接收下行指令。
其中,終端對下行指令的響應模式包括:立即響應模式以及業務上報模式。
立即響應模式是指:終端接收到下行指令之後即立即進行響應並向服務端反饋應答指令;
業務上報模式是指:針對下行指令的應答指令攜帶在終端下一次業務上報的上行數據中。
本發明實施例中,下行指令響應時間是指從下行指令發送直至接收到應答指令的經過時間。指令超時時間即是基於下行指令響應時間來設定,而由於服務端對於終端的上報週期無法確定,因此為了適應上報週期較長的終端,現有技術中,指令超時時間通常設置的較大,但是這對於立即響應模式或者上報週期較短的終端,如果下行指令是在傳輸過程中丟失,但是當前還未到達指令超時時間時,將無法進行指令重傳,從而就會影響下行指令執行效率。因此,現有技術中的指令超時時間設定的並不合理,也不夠準確。
發明人在研究中發現,終端處於立即響應模式下,下行指令響應時間比較短,通常即為網路延時時間,且不同下行指令響應時間均比較接近,分佈較為集中;而若終端處於業務上報模式、週期性進行上報、且工作在工作模式A時,下行指令響應時間比較長,且不同下行指令響應時間均接近上報週期,分佈較為集中;而若終端處於業務上報模式、週期性上報、且工作在工作模式B或者工作模式C時,下行指令響應時間比較長且不同下行指令響應時間相差較大,分佈離散、最長下行指令響應時間接近上報週期;而若終端處於業務上報模式且非週期性上報時,下行指令響應時間比較長且不同下行指令響應時間相差較大,分佈離散。也即終端處於由任意響應模式、任意工作模式以及任意上報模式組成的任意工作狀態下,下行指令響應時間各有各自的特徵,為了方便清楚描述,下表1列出了一個終端處於不同工作狀態下的下行指令響應時間分佈情況。
結合表1的分析結果,發明人發現,下行指令響應時間與終端的響應模式、終端的工作模式、及終端的上報模式(週期或非週期)有關、且在不同響應模式、不同工作模式以及不同上報模式下,下行指令響應時間的分佈情況不同。因此為了設定合理、準確的指令超時時間,可以綜合考慮終端的響應模式、工作模式以及上報模式,為不同終端設定自適應的指令超時時間,使得服務端針對不同終端的指令超時時間,對終端的下行指令響應過程進行監控,在保證指令可靠性的前提下,可以提高指令執行效率。
因此,發明人經過進一步研究,提出了本發明實施例的技術方案,綜合考慮了終端的響應模式、工作模式和/或上報模式,為終端設置相匹配的合適、準確的指令超時時間,在本發明實施例中,獲取終端針對多條下行指令的響應時間;確定所述多條下行指令響應時間的第一數據分佈特徵;根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間,也即對歷史下行指令響應時間進行分析,確定多條下行指令響應時間的第一數據分佈特徵,結合該第一數據分佈特徵,並根據歷史多條下行指令響應時間,即可以準確獲得適合終端的指令超時時間,保證了指令超時時間的準確性,實現了對不同終端的個性化設置。
下面將結合本發明實施例中的圖式,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。
圖1為本發明實施例提供的一種資訊確定方法一個實施例的流程圖,該方法可以包括以下幾個步驟:
101:獲取終端針對多條下行指令的響應時間。
可選地,可以是獲取終端最近多條下行指令的響應時間。
該終端即可以是指LoRaWAN網路系統中的LoRa終端,下行指令由LoRaWAN網路系統中的服務端下發至LoRa終端,該服務端可以具體是指NS,NS通過閘道器中轉下發至LoRa終端。
為了保證數據時效性,可以獲取向終端最近下發的多條下行指令的響應時間,來參與指令超時時間的確定。
作為一種可選方式,所述獲取終端針對多條下行指令的響應時間可以包括:
獲取終端針對距離當前時間第一時長內的多條下行指令的響應時間。
比如在實際應用中,第一時長可以為10天,也即選擇最近10天內下發的下行指令的響應時間。
作為另一種可選方式,所述獲取終端針對多條下行指令的響應時間可以包括:
獲取終端針對最近下發的第一數量條下行指令的響應時間。
該第一數量例如可以為100條等,也即選擇最近100條下行指令的響應時間。
其中,該預設時長以及該預設數量可以結合對數據時效性以及準確性的要求而進行實際設定,本發明不對此進行具體限制。
102:確定所述多條下行指令響應時間的第一數據分佈特徵。
103:根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間。
該指令超時時間即用於服務端判斷向所述終端下發的下行指令是否執行失敗等。
該第一數據分佈特徵可以反映所述多條下行指令響應時間的分佈情況,可以表明終端所處工作狀態,因此,結合該第一數據分佈特徵,基於該多條下行指令響應時間,即可以預測指令超時時間。第一數據分佈特徵可以採用多種方式表示,結合第一數據分佈特徵具體如何衡量終端所處工作狀態以及如何設定指令超時時間,在下面實施例中會進行詳細描述。
本實施例,可以針對不同終端確定各自對應的指令超時時間,而不採用統一的超時時間,實現了為終端自適應選擇指令超時時間的目的,保證了下行指令在該終端中的執行效率以及下行指令的可靠性,因此採用本實施例的技術方案獲得的指令超時時間更加準確。
在一個可能實現方式中,該第一數據分佈特徵可以採用該多條下行指令響應時間在不同時間區間的分佈機率表示。因此在某些實施例中,所述確定所述多條下行指令響應時間的第一數據分佈特徵可以包括:
按照第一時長將第一時間範圍劃分得到多個響應時間區間;
確定所述多條下行指令響應時間在所述多個響應時間區間的分佈機率;
所述根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間包括:
根據分佈機率滿足第一集中要求的響應時間區間,設定指令超時時間。
其中,該第一時間範圍可以基於預設最小響應時間以及預設最大響應時間確定,該預設最小響應時間例如可以為0s(秒),當然也可以是指該多條下行指令響應時間中的最小時間;該預設最大響應時間可以是指該多條下行指令響應時間中的最大時間,當然也可以是指一個預配置時間。
該第一時長可以將第一時間範圍均勻劃分為多個響應時間區間,例如第一時間範圍為0s~90s,第一時長可以為30s,則劃分得到3個響應時間區間:0s~30s、30s~60s、60s~90s。
該第一時長可以結合實際應用中對指令超時時間的準確度要求進行設定,本發明不對此進行具體限定。
多條下行指令響應時間在所述多個響應時間區間的分佈機率,可以根據每個響應時間命中的下行指令響應時間的條數與多條下行指令響應時間的總條數的比值確定。
例如多條下行指令響應時間的總條數為100條,處於0s~30s響應時間區間的下行指令響應時間為3條,則該響應時間區間對應的分佈機率為3/100=3%;處於30s~60s響應時間區間的下行指令響應時間為95條,則該響應時間區間對應的分佈機率為95/100=95%;處於60s~90s s響應時間區間的下行指令響應時間為2條,則該響應時間區間對應的分佈機率為2/100=2%。
該第一集中要求作為一種可選方式可以是指分佈機率大於第一機率閾值。因此,可選地,所述根據分佈機率滿足第一集中要求的響應時間區間,設定指令超時時間可以包括:
根據分佈機率大於第一機率閾值的響應時間區間,設定指令超時時間。
可選地,可以是將分佈機率大於第一機率閾值的響應時間區間的最大邊界時間或者對應的最大下行指令響應時間,作為指令超時時間。
例如,若30s~60s響應時間區間對應的分佈機率大於第一機率閾值,則可以將60s作為指令超時時間,也可以是將30s~60s響應時間區間命中的最大下行指令響應時間作為指令超時時間。
在實際應用中,該第一機率閾值例如可以設定為95%等。
若分佈機率大於第一機率閾值的響應時間區間包括多個時,則可以根據其中的最大響應時間區間,來設定指令超時時間。
當然,作為其它可實現方式,還可以是根據分佈機率最大的響應時間區間,設定指令超時時間。將最大響應時間區間的最大邊界時間或者對應的最大下行指令響應時間,作為指令超時時間
作為一種可選方式,若任意響應時間區間的分佈機率均不滿足所述第一集中要求,則可以將預定超時時間作為指令超時時間。
由上文分析可知,終端對應的下行指令響應時間分佈情況主要包括分佈集中以及分佈離散兩種,而在數據分佈集中情況下,終端對應的下行指令響應時間接近,相差較小;而在數據分佈離散情況下,終端對應的下行指令響應時間相差較大。
因此,若存在分佈機率滿足第一集中要求的響應時間區間,可以認為該多條下行指令響應時間的數據分佈集中,且數據集中在該分佈機率滿足第一集中要求的響應時間區間,因此,即可以利用該響應時間區間來設定指令超時時間;而如果不存在分佈機率滿足第一集中要求的響應時間區間,則可以認為該多條下行指令響應時間的數據分佈離散,結合上文分析可知,若數據分佈離散,終端在該工作狀態下的下行指令響應時間相差較大,不具有規律性,此時即可以直接採用預定超時時間作為指令超時時間。
為了適應上報週期較長的終端,該預定超時時間可以設置的比較大,例如24小時等。
作為另一種可選方式,由於終端會向服務端上報上行數據,終端處於立即響應模式時,上行數據可以是指業務數據,也可以是指針對下行指令的應答指令;終端處於業務上報模式時,應答指令會攜帶在業務數據中進行上報,因此上行數據可以是指業務數據,也可以包括業務數據以及應答指令。
終端上報的上行數據之間存在時間間隔,也即上行數據上報間隔,在終端處於業務上報模式且週期性上報時,該上行數據上報間隔也即是指上報週期。
由上文分析可知,終端週期性上報且處於工作模式A時,下行指令響應時間與上報週期接近;終端週期性上報且處於工作模式B或C時,最長下行指令響應時間與上報週期接近。因此,在某些場景下,上行數據上報間隔也即等於下行指令響應時間。據此,若任意響應時間區間的分佈機率均未滿足所述第一集中要求,發明人想到,也可以結合上行數據上報間隔來預測指令超時時間。
因此,在某些實施例中,所述方法還可以包括:
若任意響應時間區間的分佈機率均未滿足所述第一集中要求,獲取所述終端的多個上行數據上報間隔;
確定所述多個上行數據上報間隔的第二數據分佈特徵;
根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
可選地,可以是獲取所述終端的最近多個上行數據上報間隔。
其中,若任意響應時間區間的分佈機率均未滿足所述第一集中要求,獲取所述終端的多個上行數據上報間隔可以是若任意響應時間區間的分佈機率均未滿足第一集中要求,獲取所述終端的最近大於預設間隔時長的多個上行數據上報間隔。
也即對上行數據上報間隔進行篩選,小於預設間隔時長的上行數據上報間隔可以認為是終端重傳操作導致,在LoRaWAN的協議規範中,終端重傳間隔通常較小,例如為10s,對於重傳操作生成的上行數據上報間隔不太可能是下行指令響應時間,因此可以只選擇大於預設間隔時長的上行數據上報間隔參與指令超時時間的確定。
其中,該多個上行數據上報間隔可以是距離當前時間第二預設時長內的多個上行數據上報間隔,或者最近生成的第二數量個上行數據上報間隔。
可選地,該第二數據分佈特徵可以採用該多個上行數據上報間隔在不同時間區間的分佈機率表示。因此,在某些實施例中,所述確定所述多個上行數據上報間隔的第二數據分佈特徵可以包括:
按照第二時長將第二時間範圍劃分得到多個上報時間區間;
確定所述多條下行指令響應時間在所述多個上報時間區間的分佈機率;
所述根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間。
其中,該第二時長例如可以為200s,可以將第二時間範圍均勻劃分為多個上報時間區間。
該第二時間範圍可以基於預設最小間隔時間以及預設最大間隔時間確定,該預設最小間隔時間例如可以為0s,當然也可以是指該多個上行數據上報間隔中的最小間隔時間;該預設最大間隔時間可以是指該多個上行數據上報間隔中的最大間隔時間,當然也可以是指預配置的一個時間。
該第二集中要求作為一種可選方式可以是指分佈機率大於第二機率閾值。因此,可選地,所述根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間可以包括:
將分佈機率大於第二機率閾值的上報時間區間的最大邊界時間或者對應的最大上行數據上報間隔,作為指令超時時間。
在實際應用中,該第二機率閾值例如可以設定為70%。
若分佈機率大於第二機率閾值的上報時間區間包括多個時,則可以根據其中的最大上報時間區間,來設定指令超時時間。
當然,作為其它可實現方式,還可以是根據分佈機率最大的上報時間區間,設定指令超時時間,將該最大上報時間區間的最大邊界時間值或者對應的最大上行數據上報間隔,作為指令超時時間。
此外,在某些實施例中,若任意上報時間區間的分佈機率均未滿足所述第二集中要求,則可以將預定超時時間作為指令超時時間。
由於可以將上行數據上報間隔作為下行指令響應時間使用,因此,若存在分佈機率滿足第二集中要求的上報時間區間,則可以認為該多個上行數據上報間隔的數據分佈集中,因此可以利用該上報時間區間來設定指令超時時間;而如果不存在分佈機率滿足第二集中要求的上報時間區間,則可以認為該多個上行數據上報間隔的數據分佈離散,此時即可以直接採用預定超時時間作為指令超時時間。
圖2示出了本發明實施例提供的一種資訊確定方法又一個實施例的流程圖,該方法可以包括以下幾個步驟:
201:獲取終端針對最近多條下行指令的響應時間。
202:按照第一時長將第一時間範圍劃分得到多個響應時間區間。
203:確定所述多條下行指令響應時間在所述多個響應時間區間的分佈機率。
204:判斷是否存在分佈機率滿足第一集中要求的響應時間區間,若是,執行步驟205;若否,執行步驟206;
205:根據分佈機率滿足第一集中要求的響應時間區間,設定指令超時時間。
206:獲取所述終端的最近多個上行數據上報間隔。
207:按照第二時長將第二時間範圍劃分得到多個上報時間區間。
208:確定所述多條下行指令響應時間在所述多個上報時間區間的分佈機率。
209:判斷是否存在分佈機率滿足第二集中要求的上報時間區間,若是,執行步驟210,若否,執行步驟211。
210:根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間。
211:將預定超時時間作為指令超時時間。
此外,作為又一個實施例,該第二數據分佈特徵也可以採用多個上行數據上報間隔的第二離散程度表示。該第二離散程度例如可以是指多個上行數據上報間隔的方差或者標準差。
因此,在某些實施例中,確定所述多個上行數據上報間隔的第二數據分佈特徵可以包括:
確定所述多個上行數據上報間隔的第二離散程度;
所述結合所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間可以包括:
計算所述多個上行數據上報間隔的平均間隔時間;
利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。
該第二離散程度也即表示多個上行數據上報間隔偏離平均間隔時間的偏離程度。
其中,利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間,可以是將第二離散程度和伸縮係數的乘積,疊加在平均間隔時間上來獲得該指令超時時間,該伸縮係數大於1,可以結合實際應用情況進行具體設定。
在某些實施例中,所述計算所述多個上行數據上報間隔的平均間隔時間可以是:
如果所述第二離散程度未滿足第二離散條件,計算所述多個上行數據上報間隔的平均間隔時間。
該第二離散程度可以是指多個上行數據上報間隔的方差,該第二離散條件例如可以是該多個上行數據上報間隔的方差大於第二離散閾值。
若第二離散程度未滿足第二離散條件,可以認為該多個上行數據上報間隔與平均間隔時間偏離較小,該多個上行數據上報間隔的數據分佈集中,此時,即可以利用第二離散程度以及平均間隔時間,來計算獲得指令超時時間。可以是將第二離散程度和伸縮係數的乘積,疊加在平均間隔時間上來獲得該指令超時時間,該伸縮係數大於1,可以結合實際應用情況進行具體設定。
則所述方法還可以包括:
如果所述第二離散程度滿足所述第二離散條件,將預定超時時間作為指令超時時間。
也即若第二離散程度滿足第二離散條件,可以認為該多個上行數據上報間隔與平均間隔時間偏離較大,該多個上行數據上報間隔的數據分佈離散,此時,可以直接將預定超時時間作為指令超時時間。
此外,在某些實施例中,所述利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間可以是:
如果所述第二離散程度滿足第二離散條件,利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。
所述方法還可以包括:
如果所述第二離散程度未滿足第二離散條件,將所述平均間隔時間作為指令超時時間。
由於第二離散程度滿足第二離散條件,可以認為該多個上行數據上報間隔與平均間隔時間偏離較大,而第二離散程度即可以是指多個上行數據上報間隔與平均間隔時間的偏離程度,因此,在平均間隔時間基礎上補償上該第二離散程度,可以平衡多個上行數據上報間隔與平均間隔時間的偏離程度,獲得結果即可以作為指令超時時間。
而第二離散程度未滿足第二離散條件,可以認為該多個上行數據上報間隔與平均間隔時間偏離較小,該多個上行數據上報間隔的數據分佈集中,第二離散程度可以忽略不計,因此,可以直接將平均間隔時間作為指令超時時間。
在又一個可能實現方式中,該第一數據分佈特徵可以採用該多條下行指令響應時間的離散程度表示。因此在某些實施例中,所述確定所述多條下行指令響應時間的第一數據分佈特徵可以包括:
確定所述多條下行指令響應時間的第一離散程度;
所述根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間包括:
計算所述多條下行指令響應時間的平均響應時間;
利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間。
其中,該第一離散程度可以是指該多條下行指令響應時間的方差,因此,該第一離散程度可以按照如下方式計算獲得:;
其中,為方差,表示第一離散程度,X為下行指令響應時間,μ為平均響應時間,N表示該多條下行質量響應時間的總條數。
當然,該第一離散程度還可以是指多個下行指令響應時間的標準差、極差等。該第一離散程度表示多個下行指令響應時間偏離平均響應時間的偏離程度。
其中,利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間,可以是將第一離散程度和伸縮係數的乘積,疊加至平均響應時間上來獲得該指令超時時間,該伸縮係數大於1,可以結合實際應用情況進行具體設定。如下述公式所述:;
其中,M表示指令超時時間,α為大於1的伸縮係數。
其中,在某些實施例中,所述計算所述多條下行指令響應時間的平均響應時間可以包括:
如果所述第一離散程度未滿足第一離散條件,計算所述多條下行指令響應時間的平均響應時間。
其中,所述第一離散程度包括所述多條下行指令響應時間的方差;
所述第一離散條件可以為所述多條下行指令響應時間的方差大於第一離散閾值。
若第一離散程度為滿足第一離散條件,可以認為該多個下行指令響應時間與平均響應時間偏離較小,該多個下行指令響應時間的數據分佈集中,此時,即可以利用第一離散程度以及平均響應時間,來計算獲得指令超時時間。
作為一種可選方式,如果所述第一離散程度滿足第一離散條件,所述方法還可以包括:
將預定超時時間作為指令超時時間。
也即若第一離散程度滿足第一離散條件,可以認為該多個下行指令響應時間與平均響應時間偏離較大,該多個上行數據上報間隔的數據分佈離散,此時,可以直接將預定超時時間作為指令超時時間。
此外,作為又一種可選方式,如果所述第一離散程度滿足第一離散條件,所述方法還可以包括:
獲取所述終端的多個上行數據上報間隔;
確定所述多個上行數據上報間隔的第二數據分佈特徵;
根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
由上文分析可知,在某些場景下,上行數據上報間隔也即等於下行指令響應時間,因此,在第一離散程度滿足第一離散條件時,可以結合上行數據上報間隔來預測指令超時時間。
可選地,如果所述第一離散程度滿足第一離散條件,獲取所述終端的多個上行數據上報間隔可以是如果所述第一離散程度滿足第一離散條件,獲取所述終端的最近大於預設間隔時長的多個上行數據上報間隔。
作為一種可選方式,該第二數據分佈特徵可以採用多個上行數據上報間隔的第二離散程度表示。該第二離散程度例如可以是指多個上行數據上報間隔的方差或者標準差。
因此,所述確定所述多個上行數據上報間隔的第二數據分佈特徵可以包括:
確定所述多個上行數據上報間隔的第二離散程度;
所述根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間包括:
計算所述多個上行數據上報間隔的平均間隔時間;
利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。
該第二離散程度也即表示多個上行數據上報間隔偏離平均間隔時間的偏離程度。
其中,利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間,可以是將第二離散程度和伸縮係數的乘積,疊加在平均間隔時間上來獲得該指令超時時間,該伸縮係數大於1,可以結合實際應用情況進行具體設定。
在某些實施例中,所述計算所述多個上行數據上報間隔的平均間隔時間可以是:
如果所述第二離散程度未滿足第二離散條件,計算所述多個上行數據上報間隔的平均間隔時間。
則所述方法還可以包括:
如果所述第二離散程度滿足所述第二離散條件,將預定超時時間作為指令超時時間。
此外,在某些實施例中,所述計算所述多個上行數據上報間隔的平均間隔時間可以是:
如果所述第二離散程度滿足第二離散條件,計算所述多個上行數據上報間隔的平均間隔時間。
所述方法還可以包括:
如果所述第二離散程度未滿足第二離散條件,將所述平均間隔時間作為指令超時時間。
如圖3所示,為本發明實施例提供的一種資訊確定方法又一個實施例的流程圖,該方法可以包括以下幾個步驟:
301:獲取終端針對最近多條下行指令的響應時間。
302:確定所述多條下行指令響應時間的第一離散程度。
303:判斷所述第一離散程度是否滿足第一離散條件,若否,執行步驟304,若是,執行步驟306。
304:計算所述多條下行指令響應時間的平均響應時間。
305:利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間。
306:獲取所述終端的最近多個上行數據上報間隔。
307:確定所述多個上行數據上報間隔的第二離散程度。
308:判斷所述第二離散程度是否滿足第二離散條件,若否,執行步驟309,若是,執行步驟311。
309:計算所述多個上行數據上報間隔的平均間隔時間。
310:利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。
311:將預定超時時間作為指令超時時間。
當然,作為又一個實施例,也可以是在第二離散程度滿足第二離散條件時,利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。而在第二離散程度不滿足第二離散條件時,直接將平均間隔時間作為指令超時時間。
作為又一個實施例,所述利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間包括:
如果所述第一離散程度滿足第一離散條件,利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間;
所述方法還包括:
如果所述第一離散程度未滿足所述第一離散條件,將平均響應時間作為指令超時時間。
由於第一離散程度滿足第一離散條件,可以認為多個下行指令響應時間的數據分佈離散,與平均響應時間的偏離較大,而第一離散程度即是指多個下行指令響應時間與平均響應時間的偏離程度,因此在平均響應時間的基礎上補償上該第一離散程度,可以平衡多個下行指令響應時間與平均響應時間的偏離程度,獲得結果即可以作為指令超時時間。
而第一離散程度未滿足第一離散條件,可以認為該多個下行指令響應時間與平均響應時間偏離較小,該多個下行指令響應時間的數據分佈集中,第一離散程度可以忽略不計,因此,可以直接將平均響應時間作為指令超時時間。
作為另一種可選方式,該第二數據分佈特徵也可以採用該多個上行數據上報間隔在不同時間區間的分佈機率表示。因此,在某些實施例中,所述確定所述多個上行數據上報間隔的第二數據分佈特徵可以包括:
按照第二時長將第二時間範圍劃分得到多個上報時間區間;
確定所述多條下行指令響應時間在所述多個上報時間區間的分佈機率;
所述根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間。
該第二集中要求作為一種可選方式可以是指分佈機率大於第二機率閾值。因此,可選地,所述根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間可以包括:
將分佈機率大於第二機率閾值的上報時間區間的最大邊界時間或者對應的最大上行數據上報間隔,作為指令超時時間。
此外,在某些實施例中,若任意上報時間區間的分佈機率均未滿足所述第二集中要求,則可以將預定超時時間作為指令超時時間。
其中,由上文分析可知,終端處於立即響應模式下時,下行指令響應時間較小,且不同下行指令的響應時間接近,下行指令響應時間分佈比較集中。而終端處於業務上報模式下時,下行指令響應時間較大,而且與上報週期相關。
因此在某些實施例中,所述方法還可以包括:
基於所述多條下行指令響應時間,判斷所述終端是否處於立即響應模式;
若是,執行所述確定所述多條下行指令響應時間的第一數據分佈特徵的步驟;
若否,獲取所述終端的多個上行數據上報間隔;
確定所述多個上行數據上報間隔的第二數據分佈特徵;
根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
其中,利用多個上行數據上報間隔預測指令超時時間的方式可以參見上文實施例中所述,在此不再贅述。
如果終端處於週期上報模式,上行數據上報間隔也即是指上報週期。
可選地,所述基於所述多條下行指令響應時間,判斷所述終端是否處於立即響應模式可以包括:
判斷所述多條下行指令響應時間是否均小於第一時間閾值;其中,若所述多條下行指令響應時間均小於第一時間閾值,確定所述終端處於立即響應模式。
此外,由上文分析可知,終端對應的下行指令響應時間分佈情況主要包括分佈集中以及分佈離散兩種,而在數據分佈集中情況下,終端對應的下行指令響應時間接近,相差較小;而在數據分佈離散情況下,終端對應的下行指令響應時間相差較大。
因此,作為又一個實施例,所述根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間可以包括:
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,則可以基於所述多條下行指令響應時間,設定指令超時時間;
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈離散,則可以將預定超時時間作為指令超時時間。
其中,數據分佈集中表明終端可能處於立即響應模式,或者週期性業務上報模式且處於工作模式A下,終端處於數據分佈集中對應的工作狀態下,下行指令響應時間相接近,因此可以利用歷史的該多條下行指令響應時間,來設定指令超時時間。
而數據分佈離散表明終端可能處於非週期業務上報模式、或者週期上報模式且處於工作模式B/C下,終端處於數據分佈離散對應的工作狀態下,下行指令響應時間不具備規律性,且相差較大,此時則可以直接選擇預定超時時間作為指令超時時間。
為了適應上報週期較長的終端,該預定超時時間可以設置的比較大,例如24小時等。
其中,如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,基於所述多條下行指令響應時間,設定指令超時時間可以有多種實現方式:
比如,可以將多條下行指令響應時間的平均響應時間作為指令超時時間;
又如,也可以首先計算多條下行指令響應時間的第一離散程度,基於該第一離散程度再對平均響應時間進行補償,獲得指令超時時間。因此,在某些實施例中,該第一數據分佈特徵可以採用多條下行指令響應時間的第一離散程度表示,所述確定所述多條下行指令響應時間的第一數據分佈特徵可以包括:
確定所述多條下行指令響應時間的第一離散程度;
所述如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,基於所述多條下行指令響應時間,設定指令超時時間可以包括:
計算所述多條下行指令響應時間的平均響應時間;
利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間。
其中,第一離散程度、補償計算方式等可以參見上文相應實施例中所述,在此不再贅述。
又如,也可以分析多條下行指令響應的數據集中區域,基於該數據集中區域對應的時間範疇來設定指令超時時間。因此,在某些實施例中,該第一數據分佈特徵可以採用多條下行指令響應時間在不同時間區間的分佈機率表示。所述確定所述多條下行指令響應時間的第一數據分佈特徵可以包括:
按照第一時長將第一時間範圍劃分得到多個響應時間區間;
確定所述多條下行指令響應時間在所述多個響應時間區間的分佈機率;
則所述如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,基於所述多條下行指令響應時間,設定指令超時時間可以包括:
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,按照第一時長將第一時間範圍劃分得到多個響應時間區間;
確定所述多條下行指令響應時間在所述多個響應時間區間的分佈機率;
根據分佈機率滿足第一集中要求的響應時間區間,設定指令超時時間。
其中,上述實現方案中相同或相近步驟可以參見上文一個或多個實施例中所述,在此不再贅述。
此外,如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈離散,還可以利用歷史上行數據上報間隔來預測指令確定時間。
因此,在某些實施例中,所述根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間包括:
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,基於所述多條下行指令響應時間,設定指令超時時間;
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈離散,獲取所述終端的多個上行數據上報間隔;
確定所述多個上行數據上報間隔的第二數據分佈特徵;
根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
其中,利用多個上行數據上報間隔設定所述終端的指令超時時間的具體方式可以參見上文相應實施例中所述,在此不再贅述。
當然,作為又一個實施例,如圖4所示的資訊確定方法中,該方法可以包括以下幾個步驟:
401:獲取終端針對多條下行指令的響應時間。
可選地,可以是獲取終端針對最近多條下行指令的響應時間。
402:確定所述多條下行指令響應時間的第一數據分佈特徵。
403:如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,基於所述多條下行指令響應時間,設定指令超時時間。
404:如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈離散,獲取所述終端的多個上行數據上報間隔。
可選地,可以是獲取所述終端的最近多個上行數據上報間隔。
405:確定所述多個上行數據上報間隔的第二數據分佈特徵。
406:如果基於所述第二數據分佈特徵確定所述多個上行數據上報間隔的數據分佈集中,基於所述多個上行數據上報間隔,設定指令超時時間。
406:如果基於所述第二數據分佈特徵確定所述多個上行數據上報間隔的數據分佈離散,將預定超時時間作為指令超時時間。
其中,如果基於所述第二數據分佈特徵確定所述多個上行數據上報間隔的數據分佈集中,基於所述多個上行數據上報間隔,設定指令超時時間,例如可以將多個上行數據上報間隔的平均間隔時間作為指令超時時間;
又如,也可以首先計算多個上行數據上報間隔的第二離散程度,基於該第二離散程度再對平均間隔時間進行補償,獲得指令超時時間。
又如,也可以分析多個上行數據上報間隔的數據集中區域,基於該數據集中區域對應的時間範疇來設定指令超時時間。因此,在某些實施例中,所述如果基於所述第二數據分佈特徵確定所述多個上行數據上報間隔的數據分佈集中,基於所述多個上行數據上報間隔,設定指令超時時間可以包括:
按照第二時長將第二時間範圍劃分得到多個上報時間區間;
確定所述多條下行指令響應時間在所述多個上報時間區間的分佈機率;
根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間。
可選地,可以是將將分佈機率大於第二機率閾值的上報時間區間的最大邊界時間或者對應的最大上行數據上報間隔,作為指令超時時間。
圖5為本發明實施例提供的一種資訊確定方法又一個實施例的流程圖,該方法可以包括以下幾個步驟:
501:獲取所述終端的多個上行數據上報間隔。
可選地,可以是獲取所述終端的最近多個上行數據上報間隔。
502:確定所述多個上行數據上報間隔的第二數據分佈特徵。
503:根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
由於終端會向服務端上報上行數據,終端處於立即響應模式時,上行數據可以是指業務數據,也可以是指針對下行指令的應答指令;終端處於業務上報模式時,應答指令會攜帶在業務數據中進行上報,因此上行數據可以是指業務數據,也可以包括業務數據以及應答指令。
終端上報的上行數據之間存在時間間隔,也即上行數據上報間隔,在終端處於業務上報模式且週期性上報時,該上行數據上報間隔也即是指上報週期。由上文分析可知,終端週期性上報且處於工作模式A時,下行指令響應時間與上報週期接近;終端週期性上報且處於工作模式B或C時,最長下行指令響應時間與上報週期接近。
因此,在某些場景下,上行數據上報間隔也即等於下行指令響應時間,且在某些場景下,上行數據上報間隔也即等於上報週期,因此利用上行數據上報間隔可以預測指令超時時間,可以保證指令超時時間的準確性
需要說明的是,本實施例中與上述一個或多個實施例的相同或相似步驟,在上述一個或多個實施例中已經進行了詳細描述,此處將不做詳細闡述說明。
此外,在某些實施例中,所述方法還可以包括:
基於所述多個上行數據上報間隔,判斷所述終端是否處於業務上報模式;
若是,執行所述確定所述多個上行數據上報間隔的第二數據分佈特徵的步驟;
若否,獲取所述終端針對多條下行指令的響應時間;
確定所述多條下行指令響應時間的第一數據分佈特徵;
根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間。
若所述終端未處於業務上報模式,也即處於立即響應模式,此時即可以利用多條下行指令的響應時間來設定指令超時時間,具體實現方式在上述一個或多個實施例中已經進行了詳細描述,此處將不做詳細闡述說明。
其中,所述基於所述多個上行數據上報間隔,判斷所述終端是否處於業務上報模式可以包括:
判斷所述多個上行數據上報間隔是否均大於第二時間閾值;其中,若所述多個上行數據上報間隔均大於第二時間閾值,確定所述終端處於業務上報模式。
此外,本發明實施例還提供了一種資訊判斷方法,如圖6所示,該方法可以包括以下幾個步驟:
601:向終端發送下行指令。
602:獲取所述終端對應的指令超時時間。
其中,所述指令超時時間的確定具體可以參見上述一個或多個實施例中所述,在此不再贅述。
需要說明的是,步驟601以及步驟602操作並不僅限定於本實施例的執行步驟,步驟602可以預先指令,也可以與步驟601同時執行,本發明不對此進行具體限定。
603:基於所述指令超時時間判斷所述下行指令是否執行失敗。
其中,若下行指令執行失敗,則可以執行重傳操作等,與現有技術相同在此不再贅述。
在一個實際應用中,本發明的技術方案可以應用於基於LoRaWAN網路系統實現的通信場景中,在LoRaWAN網路系統中,本發明實施例的終端也即具體是指LoRa終端,下行指令為服務端下發至LoRa終端,
因此,作為又一個實施例,本發明實施例還提供了一種資訊確定方法,該實施例中的相同或相似步驟可以參見圖1~圖4所示的任一實施例,該方法可以包括:
獲取LoRa終端針對多條下行指令的響應時間;
確定所述多條下行指令響應時間的第一數據分佈特徵;
根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述LoRa終端的指令超時時間。
作為又一個實施例,本發明實施例還提供了一種資訊確定方法,該實施例中的相同或相似步驟可以參見圖5所示實施例,可以包括:
獲取LoRa終端的多個上行數據上報間隔;
確定所述多個上行數據上報間隔的第二數據分佈特徵;
根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述LoRa終端的指令超時時間。
作為又一個實施例,本發明實施例還提供了一種資訊判斷方法,該實施例中的相同或相似步驟可以參見圖6所示實施例,該方法可以包括:
向LoRa終端發送下行指令;
獲取所述LoRa終端對應的指令超時時間;其中,所述指令超時時間為基於所述LoRa終端針對多條下行指令的響應時間以及所述多條下行指令響應時間的第一數據分佈特徵確定,或者基於所述LoRa終端多個上行數據上報間隔及所述多個上行數據上報間隔的第二數據分佈特徵確定;
基於所述指令超時時間判斷所述下行指令是否執行失敗。
圖7為本發明實施例提供的一種資訊確定裝置一個實施例的結構示意圖,該裝置可以包括:
響應時間獲取模組701,用於獲取終端針對多條下行指令的響應時間;
第一特徵確定模組702,用於確定所述多條下行指令響應時間的第一數據分佈特徵;
第一時間確定模組703,用於根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間。
其中,在LoRaWAN通信場景中,所述響應時間獲取模組即具體是獲取LoRa終端針對多條下行指令的響應時間;
所述第一時間確定模組可以具體用於根據所述多條下行指令響應時間及所述第一數據分佈特徵,確定所述LoRa終端的指令超時時間。
在某些實施例中,所述第一特徵確定模組具體用於按照第一時長將第一時間範圍劃分得到多個響應時間區間;確定所述多條下行指令響應時間在所述多個響應時間區間的分佈機率;
所述第一時間確定模組具體用於根據分佈機率滿足第一集中要求的響應時間區間,設定指令超時時間。
可選地,所述第一時間確定模組可以具體是將分佈機率大於第一機率閾值的響應時間區間的最大邊界時間或者對應的最大下行指令響應時間,作為指令超時時間。
此外,該第一時間確定模組還用於若任意響應時間區間的分佈機率均未滿足所述第一集中要求,將預定超時時間作為指令超時時間。
在某些實施例中,該裝置還可以包括:
第一時間獲取模組,用於若任意響應時間區間的分佈機率均未滿足所述集中要求,獲取所述終端的多個上行數據上報間隔;
第二特徵確定模組,用於確定所述多個上行數據上報間隔的第二數據分佈特徵;
第二時間確定模組,用於根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
在某些實施例中,所述第一時間獲取模組可以具體用於若任意響應時間區間的分佈機率均未滿足所述第一集中要求,獲取所述終端的最近大於預設間隔時長的多個上行數據上報間隔。
在某些實施例中,所述第二特徵確定模組可以具體用於按照第二時長將第二時間範圍劃分得到多個上報時間區間;確定所述多條下行指令響應時間在所述多個上報時間區間的分佈機率;
所述第二時間確定模組具體用於根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間。
可選地,該第二時間確定模組可以是將分佈機率大於第二機率閾值的上報時間區間的最大邊界時間或者對應的最大上行數據上報間隔,作為指令超時時間。
在某些實施例中,該第二時間確定模組還用於若任意上報時間區間的分佈情況均未滿足所述第二集中要求,將預定超時時間作為指令超時時間。
在某些實施例中,所述第一特徵確定模組可以具體用於確定所述多條下行指令響應時間的第一離散程度;
所述第一時間確定模組可以具體用於計算所述多條下行指令響應時間的平均響應時間;利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間。
在某些實施例中,所述第一時間確定模組計算所述多條下行指令響應時間的平均響應時間可以是在如果所述第一離散程度未滿足第一離散條件,計算所述多條下行指令響應時間的平均響應時間。
該第一時間確定模組還用於如果所述第一離散程度滿足所述第一離散條件,將預定超時時間作為指令超時時間。
在某些實施例中,所述第一時間確定模組利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間可以具體是:
如果所述第一離散程度滿足第一離散條件,利用所述第一離散程度對所述平均響應時間進行時間補償,獲得指令超時時間;
如果所述第一離散程度未滿足所述第一離散條件,將平均響應時間作為指令超時時間。
其中,該第一離散條件為所述多條下行指令響應時間的方差大於第一離散閾值。
在某些實施例中,該裝置還可以包括:
第二時間獲取模組,用於如果所述第一離散程度滿足所述第一離散條件,獲取所述終端的多個上行數據上報間隔;
第二特徵確定模組,用於確定所述多個上行數據上報間隔的第二數據分佈特徵;
第二時間確定模組,用於根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
在某些實施例中,所述第二特徵確定模組可以具體用於確定所述多個上行數據上報間隔的第二離散程度;
所述第二時間確定模組可以具體用於計算所述多個上行數據上報間隔的平均間隔時間;利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。
在某些實施例中,所述第二時間確定模組可以是在如果所述第二離散程度未滿足第二離散條件,計算所述多個上行數據上報間隔的平均間隔時間,利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。
此外,所述第二時間確定模組還用於如果所述第二離散程度滿足所述第二離散條件,將預定超時時間作為指令超時時間。
在某些實施例中,所述響應時間獲取模組可以具體用於獲取終端針對距離當前時間第一時長內的多條下行指令的響應時間;或者,
獲取終端針對最近下發的第一數量條下行指令的響應時間。
在某些實施例中,該裝置還可以包括:
第一模式判斷模組,用於基於所述多條下行指令響應時間,判斷所述終端是否處於立即響應模式;若判斷結果為是,則觸發第一特徵確定模組執行。
第三時間獲取模組,用於在第一模式判斷模組為否時,獲取所述終端的多個上行數據上報間隔;
第二特徵確定模組,用於確定所述多個上行數據上報間隔的第二數據分佈特徵;
第二時間確定模組,用於根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
可選地,所述第一模式判斷模組可以具體用於判斷所述多條下行指令響應時間是否均小於第一時間閾值;其中,若所述多條下行指令響應時間均小於第一時間閾值,確定所述終端處於立即響應模式。
在某些實施例中,所述第一時間確定模組可以具體用於:
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,基於所述多條下行指令響應時間,設定指令超時時間;
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈離散,將預定超時時間作為指令超時時間。
在某些實施例中,所述第一時間確定模組可以具體用於:
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈集中,基於所述多條下行指令響應時間,設定指令超時時間;
如果基於所述第一數據分佈特徵確定所述多條下行指令響應時間的數據分佈離散,獲取所述終端的多個上行數據上報間隔;
確定所述多個上行數據上報間隔的第二數據分佈特徵;
根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
其中,所述根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間可以包括:
如果基於所述第二數據分佈特徵確定所述多個上行數據上報間隔的數據分佈集中,基於所述多個上行數據上報間隔,設定指令超時時間;
如果基於所述第二數據分佈特徵確定所述多個上行數據上報間隔的數據分佈離散,將預定超時時間作為指令超時時間。
圖7所示資訊確定裝置可以執行圖1~圖3以及圖5所示任一實施例的資訊確定方法,其實現原理和技術效果不再贅述。對於上述實施例中的資訊確定裝置其中各個模組、單元執行操作的具體方式已經在有關該方法的實施例中進行了詳細描述,此處將不做詳細闡述說明。
在一個可能的設計中,圖7所示實施例的資訊確定裝置可以實現為一計算設備,在一個實際應用中該計算設備即可以為NS,當然也可以是獨立設備,其獲得的指令超時時間用於發送至NS,由NS據此進行下行指令的判斷。
如圖8所示,該計算設備可以包括儲存組件801以及處理組件802;
所述儲存組件801儲存一條或多條電腦指令,其中,所述一條或多條電腦指令供所述處理組件802調用執行。
所述處理組件802用於:
獲取終端針對多條下行指令的響應時間;
確定所述多條下行指令響應時間的第一數據分佈特徵;
根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間。
其中,處理組件802可以包括一個或多個處理器來執行電腦指令,以完成上述的方法中的全部或部分步驟。當然處理組件也可以為一個或多個應用專用積體電路(ASIC)、數位信號處理器(DSP)、數位信號處理設備(DSPD)、可程式化邏輯器件(PLD)、現場可程式化閘陣列(FPGA)、控制器、微控制器、微處理器或其他電子元件實現,用於執行上述方法。
儲存組件801被配置為儲存各種類型的數據以支持在計算設備中的操作。儲存組件可以由任何類型的揮發性或非揮發性儲存設備或者它們的組合實現,如靜態隨機存取記憶體(SRAM),電可抹除可程式化唯讀記憶體(EEPROM),可抹除可程式化唯讀記憶體(EPROM),可程式化唯讀記憶體(PROM),唯讀記憶體(ROM),磁記憶體,快閃記憶體,磁碟或光碟。
當然,計算設備必然還可以包括其他部件,例如輸入/輸出介面、通信組件等,在此不再贅述。
本發明實施例還提供了一種電腦可讀取儲存介質,儲存有電腦程式,所述電腦程式被電腦執行時可以實現上述圖1~圖3以及圖5所示任一實施例的資訊確定方法。
圖9為本發明實施例提供的一種資訊確定裝置又一個實施例的結構示意圖,該裝置可以包括:
間隔時間獲取模組901,用於獲取所述終端的多個上行數據上報間隔;
第二特徵確定模組902,用於確定所述多個上行數據上報間隔的第二數據分佈特徵;
第二時間確定模組903,用於根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
其中,在LoRaWAN通信場景中,所述間隔時間獲取模組即具體是獲取LoRa終端的多個上行數據上報間隔;
所述第二時間確定模組可以具體用於根據所述多個上行數據上報間隔及所述第二數據分佈特徵,確定所述LoRa終端的指令超時時間。
在某些實施例中,所述第二特徵確定模組具體用於按照第二時長將第二時間範圍劃分得到多個上報時間區間;確定所述多條下行指令響應時間在所述多個上報時間區間的分佈機率;
所述第二時間確定模組具體用於根據分佈機率滿足第二集中要求的上報時間區間,設定指令超時時間。
可選地,所述第二時間確定模組可以具體用於將分佈機率大於第二機率閾值的上報時間區間的最大邊界時間或者對應的最大上行數據上報間隔,作為指令超時時間。
在某些實施例中,所述第二時間確定模組還用於若任意上報時間區間的分佈情況均未滿足所述第二集中要求,將預定超時時間作為指令超時時間。
在某些實施例中,所述第二特徵確定模組可以具體用於確定所述多個上行數據上報間隔的第二離散程度;
在某些實施例中,所述第二時間確定模組可以具體用於計算所述多個上行數據上報間隔的平均間隔時間;利用所述第二離散程度對所述平均間隔時間進行時間補償,獲得指令超時時間。
在某些實施例中,所述第二時間確定模組計算所述多個上行數據上報間隔的平均間隔時間可以是如果所述第二離散程度未滿足第二離散條件,計算所述多個上行數據上報間隔的平均間隔時間。
在某些實施例中,所述第二時間確定模組還用於如果所述第二離散程度滿足所述第二離散條件,將預定超時時間作為指令超時時間。
在某些實施例中,該裝置還可以包括:
第二模式判斷模組,用於基於所述多個上行數據上報間隔,判斷所述終端是否處於業務上報模式;若判斷結果為是,則觸發所述第二特徵確定模組執行;
第四時間獲取模組,用於在所述第二模式判斷模組為否時,獲取所述終端針對多條下行指令的響應時間;
第一特徵確定模組,用於確定所述多條下行指令響應時間的第一數據分佈特徵;
第一時間確定模組,用於根據所述多條下行指令響應時間及所述第一數據分佈特徵,設定所述終端的指令超時時間。
在某些實施例中,該第二模式判斷模組可以具體用於判斷所述多個上行數據上報間隔是否均大於第二時間閾值;其中,若所述多個上行數據上報間隔均大於第二時間閾值,確定所述終端處於業務上報模式。
圖9所示資訊確定裝置可以執行圖5所示實施例的資訊確定方法,其實現原理和技術效果不再贅述。對於上述實施例中的資訊確定裝置其中各個模組、單元執行操作的具體方式已經在有關該方法的實施例中進行了詳細描述,此處將不做詳細闡述說明。
在一個可能的設計中,圖9所示實施例的資訊確定裝置可以實現為一計算設備,在一個實際應用中該計算設備即可以為NS,當然也可以是獨立設備,其獲得的指令超時時間用於發送至NS,由NS據此進行下行指令的判斷。
如圖10所示,該計算設備可以包括儲存組件1001以及處理組件1002;
所述儲存組件1001儲存一條或多條電腦指令,其中,所述一條或多條電腦指令供所述處理組件1002調用執行。
獲取所述終端的多個上行數據上報間隔;
確定所述多個上行數據上報間隔的第二數據分佈特徵;
根據所述多個上行數據上報間隔及所述第二數據分佈特徵,設定所述終端的指令超時時間。
其中,處理組件1002可以包括一個或多個處理器來執行電腦指令,以完成上述的方法中的全部或部分步驟。當然處理組件也可以為一個或多個應用專用積體電路(ASIC)、數位信號處理器(DSP)、數位信號處理設備(DSPD)、可程式化邏輯器件(PLD)、現場可程式化閘陣列(FPGA)、控制器、微控制器、微處理器或其他電子元件實現,用於執行上述方法。
儲存組件1001被配置為儲存各種類型的數據以支持在計算設備中的操作。儲存組件可以由任何類型的揮發性或非揮發性儲存設備或者它們的組合實現,如靜態隨機存取記憶體(SRAM),電可抹除可程式化唯讀記憶體(EEPROM),可抹除可程式化唯讀記憶體(EPROM),可程式化唯讀記憶體(PROM),唯讀記憶體(ROM),磁記憶體,快閃記憶體,磁碟或光碟。
當然,計算設備必然還可以包括其他部件,例如輸入/輸出介面、通信組件等,在此不再贅述。
本發明實施例還提供了一種電腦可讀取儲存介質,儲存有電腦程式,所述電腦程式被電腦執行時可以實現上述圖5所示實施例的資訊確定方法。
圖11為本發明實施例提供的一種資訊判斷裝置又一個實施例的結構示意圖,該裝置可以包括:
指令下發模組1101,用於向終端發送下行指令;
時間獲取模組1102,用於獲取所述終端對應的指令超時時間;
其中,所述指令超時時間可以基於所述終端針對多條下行指令的響應時間以及所述多條下行指令響應時間的第一數據分佈特徵確定,或者基於所述終端多個上行數據上報間隔及所述多個上行數據上報間隔的第二數據分佈特徵確定,具體可以參見上述任一個實施例中所述,在此不再贅述。
超時判斷模組1103,用於基於所述指令超時時間判斷所述下行指令是否執行失敗。
其中,在LoRaWAN通信場景中,指令下發模組具體用於向LoRa終端發送下行指令。
所述時間獲取模組具體用於獲取所述LoRa終端對應的指令超時時間。
在一個可能的設計中,圖11所示實施例的資訊判斷裝置可以實現為一計算設備,在一個實際應用中該計算設備即可以為LoRaWAN系統中的NS,NS為與閘道器直接通信設備,下行指令由NS發送。
如圖12所示,該計算設備可以包括儲存組件1201以及處理組件1202;
所述儲存組件1201儲存一條或多條電腦指令,其中,所述一條或多條電腦指令供所述處理組件1202調用執行。
所述處理組件1202用於:
所述處理組件用於:
向終端發送下行指令;
獲取所述終端對應的指令超時時間;其中,所述指令超時時間可以基於所述終端針對多條下行指令的響應時間以及所述多條下行指令響應時間的第一數據分佈特徵確定,或者基於所述終端多個上行數據上報間隔及所述多個上行數據上報間隔的第二數據分佈特徵確定;
基於所述指令超時時間判斷所述下行指令是否執行失敗。
其中,處理組件1202可以包括一個或多個處理器來執行電腦指令,以完成上述的方法中的全部或部分步驟。當然處理組件也可以為一個或多個應用專用積體電路(ASIC)、數位信號處理器(DSP)、數位信號處理設備(DSPD)、可程式化邏輯器件(PLD)、現場可程式化閘陣列(FPGA)、控制器、微控制器、微處理器或其他電子元件實現,用於執行上述方法。
儲存組件1201被配置為儲存各種類型的數據以支持在計算設備的操作。儲存組件可以由任何類型的揮發性或非揮發性儲存設備或者它們的組合實現,如靜態隨機存取記憶體(SRAM),電可抹除可程式化唯讀記憶體(EEPROM),可抹除可程式化唯讀記憶體(EPROM),可程式化唯讀記憶體(PROM),唯讀記憶體(ROM),磁記憶體,快閃記憶體,磁碟或光碟。
當然,計算設備必然還可以包括其他部件,例如輸入/輸出介面、通信組件等。
本發明實施例還提供了一種電腦可讀取儲存介質,儲存有電腦程式,所述電腦程式被電腦執行時可以實現上述圖6所示實施例的資訊判斷方法。
所屬領域的技術人員可以清楚地瞭解到,為描述的方便和簡潔,上述描述的系統,裝置和單元的具體工作過程,可以參考前述方法實施例中的對應過程,在此不再贅述。
以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是實體上分開的,作為單元顯示的部件可以是或者也可以不是實體單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。本領域普通技術人員在不付出創造性的勞動的情況下,即可以理解並實施。
通過以上的實施方式的描述,本領域的技術人員可以清楚地瞭解到各實施方式可借助軟體加必需的通用硬體平台的方式來實現,當然也可以通過硬體。基於這樣的理解,上述技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品可以儲存在電腦可讀取儲存介質中,如ROM/RAM、磁碟、光碟等,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行各個實施例或者實施例的某些部分所述的方法。
最後應說明的是:以上實施例僅用以說明本發明的技術方案,而非對其限制;儘管參照前述實施例對本發明進行了詳細的說明,本領域的普通技術人員應當理解:其依然可以對前述各實施例所記載的技術方案進行修改,或者對其中部分技術特徵進行等同替換;而這些修改或者替換,並不使相應技術方案的本質脫離本發明各實施例技術方案的精神和範圍。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. In the description of the present invention, the scope of the patent application and some processes described in the above-mentioned drawings, there are multiple operations appearing in a specific order, but it should be clearly understood that these operations may not be in the order in which they appear in this article. Execution or parallel execution, the sequence numbers of operations such as 101, 102, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit the "first" and "second""Is a different type. The technical solution of the embodiment of the present invention is mainly applied to a communication scenario based on a LoRaWAN network system. LoRaWAN technology is widely used in industry, science and medical fields to realize wide area communication. The LoRaWAN network system is mainly composed of LoRa terminal (referred to as terminal in the corresponding explanation below), gateway and server. Of course, it can also include user terminal. The data reported by the terminal can pass through the gateway and The server is sent to the user for viewing, etc. As can be seen from the description in the background art, the data interaction between the terminal and the server is divided into uplink and downlink. For the convenience of description, in the embodiment of the present invention, the content sent by the server to the terminal can be collectively referred to as a downlink command, and the content reported by the terminal to the server Can be collectively referred to as uplink data. In the LoRaWAN protocol specification, the terminal needs to respond to the downlink command and feed back the response command, which is also reported to the server as a kind of uplink data. Among them, the server can include NS (Network server, core network server), AS (application server, application server), CS (Custom server, user server), etc. The terminal is a remote communication terminal. In different application scenarios, it may be, for example, a remote sensor for collecting business data or a collection device such as an electric energy/meter. NS is a server that directly communicates with the gateway, so the downlink command is sent from NS to the terminal through the gateway, and the downlink command may be the generation command of NS or AS. In different application scenarios, the downlink command can be Different, for example, the downlink instruction can be a start instruction for data collection to control the terminal to start business data collection. The terminal can report uplink data periodically or non-periodically, for example, report the collected service data to the server. Among them, the terminal has three working modes: A, B and C. Working mode A means: the terminal sends first, and a receiving window is opened for a period of time after sending, and the terminal can receive only after sending. That is to say, there is no restriction on the uplink, and the downlink command can only be received by the terminal when the uplink data is sent. Working mode B means that the terminal and the server agree on the opening time of the receiving window, and then only agree to receive the downlink command at the time. Working mode C means that the terminal opens the receiving window at any time other than sending, and can receive downlink commands at any time. Among them, the response mode of the terminal to the downlink command includes: an immediate response mode and a service reporting mode. The immediate response mode means that the terminal responds immediately after receiving the downlink command and feeds back the response command to the server; the service reporting mode means that the response command for the downlink command is carried in the next uplink data reported by the terminal. In the embodiment of the present invention, the downlink command response time refers to the elapsed time from sending the downlink command to receiving the response command. The command timeout time is set based on the response time of the downlink command, and since the server cannot determine the reporting period of the terminal, in order to adapt to the terminal with a longer reporting period, the command timeout time is usually set relatively long in the prior art. Large, but for the terminal with immediate response mode or short reporting period, if the downlink command is lost during transmission, but the command timeout time has not yet reached, the command retransmission will not be possible, which will affect the downlink Instruction execution efficiency. Therefore, the instruction timeout time setting in the prior art is unreasonable and not accurate enough. The inventor found in research that when the terminal is in the immediate response mode, the downlink command response time is relatively short, usually the network delay time, and the response times of different downlink commands are relatively close, and the distribution is relatively concentrated; and if the terminal is in business reporting Mode, periodic reporting, and working in working mode A, the response time of the downlink command is relatively long, and the response time of different downlink commands are close to the reporting cycle, the distribution is relatively concentrated; and if the terminal is in the business reporting mode, the periodic When reporting and working in working mode B or working mode C, the downlink command response time is relatively long and the response time of different downlink commands is quite different, the distribution is discrete, and the longest downlink command response time is close to the reporting cycle; and if the terminal is in business In the reporting mode and non-periodical reporting, the response time of downlink commands is relatively long and the response time of different downlink commands varies greatly, and the distribution is discrete. That is, the terminal is in any working state consisting of any response mode, any working mode, and any reporting mode. The response time of the downlink command has its own characteristics. For the convenience of clear description, the following table 1 lists a terminal in different work The response time distribution of the downlink command in the state. Combining the analysis results in Table 1, the inventor found that the response time of the downlink command is related to the response mode of the terminal, the working mode of the terminal, and the reporting mode (periodical or aperiodic) of the terminal, and is in different response modes, different working modes and In different reporting modes, the distribution of the response time of the downlink command is different. Therefore, in order to set a reasonable and accurate command timeout time, the response mode, working mode and reporting mode of the terminal can be considered comprehensively, and adaptive command timeout time can be set for different terminals, so that the server can set the command timeout time for different terminals. , Monitor the downlink command response process of the terminal, and improve the efficiency of command execution under the premise of ensuring the reliability of the command. Therefore, after further research, the inventor proposes the technical solution of the embodiment of the present invention, which comprehensively considers the response mode, working mode and/or reporting mode of the terminal, and sets a suitable and accurate command timeout time that matches the terminal. In the embodiment of the present invention, the response time of the terminal for multiple downlink commands is acquired; the first data distribution characteristic of the response time of the multiple downlink commands is determined; according to the response time of the multiple downlink commands and the first data distribution Feature, set the command timeout time of the terminal, that is, analyze the historical downlink command response time, determine the first data distribution feature of the response time of multiple downlink commands, combine the first data distribution feature, and based on the historical multiple Downlink command response time, that is, the command timeout time suitable for the terminal can be accurately obtained, the accuracy of the command timeout time can be guaranteed, and the personalized settings for different terminals can be realized. The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention. FIG. 1 is a flowchart of an embodiment of an information determination method provided by an embodiment of the present invention. The method may include the following steps: 101: Obtain a terminal's response time for multiple downlink commands. Optionally, it may be to obtain the response time of multiple recent downlink commands of the terminal. The terminal can refer to the LoRa terminal in the LoRaWAN network system. The downlink command is issued by the server in the LoRaWAN network system to the LoRa terminal. The server can specifically refer to the NS, which is forwarded and issued through the gateway. To the LoRa terminal. In order to ensure the timeliness of the data, the response time of multiple downlink commands recently issued to the terminal can be obtained to participate in the determination of the command timeout time. As an optional manner, the obtaining the response time of the terminal for multiple downlink instructions may include: obtaining the response time of the terminal for multiple downlink instructions within a first time period from the current time. For example, in practical applications, the first duration may be 10 days, that is, the response time of the downlink command issued in the last 10 days is selected. As another optional manner, the obtaining the response time of the terminal for the multiple downlink instructions may include: obtaining the response time of the terminal for the first number of downlink instructions issued recently. The first number may be 100, for example, that is, the response time of the last 100 downlink commands is selected. Wherein, the preset duration and the preset number can be actually set in combination with the requirements for timeliness and accuracy of the data, and the present invention does not specifically limit this. 102: Determine the first data distribution characteristic of the response time of the multiple downlink commands. 103: Set the command timeout time of the terminal according to the response time of the multiple downlink commands and the first data distribution characteristic. The instruction timeout period is used by the server to determine whether the execution of the downlink instruction issued to the terminal fails. The first data distribution feature can reflect the distribution of the response time of the multiple downlink commands, and can indicate the working state of the terminal. Therefore, in combination with the first data distribution feature, based on the response time of the multiple downlink commands, it can be predicted Command timeout period. The first data distribution characteristic can be expressed in multiple ways. In combination with the first data distribution characteristic, how to measure the working state of the terminal and how to set the command timeout time will be described in detail in the following embodiments. In this embodiment, the corresponding command timeout time can be determined for different terminals, instead of using a unified timeout time, the purpose of adaptively selecting the command timeout time for the terminal is realized, and the execution of the downlink command in the terminal is guaranteed. Because of the efficiency and the reliability of the downlink command, the command timeout time obtained by using the technical solution of this embodiment is more accurate. In a possible implementation manner, the first data distribution characteristic may be expressed by the distribution probability of the response times of the multiple downlink commands in different time intervals. Therefore, in some embodiments, the determining the first data distribution characteristic of the response time of the multiple downlink commands may include: dividing the first time range according to the first time length to obtain multiple response time intervals; determining the multiple Distribution probability of response time of the downlink commands in the multiple response time intervals; the setting the command timeout time of the terminal according to the response time of the multiple downlink commands and the first data distribution feature includes: according to the distribution Probability to meet the response time interval required in the first episode, set the command timeout time. Wherein, the first time range may be determined based on a preset minimum response time and a preset maximum response time. The preset minimum response time may be, for example, 0s (seconds), of course, it may also refer to the response time of the multiple downlink commands. Minimum time: The preset maximum response time may refer to the maximum time among the response times of the multiple downlink commands, or of course, may also refer to a pre-configured time. The first time length can divide the first time range into multiple response time intervals evenly, for example, the first time range is 0s~90s, and the first time length can be 30s, then 3 response time intervals are obtained: 0s~30s , 30s~60s, 60s~90s. The first duration can be set in combination with the accuracy requirements of the instruction timeout time in actual applications, and the present invention does not specifically limit this. The distribution probability of response times of multiple downlink commands in the multiple response time intervals may be determined according to the ratio of the number of response times of the downlink commands hit by each response time to the total number of response times of the multiple downlink commands. For example, the total number of response times of multiple downlink commands is 100, and the response time of downlink commands in the response time interval of 0s~30s is 3, then the distribution probability corresponding to the response time interval is 3/100=3%; in 30s The response time of the downlink command in the response time interval of ~60s is 95, then the distribution probability corresponding to the response time interval is 95/100=95%; the response time of the downlink command in the response time interval of 60s~90s s is 2, then the The distribution probability corresponding to the response time interval is 2/100=2%. As an alternative, the first concentration requirement may mean that the distribution probability is greater than the first probability threshold. Therefore, optionally, the setting the command timeout period according to the response time interval for which the distribution probability meets the first concentration requirement may include: setting the command timeout time according to the response time interval for which the distribution probability is greater than the first probability threshold. Optionally, the maximum boundary time of the response time interval whose distribution probability is greater than the first probability threshold or the corresponding maximum downlink command response time may be used as the command timeout time. For example, if the distribution probability corresponding to the 30s~60s response time interval is greater than the first probability threshold, then 60s can be used as the command timeout time, or the maximum downlink command response time hit in the 30s~60s response time interval can be used as the command timeout time. In practical applications, the first probability threshold may be set to 95%, for example. If there are multiple response time intervals whose distribution probability is greater than the first probability threshold, the command timeout period can be set according to the maximum response time interval among them. Of course, as other achievable ways, the command timeout period can also be set according to the response time interval with the greatest distribution probability. The maximum boundary time of the maximum response time interval or the corresponding maximum downlink command response time is used as the command timeout time as an optional method. If the distribution probability of any response time interval does not meet the first concentration requirement, you can The predetermined timeout period is used as the command timeout period. From the above analysis, it can be seen that the downlink command response time distribution corresponding to the terminal mainly includes two types: centralized distribution and discrete distribution. In the case of centralized data distribution, the response time of the downlink command corresponding to the terminal is close, and the difference is small; In the discrete case, the response time of the downlink command corresponding to the terminal varies greatly. Therefore, if there is a response time interval in which the distribution probability meets the first concentration requirement, it can be considered that the data distribution of the response time of the multiple downlink commands is concentrated, and the data is concentrated in the response time interval where the distribution probability meets the first concentration requirement, so that The response time interval can be used to set the command timeout time; and if there is no response time interval whose distribution probability meets the requirements of the first set, it can be considered that the data distribution of the response time of the multiple downlink commands is discrete. Combining the above analysis, we can see that If the data distribution is discrete, the downlink command response time of the terminal in this working state is quite different and does not have regularity. At this time, the predetermined timeout period can be directly used as the command timeout period. In order to adapt to terminals with a long reporting period, the predetermined timeout period can be set to be relatively large, such as 24 hours. As another alternative, since the terminal will report uplink data to the server, when the terminal is in the immediate response mode, the uplink data can refer to service data or a response command to the downlink command; the terminal is in service reporting mode At this time, the response command will be carried in the service data for reporting, so the uplink data can refer to the service data, and can also include the service data and the response command. There is a time interval between the uplink data reported by the terminal, that is, the uplink data reporting interval. When the terminal is in the service reporting mode and reporting periodically, the uplink data reporting interval also refers to the reporting period. From the above analysis, it can be seen that when the terminal reports periodically and is in working mode A, the downlink command response time is close to the reporting period; when the terminal reports periodically and is in working mode B or C, the longest downlink command response time is The cycle is close. Therefore, in some scenarios, the uplink data reporting interval is also equal to the downlink command response time. Accordingly, if the distribution probability of any response time interval does not meet the first concentration requirement, the inventor thinks that the command timeout time can also be predicted in combination with the uplink data reporting interval. Therefore, in some embodiments, the method may further include: if the distribution probability of any response time interval does not meet the first concentration requirement, obtaining multiple uplink data reporting intervals of the terminal; determining the A second data distribution characteristic of a plurality of uplink data reporting intervals; and setting a command timeout time of the terminal according to the plurality of uplink data reporting intervals and the second data distribution characteristic. Optionally, it may be to obtain multiple recent uplink data reporting intervals of the terminal. Wherein, if the distribution probability of any response time interval does not meet the first concentration requirement, acquiring multiple uplink data reporting intervals of the terminal may be if the distribution probability of any response time interval does not meet the first concentration requirement, Acquire multiple uplink data reporting intervals of the terminal that are recently longer than the preset interval duration. That is, the uplink data reporting interval is screened. The uplink data reporting interval less than the preset interval duration can be considered to be caused by the terminal retransmission operation. In the LoRaWAN protocol specification, the terminal retransmission interval is usually small, for example, 10s , The uplink data reporting interval generated by the retransmission operation is unlikely to be the downlink command response time, so only the uplink data reporting interval longer than the preset interval duration can be selected to participate in the determination of the command timeout time. Wherein, the multiple uplink data reporting intervals may be multiple uplink data reporting intervals within a second preset period of time from the current time, or a second number of uplink data reporting intervals generated recently. Optionally, the second data distribution feature may be expressed by the distribution probability of the multiple uplink data reporting intervals in different time intervals. Therefore, in some embodiments, the determining the second data distribution characteristic of the multiple uplink data reporting intervals may include: dividing the second time range according to the second time length to obtain multiple reporting time intervals; determining The distribution probability of the response times of the multiple downlink commands in the multiple reporting time intervals; and the setting the command timeout of the terminal according to the multiple uplink data reporting intervals and the second data distribution characteristic time. According to the distribution probability to meet the reporting time interval required by the second episode, set the command timeout time. Wherein, the second time length may be, for example, 200s, and the second time range may be evenly divided into multiple reporting time intervals. The second time range may be determined based on the preset minimum interval time and the preset maximum interval time. The preset minimum interval time may be, for example, 0s, and of course may also refer to the minimum interval time among the multiple uplink data reporting intervals; The preset maximum interval time may refer to the maximum interval time among the multiple uplink data reporting intervals, or of course, may also refer to a pre-configured time. As an alternative, the second concentration requirement may mean that the distribution probability is greater than the second probability threshold. Therefore, optionally, the setting of the instruction timeout time according to the reporting time interval for which the distribution probability meets the second concentration requirement may include: setting the maximum boundary time of the reporting time interval for which the distribution probability is greater than the second probability threshold or the corresponding The maximum uplink data reporting interval is used as the command timeout time. In practical applications, the second probability threshold may be set to 70%, for example. If there are multiple reporting time intervals whose distribution probability is greater than the second probability threshold, the command timeout period can be set according to the maximum reporting time interval among them. Of course, as other achievable ways, it is also possible to set the command timeout time according to the reporting time interval with the largest distribution probability, and the maximum boundary time value of the maximum reporting time interval or the corresponding maximum uplink data reporting interval as Command timeout period. In addition, in some embodiments, if the distribution probability of any reporting time interval does not meet the second concentration requirement, the predetermined timeout period may be used as the command timeout period. Since the uplink data reporting interval can be used as the downlink command response time, if there is a reporting time interval whose distribution probability meets the requirements of the second concentration, it can be considered that the data distribution of the multiple uplink data reporting intervals is concentrated, so Use the reporting time interval to set the command timeout time; and if there is no reporting time interval whose distribution probability meets the requirements of the second set, it can be considered that the data distribution of the multiple uplink data reporting intervals is discrete. Directly adopt the predetermined timeout time as the command timeout time. FIG. 2 shows a flowchart of another embodiment of an information determination method provided by an embodiment of the present invention. The method may include the following steps: 201: Obtain the response time of the terminal to the recent multiple downlink commands. 202: Divide the first time range according to the first time length to obtain multiple response time intervals. 203: Determine the distribution probability of the response time of the multiple downlink commands in the multiple response time intervals. 204: Determine whether there is a response time interval for which the distribution probability meets the requirements of the first concentration, if yes, go to step 205; if not, go to step 206; 205: Set the command timeout time according to the response time interval for the distribution probability to meet the requirements of the first concentration . 206: Acquire multiple recent uplink data reporting intervals of the terminal. 207: Divide the second time range according to the second time length to obtain multiple reporting time intervals. 208: Determine the distribution probability of the response time of the multiple downlink commands in the multiple reporting time intervals. 209: Determine whether there is a reporting time interval in which the distribution probability meets the requirements of the second concentration, if yes, execute step 210, if not, execute step 211. 210: According to the distribution probability to meet the reporting time interval required in the second episode, set the command timeout time. 211: Set the predetermined timeout time as the command timeout time. In addition, as another embodiment, the second data distribution feature may also be expressed by a second degree of dispersion of multiple uplink data reporting intervals. The second degree of dispersion may refer to, for example, the variance or standard deviation of multiple uplink data reporting intervals. Therefore, in some embodiments, determining the second data distribution feature of the multiple uplink data reporting intervals may include: determining a second degree of dispersion of the multiple uplink data reporting intervals; and combining the multiple Up to two uplink data reporting intervals and the second data distribution feature, setting the command timeout time of the terminal may include: calculating an average interval time of the multiple uplink data reporting intervals; using the second degree of dispersion to The average interval time is time compensated to obtain the command timeout time. The second degree of dispersion also represents the degree of deviation of the multiple uplink data reporting intervals from the average interval time. Wherein, using the second degree of dispersion to perform time compensation on the average interval time to obtain the instruction timeout time can be obtained by superimposing the product of the second degree of dispersion and the expansion coefficient on the average interval time to obtain the instruction timeout time , The expansion coefficient is greater than 1, which can be specifically set according to actual application conditions. In some embodiments, the calculating the average interval time of the plurality of uplink data reporting intervals may be: if the second degree of dispersion does not meet the second discrete condition, calculating the plurality of uplink data reporting intervals The average interval time. The second degree of dispersion may refer to the variance of a plurality of uplink data reporting intervals, and the second dispersion condition may be, for example, that the variance of the plurality of uplink data reporting intervals is greater than a second dispersion threshold. If the second degree of dispersion does not meet the second dispersion condition, it can be considered that the deviation between the multiple uplink data reporting intervals and the average time interval is small, and the data distribution of the multiple uplink data reporting intervals is concentrated. In this case, the first Second, the degree of dispersion and the average interval time are used to calculate the command timeout time. It may be that the product of the second degree of dispersion and the expansion coefficient is superimposed on the average interval time to obtain the instruction timeout time. The expansion coefficient is greater than 1, and can be specifically set in accordance with actual application conditions. The method may further include: if the second degree of dispersion satisfies the second dispersion condition, using a predetermined timeout time as the command timeout time. That is, if the second degree of dispersion satisfies the second dispersion condition, it can be considered that the multiple uplink data reporting intervals deviate greatly from the average interval time, and the data distribution of the multiple uplink data reporting intervals is discrete. In this case, you can directly The predetermined timeout period is used as the command timeout period. In addition, in some embodiments, the use of the second degree of dispersion to perform time compensation on the average interval time to obtain the instruction timeout time may be: if the second degree of dispersion satisfies a second dispersion condition, use The second degree of dispersion performs time compensation on the average interval time to obtain a command timeout time. The method may further include: if the second degree of dispersion does not satisfy a second dispersion condition, using the average interval time as the command timeout time. Since the second degree of dispersion satisfies the second dispersion condition, it can be considered that the multiple uplink data reporting intervals deviate greatly from the average interval time, and the second degree of dispersion may refer to the difference between the multiple uplink data reporting intervals and the average interval time. The degree of deviation, therefore, the second degree of dispersion is compensated on the basis of the average interval time, and the degree of deviation between the multiple uplink data reporting intervals and the average interval time can be balanced, and the result obtained can be used as the command timeout time. If the second degree of dispersion does not meet the second dispersion condition, it can be considered that the deviation between the multiple uplink data reporting intervals and the average interval time is small, the data distribution of the multiple uplink data reporting intervals is concentrated, and the second degree of dispersion can be ignored Therefore, the average interval time can be directly used as the command timeout time. In yet another possible implementation manner, the first data distribution characteristic may be expressed by the discrete degree of response time of the multiple downlink commands. Therefore, in some embodiments, the determining the first data distribution characteristic of the response time of the plurality of downlink commands may include: determining the first degree of dispersion of the response time of the plurality of downlink commands; Downlink command response time and the first data distribution characteristic, and setting the command timeout time of the terminal includes: calculating an average response time of the multiple downlink command response times; using the first degree of dispersion to respond to the average Time compensation to obtain the command timeout time. Wherein, the first degree of dispersion may refer to the variance of the response time of the multiple downlink commands. Therefore, the first degree of dispersion may be calculated as follows: ; among them, Is the variance, representing the first degree of dispersion, X is the downlink command response time, μ is the average response time, and N is the total number of the multiple downlink quality response times. Of course, the first degree of dispersion may also refer to the standard deviation, range, etc. of the response time of multiple downlink commands. The first degree of dispersion indicates the degree of deviation of the response time of multiple downlink commands from the average response time. Wherein, using the first degree of dispersion to perform time compensation on the average response time to obtain the command timeout time can be obtained by adding the product of the first degree of dispersion and the expansion coefficient to the average response time to obtain the command timeout time , The expansion coefficient is greater than 1, which can be specifically set according to actual application conditions. As described in the following formula: ; Among them, M represents the command timeout time, and α is the expansion coefficient greater than 1. Wherein, in some embodiments, the calculating the average response time of the response time of the plurality of downlink commands may include: if the first degree of dispersion does not satisfy the first dispersion condition, calculating the response time of the plurality of downlink commands The average response time. Wherein, the first degree of dispersion includes the variance of the response times of the multiple downlink commands; the first dispersion condition may be that the variance of the response times of the multiple downlink commands is greater than a first dispersion threshold. If the first degree of dispersion satisfies the first dispersion condition, it can be considered that the deviation between the response time of the multiple downlink commands and the average response time is small, and the data distribution of the response time of the multiple downlink commands is concentrated. At this time, the first dispersion can be used Degree and average response time to calculate the command timeout time. As an optional manner, if the first degree of dispersion satisfies the first dispersion condition, the method may further include: using a predetermined timeout time as the command timeout time. That is, if the first degree of dispersion satisfies the first dispersion condition, it can be considered that the response time of the multiple downlink commands deviates greatly from the average response time, and the data distribution of the multiple uplink data reporting intervals is discrete. In this case, the predetermined The timeout period is regarded as the command timeout period. In addition, as yet another optional manner, if the first degree of dispersion satisfies the first dispersion condition, the method may further include: acquiring multiple uplink data reporting intervals of the terminal; determining that the multiple uplink data A second data distribution characteristic of the reporting interval; and setting the command timeout time of the terminal according to the multiple uplink data reporting intervals and the second data distribution characteristic. From the above analysis, it can be seen that in some scenarios, the uplink data reporting interval is also equal to the downlink command response time. Therefore, when the first degree of dispersion satisfies the first discrete condition, the uplink data reporting interval can be combined to predict the command overtime. Time. Optionally, if the first degree of dispersion satisfies a first dispersion condition, acquiring the multiple uplink data reporting intervals of the terminal may be if the first degree of dispersion satisfies the first dispersion condition, acquiring the latest Multiple uplink data reporting intervals longer than the preset interval duration. As an optional manner, the second data distribution feature may be represented by a second degree of dispersion of multiple uplink data reporting intervals. The second degree of dispersion may refer to, for example, the variance or standard deviation of multiple uplink data reporting intervals. Therefore, the determining the second data distribution feature of the multiple uplink data reporting intervals may include: determining a second degree of dispersion of the multiple uplink data reporting intervals; and the reporting according to the multiple uplink data Interval and the second data distribution characteristics, and setting the command timeout time of the terminal includes: calculating an average interval time of the multiple uplink data reporting intervals; using the second degree of dispersion to perform the average interval time Time compensation to obtain the command timeout time. The second degree of dispersion also represents the degree of deviation of the multiple uplink data reporting intervals from the average interval time. Wherein, using the second degree of dispersion to perform time compensation on the average interval time to obtain the instruction timeout time can be obtained by superimposing the product of the second degree of dispersion and the expansion coefficient on the average interval time to obtain the instruction timeout time , The expansion coefficient is greater than 1, which can be specifically set according to actual application conditions. In some embodiments, the calculating the average interval time of the plurality of uplink data reporting intervals may be: if the second degree of dispersion does not meet the second discrete condition, calculating the plurality of uplink data reporting intervals The average interval time. The method may further include: if the second degree of dispersion satisfies the second dispersion condition, using a predetermined timeout time as the command timeout time. In addition, in some embodiments, the calculation of the average interval time of the multiple uplink data reporting intervals may be: if the second degree of dispersion satisfies a second dispersion condition, calculating the multiple uplink data reporting intervals The average time between intervals. The method may further include: if the second degree of dispersion does not satisfy a second dispersion condition, using the average interval time as the command timeout time. As shown in FIG. 3, it is a flowchart of another embodiment of an information determination method provided by an embodiment of the present invention. The method may include the following steps: 301: Obtain the response time of the terminal for the recent multiple downlink commands. 302: Determine the first degree of dispersion of the response time of the multiple downlink commands. 303: Determine whether the first degree of dispersion satisfies the first dispersion condition, if not, perform step 304, if yes, perform step 306. 304: Calculate the average response time of the response time of the multiple downlink commands. 305: Perform time compensation on the average response time by using the first degree of dispersion to obtain a command timeout time. 306: Acquire multiple recent uplink data reporting intervals of the terminal. 307: Determine a second degree of dispersion of the multiple uplink data reporting intervals. 308: Determine whether the second degree of dispersion satisfies the second dispersion condition, if not, perform step 309, if yes, perform step 311. 309: Calculate the average interval time of the multiple uplink data reporting intervals. 310: Use the second degree of dispersion to perform time compensation on the average interval time to obtain a command timeout time. 311: Use the predetermined timeout time as the command timeout time. Of course, as another embodiment, when the second degree of discreteness satisfies the second discrete condition, the second degree of discreteness is used to compensate the average interval time to obtain the command timeout time. When the second degree of dispersion does not satisfy the second dispersion condition, the average interval time is directly used as the command timeout time. As yet another embodiment, said using the first degree of dispersion to perform time compensation on the average response time, and obtaining the command timeout time includes: if the first degree of dispersion satisfies a first dispersion condition, using the first degree of dispersion The dispersion degree performs time compensation on the average response time to obtain the command timeout time; the method further includes: if the first dispersion degree does not satisfy the first dispersion condition, using the average response time as the command timeout time. Since the first degree of dispersion satisfies the first dispersion condition, it can be considered that the data distribution of multiple downlink command response times is discrete and has a large deviation from the average response time. The first degree of dispersion refers to the response time of multiple downlink commands and the average response. The degree of time deviation, therefore, the first degree of dispersion is compensated on the basis of the average response time, which can balance the deviation degree of multiple downlink command response times from the average response time, and the result obtained can be used as the command timeout time. If the first degree of dispersion does not meet the first dispersion condition, it can be considered that the response time of the multiple downlink commands has a small deviation from the average response time, and the data distribution of the response time of the multiple downlink commands is concentrated, and the first degree of dispersion can be ignored. , You can directly use the average response time as the command timeout time. As another optional manner, the second data distribution feature may also be expressed by the distribution probability of the multiple uplink data reporting intervals in different time intervals. Therefore, in some embodiments, the determining the second data distribution characteristic of the multiple uplink data reporting intervals may include: dividing the second time range according to the second time length to obtain multiple reporting time intervals; determining The distribution probability of the response times of the multiple downlink commands in the multiple reporting time intervals; and the setting the command timeout of the terminal according to the multiple uplink data reporting intervals and the second data distribution characteristic time. According to the distribution probability to meet the reporting time interval required by the second episode, set the command timeout time. As an alternative, the second concentration requirement may mean that the distribution probability is greater than the second probability threshold. Therefore, optionally, the setting of the instruction timeout time according to the reporting time interval for which the distribution probability meets the second concentration requirement may include: setting the maximum boundary time of the reporting time interval for which the distribution probability is greater than the second probability threshold or the corresponding The maximum uplink data reporting interval is used as the command timeout time. In addition, in some embodiments, if the distribution probability of any reporting time interval does not meet the second concentration requirement, the predetermined timeout period may be used as the command timeout period. Among them, it can be seen from the above analysis that when the terminal is in the immediate response mode, the response time of the downlink command is relatively small, and the response time of different downlink commands is close, and the response time of the downlink command is relatively concentrated. When the terminal is in the service reporting mode, the response time of the downlink command is relatively long and is related to the reporting cycle. Therefore, in some embodiments, the method may further include: judging whether the terminal is in an immediate response mode based on the response time of the multiple downlink commands; if so, executing the determination of the response time of the multiple downlink commands The step of the first data distribution feature; if not, obtain the multiple uplink data reporting intervals of the terminal; determine the second data distribution feature of the multiple uplink data reporting intervals; report according to the multiple uplink data The interval and the second data distribution feature set the command timeout time of the terminal. Wherein, the manner of using multiple uplink data reporting intervals to predict the instruction timeout time can be referred to the above embodiments, and will not be repeated here. If the terminal is in periodic reporting mode, the uplink data reporting interval also refers to the reporting period. Optionally, the judging whether the terminal is in the immediate response mode based on the response time of the multiple downlink commands may include: judging whether the response time of the multiple downlink commands is all less than a first time threshold; wherein, if the The response time of multiple downlink commands is less than the first time threshold, and it is determined that the terminal is in the immediate response mode. In addition, from the above analysis, it can be seen that the downlink command response time distribution corresponding to the terminal mainly includes two types: centralized distribution and discrete distribution. In the case of centralized data distribution, the corresponding downlink command response time of the terminal is close, and the difference is small; In the case of discrete data distribution, the response time of the downlink command corresponding to the terminal varies greatly. Therefore, as yet another embodiment, the setting the command timeout time of the terminal according to the response time of the multiple downlink commands and the first data distribution feature may include: if it is determined based on the first data distribution feature If the data distribution of the response time of the multiple downlink commands is concentrated, the command timeout period may be set based on the response time of the multiple downlink commands; if the response time of the multiple downlink commands is determined based on the first data distribution characteristic If the data distribution is discrete, the predetermined timeout period can be used as the command timeout period. Among them, the data distribution concentration indicates that the terminal may be in immediate response mode, or the periodic service reporting mode and working mode A, the terminal is in the corresponding working state of the data distribution concentration, the response time of the downlink command is similar, so the historical data can be used The response time of the multiple downstream commands is used to set the command timeout time. The discrete data distribution indicates that the terminal may be in aperiodic service reporting mode or periodic reporting mode and in working mode B/C. When the terminal is in a working state corresponding to the discrete data distribution, the downlink command response time does not have regularity, and The difference is large, at this time, you can directly select the predetermined timeout time as the command timeout time. In order to adapt to terminals with a long reporting period, the predetermined timeout period can be set to be relatively large, such as 24 hours. Wherein, if it is determined based on the first data distribution characteristic that the data distribution of the response time of the multiple downlink commands is concentrated, based on the response time of the multiple downlink commands, setting the command timeout time can be implemented in multiple ways: For example, The average response time of the response time of multiple downlink commands is taken as the command timeout time; for another example, the first degree of dispersion of the response time of multiple downlink commands can be calculated first, and then the average response time is compensated based on the first degree of dispersion to obtain Command timeout period. Therefore, in some embodiments, the first data distribution characteristic may be expressed by the first degree of dispersion of the response time of a plurality of downlink commands, and the first data distribution characteristic for determining the response time of the plurality of downlink commands may include: Determining the first degree of dispersion of the response times of the plurality of downlink commands; if the data distribution of the response times of the plurality of downlink commands is determined based on the first data distribution characteristic, based on the response time of the plurality of downlink commands, Setting the command timeout time may include: calculating the average response time of the response times of the multiple downlink commands; and using the first degree of dispersion to compensate the average response time to obtain the command timeout time. Among them, the first degree of dispersion, the compensation calculation method, etc. can be referred to in the corresponding embodiment above, and will not be repeated here. For another example, it is also possible to analyze the data concentration area in response to multiple downlink commands, and set the command timeout time based on the time category corresponding to the data concentration area. Therefore, in some embodiments, the first data distribution feature may be expressed by the distribution probability of multiple downlink command response times in different time intervals. The determining the first data distribution characteristic of the response time of the multiple downlink commands may include: dividing the first time range according to the first time length to obtain multiple response time intervals; determining that the response time of the multiple downlink commands is within the The distribution probability of multiple response time intervals; then if the data distribution of the response time of the multiple downlink commands is determined based on the first data distribution feature, the command timeout time is set based on the response time of the multiple downlink commands It may include: if it is determined that the data distribution of the response time of the multiple downlink commands is concentrated based on the first data distribution feature, dividing the first time range according to the first time length to obtain multiple response time intervals; determining the multiple downlink commands The distribution probability of the command response time in the multiple response time intervals; and the command timeout time is set according to the distribution probability that satisfies the response time interval required by the first set. Among them, the same or similar steps in the foregoing implementation solutions can be referred to the description in one or more embodiments above, and details are not repeated here. In addition, if it is determined that the data distribution of the multiple downlink command response times is discrete based on the first data distribution characteristic, the historical uplink data reporting interval may also be used to predict the command determination time. Therefore, in some embodiments, the setting the command timeout time of the terminal according to the response time of the plurality of downlink commands and the first data distribution feature includes: if it is determined based on the first data distribution feature The data distribution of the response time of the multiple downlink commands is concentrated, and the command timeout time is set based on the response time of the multiple downlink commands; if the data distribution of the response time of the multiple downlink commands is determined based on the first data distribution feature Discrete, acquiring multiple uplink data reporting intervals of the terminal; determining a second data distribution feature of the multiple uplink data reporting intervals; according to the multiple uplink data reporting intervals and the second data distribution feature To set the command timeout time of the terminal. Wherein, the specific manner of setting the command timeout time of the terminal by using multiple uplink data reporting intervals can refer to the description in the corresponding embodiment above, which will not be repeated here. Of course, as another embodiment, in the information determination method shown in FIG. 4, the method may include the following steps: 401: Obtain the response time of the terminal for multiple downlink commands. Optionally, it may be to obtain the response time of the terminal for multiple recent downlink commands. 402: Determine the first data distribution characteristic of the response time of the multiple downlink commands. 403: If it is determined based on the first data distribution characteristic that the data distribution of the response time of the multiple downlink commands is concentrated, set the command timeout time based on the response time of the multiple downlink commands. 404: If it is determined that the data distribution of the multiple downlink command response times is discrete based on the first data distribution characteristic, acquire multiple uplink data reporting intervals of the terminal. Optionally, it may be to obtain multiple recent uplink data reporting intervals of the terminal. 405: Determine a second data distribution characteristic of the multiple uplink data reporting intervals. 406: If it is determined that the data distribution of the multiple uplink data reporting intervals is concentrated based on the second data distribution feature, set a command timeout time based on the multiple uplink data reporting intervals. 406: If it is determined that the data distribution of the multiple uplink data reporting intervals is discrete based on the second data distribution characteristic, use the predetermined timeout time as the command timeout time. Wherein, if it is determined based on the second data distribution feature that the data distribution of the multiple uplink data reporting intervals is concentrated, based on the multiple uplink data reporting intervals, the instruction timeout period is set, for example, multiple uplink data The average interval time of the reporting interval is used as the instruction timeout time; for another example, the second degree of dispersion of multiple uplink data reporting intervals can also be calculated first, and then the average interval time is compensated based on the second degree of dispersion to obtain the command overtime. Time. For another example, it is also possible to analyze the data concentration area of multiple uplink data reporting intervals, and set the command timeout time based on the time category corresponding to the data concentration area. Therefore, in some embodiments, if it is determined that the data distribution of the plurality of uplink data reporting intervals is concentrated based on the second data distribution feature, the command timeout is set based on the plurality of uplink data reporting intervals The time may include: dividing the second time range according to the second time length to obtain multiple reporting time intervals; determining the distribution probability of the multiple downlink command response times in the multiple reporting time intervals; satisfying the first time interval according to the distribution probability Set the command timeout period for the reporting time interval required in the second set. Optionally, the maximum boundary time of the reporting time interval whose distribution probability is greater than the second probability threshold or the corresponding maximum uplink data reporting interval may be used as the command timeout time. Fig. 5 is a flowchart of another embodiment of an information determination method provided by an embodiment of the present invention. The method may include the following steps: 501: Obtain multiple uplink data reporting intervals of the terminal. Optionally, it may be to obtain multiple recent uplink data reporting intervals of the terminal. 502: Determine a second data distribution characteristic of the multiple uplink data reporting intervals. 503: Set a command timeout time of the terminal according to the multiple uplink data reporting intervals and the second data distribution characteristic. Since the terminal will report uplink data to the server, when the terminal is in the immediate response mode, the uplink data can refer to business data or a response command to the downlink command; when the terminal is in the service reporting mode, the response command will be carried in Reporting is performed in the business data, so the uplink data can refer to business data, and can also include business data and response instructions. There is a time interval between the uplink data reported by the terminal, that is, the uplink data reporting interval. When the terminal is in the service reporting mode and reporting periodically, the uplink data reporting interval also refers to the reporting period. From the above analysis, it can be seen that when the terminal reports periodically and is in working mode A, the downlink command response time is close to the reporting period; when the terminal reports periodically and is in working mode B or C, the longest downlink command response time is The cycle is close. Therefore, in some scenarios, the uplink data reporting interval is also equal to the downlink command response time, and in some scenarios, the uplink data reporting interval is also equal to the reporting period, so the uplink data reporting interval can be used to predict commands The timeout period can ensure the accuracy of the command timeout period. It should be noted that the steps in this embodiment that are the same or similar to those in the above-mentioned one or more embodiments have been described in detail in the above-mentioned one or more embodiments. , I will not elaborate here. In addition, in some embodiments, the method may further include: judging whether the terminal is in a service reporting mode based on the multiple uplink data reporting intervals; if so, performing the determining the multiple uplink data The step of reporting the second data distribution characteristic of the interval; if not, obtain the response time of the terminal for a plurality of downlink commands; determine the first data distribution characteristic of the response time of the plurality of downlink commands; according to the plurality of downlink commands The command response time and the first data distribution feature set the command timeout time of the terminal. If the terminal is not in the service reporting mode, that is, in the immediate response mode, the response time of multiple downlink commands can be used to set the command timeout time. The specific implementation is described in one or more of the above embodiments. It has been described in detail and will not be elaborated here. Wherein, the judging whether the terminal is in the service reporting mode based on the multiple uplink data reporting intervals may include: judging whether the multiple uplink data reporting intervals are all greater than a second time threshold; wherein, if all If the multiple uplink data reporting intervals are all greater than the second time threshold, it is determined that the terminal is in the service reporting mode. In addition, the embodiment of the present invention also provides an information judgment method. As shown in FIG. 6, the method may include the following steps: 601: Send a downlink instruction to the terminal. 602: Acquire the instruction timeout time corresponding to the terminal. For the determination of the instruction timeout time, reference may be made to the description in one or more embodiments above, and details are not described herein again. It should be noted that the operations of step 601 and step 602 are not limited to the execution steps of this embodiment. Step 602 can be pre-instructed or can be executed simultaneously with step 601, which is not specifically limited in the present invention. 603: Determine whether the execution of the downlink instruction fails based on the instruction timeout time. Wherein, if the execution of the downlink command fails, the retransmission operation can be performed, which is the same as the prior art and will not be repeated here. In an actual application, the technical solution of the present invention can be applied to a communication scenario based on a LoRaWAN network system. In a LoRaWAN network system, the terminal in the embodiment of the present invention specifically refers to a LoRa terminal, and the downlink command is a service The terminal is sent to the LoRa terminal. Therefore, as another embodiment, the embodiment of the present invention also provides an information determination method. For the same or similar steps in this embodiment, refer to any of the embodiments shown in FIGS. 1 to 4 The method may include: obtaining the response time of the LoRa terminal for multiple downlink commands; determining the first data distribution characteristic of the response time of the multiple downlink commands; according to the response time of the multiple downlink commands and the first data distribution Feature, setting the command timeout time of the LoRa terminal. As yet another embodiment, the embodiment of the present invention also provides an information determination method. For the same or similar steps in this embodiment, refer to the embodiment shown in FIG. 5, which may include: Obtaining multiple uplink data reporting intervals of the LoRa terminal Determining the second data distribution characteristic of the multiple uplink data reporting intervals; setting the command timeout time of the LoRa terminal according to the multiple uplink data reporting intervals and the second data distribution characteristic. As yet another embodiment, the embodiment of the present invention also provides an information judgment method. For the same or similar steps in this embodiment, refer to the embodiment shown in FIG. 6. The method may include: sending a downlink command to the LoRa terminal; The command timeout time corresponding to the LoRa terminal; wherein the command timeout time is determined based on the response time of the LoRa terminal to multiple downlink commands and the first data distribution characteristic of the response time of the multiple downlink commands, or Determine based on the multiple uplink data reporting intervals of the LoRa terminal and the second data distribution characteristics of the multiple uplink data reporting intervals; determine whether the execution of the downlink command fails based on the command timeout time. FIG. 7 is a schematic structural diagram of an embodiment of an information determining apparatus provided by an embodiment of the present invention. The apparatus may include: a response time obtaining module 701, configured to obtain the response time of the terminal for multiple downlink commands; The group 702 is used to determine the first data distribution characteristic of the response time of the multiple downlink commands; the first time determining module 703 is used to set the response time of the multiple downlink commands and the first data distribution characteristic The command timeout period of the terminal. Wherein, in the LoRaWAN communication scenario, the response time obtaining module specifically obtains the response time of the LoRa terminal for multiple downlink commands; the first time determining module may be specifically configured to respond according to the multiple downlink commands The time and the first data distribution characteristic determine the command timeout time of the LoRa terminal. In some embodiments, the first feature determination module is specifically configured to divide the first time range according to the first time length to obtain multiple response time intervals; determine that the response time of the multiple downlink commands is within the multiple The distribution probability of the response time interval; the first time determining module is specifically configured to set the command timeout time according to the distribution probability of the response time interval meeting the first concentration requirement. Optionally, the first time determining module may specifically use the maximum boundary time of the response time interval with a distribution probability greater than the first probability threshold or the corresponding maximum downlink command response time as the command timeout time. In addition, the first time determination module is further configured to use the predetermined timeout time as the command timeout time if the distribution probability of any response time interval does not meet the first concentration requirement. In some embodiments, the device may further include: a first time obtaining module, configured to obtain multiple uplink data reporting intervals of the terminal if the distribution probability of any response time interval does not meet the concentration requirement The second feature determining module is used to determine the second data distribution feature of the multiple uplink data reporting intervals; the second time determining module is used to determine the second data distribution feature of the multiple uplink data reporting intervals according to the multiple uplink data reporting intervals and the first 2. Data distribution characteristics, setting the command timeout time of the terminal. In some embodiments, the first time obtaining module may be specifically configured to obtain the terminal's latest time greater than the preset interval if the distribution probability of any response time interval does not meet the first concentration requirement Multiple uplink data reporting intervals. In some embodiments, the second feature determination module may be specifically configured to divide the second time range according to the second time length to obtain multiple reporting time intervals; determine that the response time of the multiple downlink commands is within the The distribution probability of a plurality of reporting time intervals; the second time determining module is specifically configured to set the command timeout time according to the reporting time interval for which the distribution probability meets the second concentration requirement. Optionally, the second time determination module may use the maximum boundary time of the reporting time interval with a distribution probability greater than the second probability threshold or the corresponding maximum uplink data reporting interval as the command timeout time. In some embodiments, the second time determination module is further configured to use the predetermined timeout time as the command timeout time if the distribution of any reported time interval does not meet the second concentration requirement. In some embodiments, the first feature determination module may be specifically used to determine the first degree of dispersion of the response time of the multiple downlink commands; the first time determination module may be specifically used to calculate the multiple The average response time of the response time of the downstream commands; the first degree of dispersion is used to compensate the average response time to obtain the command timeout time. In some embodiments, the calculation of the average response time of the response time of the plurality of downlink commands by the first time determination module may be based on calculating the plurality of response times if the first degree of dispersion does not satisfy the first dispersion condition. The average response time of the downstream command response time. The first time determination module is further configured to, if the first degree of dispersion satisfies the first dispersion condition, use a predetermined timeout time as the command timeout time. In some embodiments, the first time determination module uses the first degree of dispersion to compensate the average response time, and obtaining the command timeout time may specifically be: if the first degree of dispersion satisfies the first A discrete condition, using the first degree of discreteness to compensate the average response time to obtain the command timeout time; if the first discrete degree does not meet the first discrete condition, the average response time is taken as the command overtime Time. Wherein, the first discrete condition is that the variance of the response time of the multiple downlink commands is greater than the first discrete threshold. In some embodiments, the device may further include: a second time obtaining module, configured to obtain multiple uplink data reporting intervals of the terminal if the first degree of dispersion satisfies the first dispersion condition; The second characteristic determining module is used to determine the second data distribution characteristics of the multiple uplink data reporting intervals; the second time determining module is used to determine the second data distribution characteristics according to the multiple uplink data reporting intervals and the second The data distribution feature sets the command timeout time of the terminal. In some embodiments, the second characteristic determination module may be specifically used to determine the second degree of dispersion of the multiple uplink data reporting intervals; the second time determination module may be specifically used to calculate the The average interval time of a plurality of uplink data reporting intervals; using the second degree of dispersion to perform time compensation on the average interval time to obtain a command timeout time. In some embodiments, the second time determination module may calculate the average interval time of the multiple uplink data reporting intervals if the second degree of dispersion does not meet the second dispersion condition, and use the The second degree of dispersion performs time compensation on the average interval time to obtain the command timeout time. In addition, the second time determining module is further configured to use a predetermined timeout time as the command timeout time if the second degree of dispersion satisfies the second dispersion condition. In some embodiments, the response time obtaining module may be specifically configured to obtain the response time of the terminal to multiple downlink commands within a first time period from the current time; or, to obtain the first number of commands recently issued by the terminal. Response time of a downstream command. In some embodiments, the device may further include: a first mode judgment module for judging whether the terminal is in the immediate response mode based on the response time of the multiple downlink commands; if the judgment result is yes, trigger The first feature determination module executes. The third time obtaining module is used to obtain multiple uplink data reporting intervals of the terminal when the first mode judgment module is No; the second characteristic determining module is used to determine the multiple uplink data The second data distribution characteristic of the reporting interval; a second time determining module, configured to set the command timeout time of the terminal according to the multiple uplink data reporting intervals and the second data distribution characteristic. Optionally, the first mode judgment module may be specifically configured to judge whether the response times of the multiple downlink commands are all less than a first time threshold; wherein, if the response times of the multiple downlink commands are all less than the first time threshold To determine that the terminal is in an immediate response mode. In some embodiments, the first time determination module may be specifically configured to: if it is determined based on the first data distribution characteristic that the data distribution of the response time of the multiple downlink commands is concentrated, based on the multiple downlink commands The response time is the command timeout time; if it is determined that the data distribution of the multiple downlink command response times is discrete based on the first data distribution characteristic, the predetermined timeout time is taken as the command timeout time. In some embodiments, the first time determination module may be specifically configured to: if it is determined based on the first data distribution characteristic that the data distribution of the response time of the multiple downlink commands is concentrated, based on the multiple downlink commands Response time, set the command timeout time; if it is determined based on the first data distribution characteristic that the data distribution of the multiple downlink command response times is discrete, obtain multiple uplink data reporting intervals of the terminal; determine the multiple The second data distribution characteristic of the uplink data reporting interval; and the command timeout time of the terminal is set according to the multiple uplink data reporting intervals and the second data distribution characteristic. Wherein, the setting the command timeout time of the terminal according to the multiple uplink data reporting intervals and the second data distribution characteristic may include: if the multiple uplink data distribution characteristics are determined based on the second data distribution characteristic. The data distribution of the data reporting interval is concentrated, and the instruction timeout period is set based on the multiple uplink data reporting intervals; if it is determined that the data distribution of the multiple uplink data reporting intervals is discrete based on the second data distribution feature, The predetermined timeout period is regarded as the command timeout period. The information determining device shown in FIG. 7 can execute the information determining method of any one of the embodiments shown in FIG. 1 to FIG. 3 and FIG. 5, and its implementation principles and technical effects will not be repeated. The specific methods for performing operations of each module and unit of the information determining device in the above-mentioned embodiment have been described in detail in the embodiment of the method, and detailed description will not be given here. In a possible design, the information determining apparatus of the embodiment shown in FIG. 7 can be implemented as a computing device. In an actual application, the computing device can be regarded as NS, of course, it can also be a stand-alone device. The time is used to send to the NS, and the NS judges the downlink command accordingly. As shown in FIG. 8, the computing device may include a storage component 801 and a processing component 802; the storage component 801 stores one or more computer instructions, wherein the one or more computer instructions are for the processing component 802 to call and execute . The processing component 802 is configured to: obtain the response time of the terminal for multiple downlink commands; determine the first data distribution characteristic of the response time of the multiple downlink commands; according to the response time of the multiple downlink commands and the first data The distribution feature sets the command timeout time of the terminal. The processing component 802 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing components can also be one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components to implement the above methods. The storage component 801 is configured to store various types of data to support operations in the computing device. The storage components can be realized by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, floppy disk or optical disc. Of course, the computing device may inevitably also include other components, such as input/output interfaces, communication components, etc., which will not be repeated here. The embodiment of the present invention also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a computer, the information determining method of any one of the embodiments shown in FIGS. 1 to 3 and 5 can be implemented. FIG. 9 is a schematic structural diagram of another embodiment of an information determining apparatus provided by an embodiment of the present invention. The apparatus may include: an interval time obtaining module 901, configured to obtain multiple uplink data reporting intervals of the terminal; second The feature determining module 902 is configured to determine the second data distribution feature of the multiple uplink data reporting intervals; the second time determining module 903 is configured to determine the second data distribution feature according to the multiple uplink data reporting intervals and the second The data distribution feature sets the command timeout time of the terminal. Wherein, in the LoRaWAN communication scenario, the interval time obtaining module is specifically to obtain multiple uplink data reporting intervals of the LoRa terminal; the second time determining module may be specifically configured to obtain data based on the multiple uplink data. The reporting interval and the second data distribution feature determine the command timeout time of the LoRa terminal. In some embodiments, the second feature determination module is specifically configured to divide the second time range according to the second time length to obtain multiple reporting time intervals; determine that the response time of the multiple downlink commands is within the multiple The distribution probability of each reporting time interval; the second time determining module is specifically configured to set the command timeout time according to the reporting time interval for which the distribution probability meets the second concentration requirement. Optionally, the second time determination module may be specifically configured to use the maximum boundary time of the reporting time interval with a distribution probability greater than the second probability threshold or the corresponding maximum uplink data reporting interval as the command timeout time. In some embodiments, the second time determination module is further configured to use a predetermined timeout time as the command timeout time if the distribution of any reported time interval does not meet the second concentration requirement. In some embodiments, the second characteristic determining module may be specifically configured to determine the second degree of dispersion of the multiple uplink data reporting intervals; in some embodiments, the second time determining module It may be specifically used to calculate the average interval time of the multiple uplink data reporting intervals; use the second degree of dispersion to compensate the average interval time to obtain the command timeout time. In some embodiments, the calculation of the average interval time of the multiple uplink data reporting intervals by the second time determination module may be, if the second degree of dispersion does not meet the second dispersion condition, calculating the multiple The average interval between uplink data reporting intervals. In some embodiments, the second time determining module is further configured to use a predetermined timeout time as the command timeout time if the second degree of dispersion satisfies the second dispersion condition. In some embodiments, the device may further include: a second mode judgment module, configured to judge whether the terminal is in the service reporting mode based on the multiple uplink data reporting intervals; if the judgment result is yes, Then trigger the execution of the second characteristic determination module; a fourth time acquisition module, configured to acquire the response time of the terminal to multiple downlink commands when the second mode determination module is no; first characteristic The determining module is used to determine the first data distribution characteristic of the response time of the multiple downlink commands; the first time determining module is used to set the response time of the multiple downlink commands and the first data distribution characteristic The command timeout period of the terminal. In some embodiments, the second mode determination module may be specifically configured to determine whether the multiple uplink data reporting intervals are all greater than a second time threshold; wherein, if the multiple uplink data reporting intervals are all greater than The second time threshold determines that the terminal is in the service reporting mode. The information determining device shown in FIG. 9 can execute the information determining method of the embodiment shown in FIG. 5, and its implementation principles and technical effects will not be repeated. The specific methods for performing operations of each module and unit of the information determining device in the above-mentioned embodiment have been described in detail in the embodiment of the method, and detailed description will not be given here. In a possible design, the information determining apparatus of the embodiment shown in FIG. 9 can be implemented as a computing device. In an actual application, the computing device can be regarded as NS, or it can be an independent device, and the command obtained by it has timed out. The time is used to send to the NS, and the NS judges the downlink command accordingly. As shown in FIG. 10, the computing device may include a storage component 1001 and a processing component 1002; the storage component 1001 stores one or more computer instructions, wherein the one or more computer instructions can be invoked and executed by the processing component 1002 . Acquire multiple uplink data reporting intervals of the terminal; determine a second data distribution feature of the multiple uplink data reporting intervals; set according to the multiple uplink data reporting intervals and the second data distribution feature The command timeout period of the terminal. The processing component 1002 may include one or more processors to execute computer instructions to complete all or part of the steps in the foregoing method. Of course, the processing components can also be one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components to implement the above methods. The storage component 1001 is configured to store various types of data to support operations in the computing device. The storage components can be realized by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, floppy disk or optical disc. Of course, the computing device may inevitably also include other components, such as input/output interfaces, communication components, etc., which will not be repeated here. The embodiment of the present invention also provides a computer readable storage medium storing a computer program, and the computer program can realize the information determination method of the embodiment shown in FIG. 5 when the computer program is executed by the computer. FIG. 11 is a schematic structural diagram of another embodiment of an information judgment device provided by an embodiment of the present invention. The device may include: an instruction issuing module 1101 for sending a downlink instruction to a terminal; a time obtaining module 1102 for obtaining The command timeout period corresponding to the terminal; wherein the command timeout period may be determined based on the terminal's response time to multiple downlink commands and the first data distribution feature of the multiple downlink command response times, or based on The multiple uplink data reporting intervals of the terminal and the second data distribution characteristics of the multiple uplink data reporting intervals are determined. For details, refer to the description in any of the foregoing embodiments, and details are not described herein again. The timeout judgment module 1103 is configured to judge whether the execution of the downlink command fails based on the command timeout time. Among them, in the LoRaWAN communication scenario, the instruction issuing module is specifically used to send downlink instructions to the LoRa terminal. The time acquisition module is specifically configured to acquire the instruction timeout time corresponding to the LoRa terminal. In a possible design, the information judging device of the embodiment shown in FIG. 11 can be implemented as a computing device. In a practical application, the computing device can be regarded as the NS in the LoRaWAN system, and NS is the device for direct communication with the gateway. , The downlink command is sent by NS. As shown in FIG. 12, the computing device may include a storage component 1201 and a processing component 1202; the storage component 1201 stores one or more computer instructions, wherein the one or more computer instructions can be invoked and executed by the processing component 1202 . The processing component 1202 is configured to: the processing component is configured to: send a downlink instruction to the terminal; obtain the instruction timeout period corresponding to the terminal; wherein the instruction timeout period may be based on the terminal's response to multiple downlink instructions The response time of the terminal and the first data distribution feature of the response time of the multiple downlink commands, or based on the multiple uplink data reporting intervals of the terminal and the second data distribution feature of the multiple uplink data reporting intervals; Determine whether the execution of the downlink command fails based on the command timeout time. The processing component 1202 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing components can also be one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components to implement the above methods. The storage component 1201 is configured to store various types of data to support operations on the computing device. The storage components can be realized by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, floppy disk or optical disc. Of course, the computing device must also include other components, such as input/output interfaces, communication components, and so on. The embodiment of the present invention also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a computer, the information judgment method of the embodiment shown in FIG. 6 can be implemented. Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement without creative work. Through the description of the above implementation manners, those skilled in the art can clearly understand that each implementation manner can be implemented by software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution essentially or the part that contributes to the existing technology can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as ROM/RAM, magnetic A disc, an optical disc, etc., include several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.