這裡將詳細地對示例性實施例進行說明,其示例表示在圖式中。下面的描述涉及圖式時,除非另有表示,不同圖式中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本說明書一個或多個實施例相一致的所有實施方式。相反地,它們僅是與如所附申請專利範圍中所詳述的、本說明書一個或多個實施例的一些態樣相一致的裝置和方法的例子。
需要說明的是:在其他實施例中並不一定按照本說明書示出和描述的順序來執行相應方法的步驟。在一些其他實施例中,其方法所包括的步驟可以比本說明書所描述的更多或更少。此外,本說明書中所描述的單個步驟,在其他實施例中可能被分解為多個步驟進行描述;而本說明書中所描述的多個步驟,在其他實施例中也可能被合併為單個步驟進行描述。
圖1是一示例性實施例提供的一種容器狀態的通知系統的架構示意圖。如圖1所示,該系統可以包括容器監測設備11、網路12和服務端13。
容器監測設備11位於監測物件上,例如,可以設於監測物件的內部或外部。其中,監測物件(本實施例中為容器)設有封裝部件(比如,瓶蓋、瓶塞等)以對容器進行封裝,容器監測設備11預設處於關閉狀態,僅在封裝部件被打開(即可理解為容器被打開)的情況下觸發開啟,並向服務端13發送通知訊息以告知服務端該容器被開啟。可見,容器監測設備11僅在封裝部件被打開的情況下開啟,而封裝部件未被打開的時候均處於關閉狀態。因此,容器監測設備11具有較長的續航能力。比如,當採用電池對容器監測設備11進行供電時,基於上述的操作機制(僅在封裝部件被打開時需要電池進行供電),可保持較長時間的續航。
服務端13可以為包含一獨立主機的物理伺服器,或者該服務端13可以為主機集群承載的虛擬伺服器。在運行過程中,該物理伺服器或虛擬伺服器可以運行某一應用的伺服器側的程式,以實現該應用的相關業務功能,比如當運行基於服務端側的容器狀態的通知方法的程式時,可以實現為該容器狀態的通知方法的服務端。而在本說明書一個或多個實施例的技術方案中,可由服務端13透過與容器監測設備11進行配合,以實現容器狀態的通知方案。
而對於容器監測設備11與服務端13之間進行互動的網路12,可以包括多種類型的有線或無線網路。在一實施例中,該網路12可以包括公共交換電話網路(Public Switched Telephone Network,PSTN)和網際網路。容器監測設備11與服務端13之間可以透過網路12建立長連接,使得容器監測設備11透過該長連接向服務端13發送推送訊息等。
下面分別針對容器監測設備11、服務端13等不同角色,對本說明書的容器狀態的通知方案進行說明。
請參見圖2,圖2是一示例性實施例提供的一種容器狀態的通知方法的流程圖。如圖2所示,該方法係應用於容器監測設備,所述容器監測設備預設處於關閉狀態,所述容器設有封裝部件,該方法可以包括以下步驟:
步驟202,當所述容器監測設備處於開啟狀態時,向服務端發送所述容器被開啟的通知訊息,以由所述服務端將所述容器標記為已開啟狀態。
在本實施例中,所述容器監測設備可由所述封裝部件在被打開的情況下觸發開啟。可見,透過由封裝部件被打開來觸發容器監測設備啟動並通知服務端被監測的容器被打開,可以在實現通知容器狀態的情況下減少容器監測設備的功耗,有助於提升容器監測設備的續航能力。
而針對由封裝部件觸發容器監測設備開啟的方式,存在以下兩種方式:
1、由啟動開關觸發
在一實施例中,所述容器監測設備設有啟動開關,可由啟動開關來控制容器監測設備的開啟與關閉。其中,所述啟動開關在所述封裝部件未被打開的情況下處於關閉狀態,在所述封裝部件被打開的情況下被觸發開啟。
2、由絕緣體觸發
在另一實施例中,基於容器監測設備由電源(例如,電池)供電,當容器監測設備的電源與電源介面電連接(電源正極、電源負極分別與相應的電源介面電連接)時,電源可為容器監測設備供電,那麼容器監測設備即可開啟。因此,可利用電源與電源介面的連接關係來控制容器監測設備的開啟與關閉。比如,所述容器監測設備的電源與電源介面之間在所述封裝部件未被打開的情況下被絕緣體隔離,所述絕緣體與所述封裝部件連接,並在所述封裝部件被打開的情況下從所述電源與所述電源介面之間抽出,使得所述電源與所述電源介面電連接。
在本實施例中,由於上述為透過物理結構觸發容器監測設備開啟,而物理結構可能存在誤觸發的情況。比如,由於容器晃動導致容器監測設備的啟動開關誤開啟或者絕緣體脫落等情況,即實際上封裝部件並未被打開,而根據上述的判斷方式,判斷結果為封裝部件被打開,進而判斷容器為開啟狀態。因此,還可以在上述通知方案的基礎上增加其他檢測方式來防止誤報,以進一步提高監測的準確率。
在一實施例中,容器監測設備可透過與封裝部件之間的距離來進一步確認封裝部件是否被打開。作為一示例性實施例,所述容器監測設備設有距離感測器,所述距離感測器可在所述容器監測設備處於開啟狀態時檢測與所述封裝部件之間的距離。基於上述對距離感測器的配置,可獲取所述距離感測器檢測到的目標距離,並在所述目標距離未超過預設距離閾值時(預設距離閾值用於判定封裝部件是否被打開),向所述服務端發送針對所述通知訊息的誤報訊息,以使得所述服務端取消針對所述容器為已開啟狀態的標記。
在另一實施例中,當容器處於外界光線照射的環境下時,若封裝部件(非透明,可至少遮擋部分光線)未被打開,則容器內部的光線亮度較低。因此,容器監測設備(設於容器內部)還可透過檢測容器內部的光線亮度來進一步確認封裝部件是否被打開。作為一示例性實施例,所述容器監測設備設有光線感測器,那麼容器監測設備可先獲取所述光線感測器檢測到的目標光線亮度,並在所述目標光線亮度未超過預設光線亮度閾值(預設光線亮度閾值用於判定封裝部件是否被打開)時,向所述服務端發送針對所述通知訊息的誤報訊息,以使得所述服務端取消針對所述容器為已開啟狀態的標記。其中,由於容器的口部在封裝部件被打開前後光線亮度的變化較為明顯,可將所述光線感測器設於容器口部(封裝部件設於所述容器的容器口部)附近,從而提高根據光線亮度的變化來確認封裝部件是否被打開的準確率。
相應地,圖3是一示例性實施例提供的另一種容器狀態的通知方法的流程圖。如圖3所示,該方法應用於服務端,該方法可以包括以下步驟:
步驟302,接收容器監測端設備發送的所述容器被開啟的通知訊息。
在本實施例中,所述通知訊息由所述容器監測設備處於開啟狀態時發送,所述容器監測設備預設處於關閉狀態,並可由所述封裝部件在被打開的情況下觸發開啟。可見,透過由封裝部件被打開來觸發容器監測設備啟動並通知服務端被監測的容器被打開,可以在實現向服務端通知容器狀態的情況下減少容器監測設備的功耗,有助於提升容器監測設備的續航能力。
步驟304,將所述容器標記為已開啟狀態。
在本實施例中,可在服務端配置資料庫用以記錄各個容器的容器狀態。比如,可儲存各個容器的標識與容器狀態(比如,可以包括已開啟狀態、未開啟狀態等)的映射關係。
需要說明的是,容器監測端設備監測容器狀態的方式可參考上述圖2所示實施例的相關內容,在此不再贅述。
為了便於理解,下面以容器為酒瓶為例,結合容器監測設備與服務端之間的互動過程,對本說明書中的容器狀態的通知方案進行詳細說明。
請參見圖4,圖4是一示例性實施例提供的一種容器狀態的通知方法的互動圖。如圖4所示,該方法可以包括以下步驟:
步驟402,容器監測設備啟動。
在一實施例中,如圖5所示,容器監測設備設有啟動開關5,其中,啟動開關5可包括支撐結構51、電路連通開關52、彈簧53。如圖5A所示,當瓶塞(容器為酒瓶,相應的封裝部件為瓶塞)未被打開(即嵌入瓶口中)時,支撐結構51擠壓電路連通開關52,使得與電路連通開關52連接的彈簧53處於壓縮狀態。可見,此時由於電路連通開關52未導通電路,導致容器監測設備未通電,即處於關閉狀態。如圖5B所示,當瓶塞被打開(即瓶塞離開瓶口,位於瓶口外部)時,支撐結構51跟隨瓶塞移動(比如,可將支撐結構51與瓶塞連接)從而不再對電路連通開關52施加向下的壓力。那麼電路連通開關52在彈簧53的作用下(彈簧53處於壓縮狀態,對電路連通開關52施加向上的作用力)逆時針旋轉。可見,此時由於電路連通開關52導通電路,導致容器監測設備通電,即處於開啟狀態。
綜上,基於上述啟動開關5的結構,可實現啟動開關5在封裝部件未被打開的情況下處於關閉狀態,在封裝部件被打開的情況下被觸發開啟。當然,還可採用其他類似結構的啟動開關來控制容器監測設備的開啟與關閉,本說明書並不對此進行限制。
在另一實施例中,可利用電源與電源介面的連接關係來控制容器監測設備的開啟與關閉。如圖6所示,可在容器檢測設備的電源正極61與電源介面62之間設置絕緣體63;其中,電源負極(圖中未示出)已與電源介面(用以與電源負極電連接,圖中未示出)電連接。可見,由於容器監測設備的電源正極61與電源介面62被絕緣體63隔離,導致電路未導通,即容器監測設備未通電,處於關閉狀態。而絕緣體63與瓶塞連接(即跟隨瓶塞移動),當瓶塞被打開時,絕緣體63由於跟隨瓶塞移動導致從電源正極61與電源介面62之間抽出,使得電源正極61與電源介面62電連接,即容器監測設備通電啟動。
由上述啟動容器監測設備的方式可見,在封裝部件未被打開的情況下,容器監測設備均處於關閉狀態,透過由封裝部件被打開來觸發容器監測設備啟動並通知服務端被監測的容器被打開,可以在實現通知容器狀態的情況下減少容器監測設備的功耗,有助於提升容器監測設備的續航能力。
步驟404,容器監測設備向服務端發送通知訊息。
步驟406,服務端將該酒瓶標記為已開啟狀態。
在本實施例中,可在服務端配置資料庫用來記錄各個酒瓶的開啟情況。比如,服務端根據接收到的來自各個容器監測設備發送的通知訊息,可維護如表1所示的映射關係:
表1
步驟408,容器監測設備獲取目標距離或目標光線亮度。
步驟410,容器監測設備判斷是否超過預設距離閾值或預設光線亮度閾值。
步驟412,容器監測設備向服務端發送誤報訊息。
在本實施例中,由於上述圖5和圖6為由物理結構來觸發容器監測設備開啟,而物理結構可能存在誤觸發的情況。比如,由於酒瓶晃動(容器檢測設備隨著一起晃動)導致支撐結構51鬆動或者絕緣體63脫落等情況(這些情況將導致觸發容器監測設備開啟),而實際上封裝部件並未被打開。因此,還可以在上述通知方案的基礎上增加其他檢測方式來防止誤報,以進一步提高監測的準確率。
在一實施例中,容器監測設備可透過與瓶塞之間的距離來進一步確認瓶塞是否被打開。如圖7所示,酒瓶5設有瓶塞51,容器監測設備11(位於瓶口P附近)設有距離感測器(圖中未示出),距離感測器可在容器監測設備11處於開啟狀態時檢測與瓶塞51之間的距離。基於上述對距離感測器的配置,容器監測設備11可獲取距離感測器檢測到的目標距離,並在目標距離未超過預設距離閾值時(預設距離閾值用來判定封裝部件是否被打開),向服務端發送針對上述步驟404中發送的通知訊息的誤報訊息,以使得服務端取消針對該酒瓶為已開啟狀態的標記。
舉例而言,假定預設距離閾值為L3。如圖7A所示,瓶塞51未被打開時與容器監測設備(即距離感測器的所在位置)的距離為L1(即目前距離感測器檢測到的目標距離,L1<L3);如圖7B所示,瓶塞51被打開時與容器監測設備的距離為L2(即目前距離感測器檢測到的目標距離,L2>L3)。其中,L3可根據酒瓶的實際尺寸靈活設定,本說明書並不對此進行限制。當距離感測器檢測到的目標距離未超過L3時,可判定瓶塞51未被打開。此時,可向服務端發送針對上述步驟404中發送的通知訊息的誤報訊息,以使得服務端取消針對酒瓶為已開啟狀態的標記。
在另一實施例中,當酒瓶處於外界光線照射的環境下時,若瓶塞(非透明,可至少遮擋部分光線)未被打開,則酒瓶內部的光線亮度較低。因此,容器監測設備(設於容器內部)還可透過檢測酒瓶內部的光線亮度來進一步確認瓶塞是否被打開。如圖8所示,容器監測設備11設有光線感測器(圖中未示出),容器監測設備11可先獲取光線感測器檢測到的目標光線亮度,並在目標光線亮度未超過預設光線亮度閾值(預設光線亮度閾值用於判定瓶塞是否被打開)時,向服務端發送針對上述步驟404中發送的通知訊息的誤報訊息,以使得服務端取消針對該酒瓶為已開啟狀態的標記。
舉例而言,如圖8A所示,當瓶塞51未被打開時,由於瓶塞對光線的遮擋,容器監測設備11中的光線感測器檢測到的目標光線亮度較弱;如圖8B所示,當瓶塞51被打開時,由於失去了瓶塞對光線的遮擋作用,容器監測設備11中的光線感測器檢測到的目標光線亮度較強。其中,預設光線亮度閾值可根據實際情況靈活設定,本說明書並不對此進行限制。若目標光線亮度超過預設光線亮度閾值,則判定瓶塞51被打開;否則,判定瓶塞51未被打開,並向服務端發送針對上述步驟404中發送的通知訊息的誤報訊息,以使得服務端取消針對該酒瓶為已開啟狀態的標記。需要說明的是,由於瓶口P在封裝部件被打開前後光線亮度的變化較為明顯,可將光線感測器設於瓶口P附近,從而提高根據光線亮度的變化來確認瓶塞是否被打開的準確率。當然,光線感測器也可被設置於酒瓶內的其他位置,本說明書並不對此進行限制。
步驟414,服務端取消針對酒瓶為已開啟狀態的標記。
在本實施例中,服務端若未接收到誤報訊息,則保持目前對酒瓶狀態的標記。同時,還可在酒瓶上標明向服務端請求查詢酒瓶狀態的連結(例如,二維碼、網址等)。那麼用戶可透過手機等用戶端根據該連結向服務端請求查詢(透過發送查詢請求,查詢請求中包含酒瓶的標識)歷史酒瓶狀態,並根據服務端返回(在接收到查詢請求後返回)自身記錄的酒瓶狀態來判斷該酒瓶是否被打開過。
圖9是一示例性實施例提供的一種電子設備的示意結構圖。請參考圖9,在硬體層面,該設備包括處理器902、內部匯流排904、網路介面906、記憶體908以及非易失性記憶體910,當然還可能包括其他業務所需要的硬體。處理器902從非易失性記憶體910中讀取對應的電腦程式到記憶體908中然後運行,在邏輯層面上形成容器狀態的通知裝置。當然,除了軟體實現方式之外,本說明書一個或多個實施例並不排除其他實現方式,比如邏輯裝置抑或軟硬體結合的方式等等,也就是說以下處理流程的執行主體並不限定於各個邏輯單元,也可以是硬體或邏輯裝置。
請參考圖10,在軟體實施方式中,該容器狀態的通知裝置應用於容器監測設備,所述容器監測設備預設處於關閉狀態,所述容器設有封裝部件,該裝置可以包括:
第一發送單元1001,當所述容器監測設備處於開啟狀態時,向服務端發送所述容器被開啟的通知訊息,以由所述服務端將所述容器標記為已開啟狀態,其中,所述容器監測設備可由所述封裝部件在被打開的情況下觸發開啟。
可選地,所述容器監測設備設有啟動開關,所述啟動開關在所述封裝部件未被打開的情況下處於關閉狀態,在所述封裝部件被打開的情況下被觸發開啟。
可選地,所述容器監測設備的電源與電源介面之間在所述封裝部件未被打開的情況下被絕緣體隔離,所述絕緣體與所述封裝部件連接,並在所述封裝部件被打開的情況下從所述電源與所述電源介面之間抽出,使得所述電源與所述電源介面電連接。
可選地,所述容器監測設備設有距離感測器,所述距離感測器可在所述容器監測設備處於開啟狀態時檢測與所述封裝部件之間的距離,所述裝置還包括:
第一獲取單元1002,獲取所述距離感測器檢測到的目標距離;
第二發送單元1003,當所述目標距離未超過預設距離閾值時,向所述服務端發送針對所述通知訊息的誤報訊息,以使得所述服務端取消針對所述容器為已開啟狀態的標記。
可選地,所述容器監測設備設有光線感測器,所述裝置還包括:
第二獲取單元1004,獲取所述光線感測器檢測到的目標光線亮度;
第三發送單元1005,當所述目標光線亮度未超過預設光線亮度閾值時,向所述服務端發送針對所述通知訊息的誤報訊息,以使得所述服務端取消針對所述容器為已開啟狀態的標記。
可選地,所述封裝部件設於所述容器的容器口部,所述光線感測器設於所述容器口部附近。
圖11是一示例性實施例提供的另一種電子設備的示意結構圖。請參考圖11,在硬體層面,該設備包括處理器1102、內部匯流排1104、網路介面1106、記憶體1108以及非易失性記憶體1110,當然還可能包括其他業務所需要的硬體。處理器1102從非易失性記憶體1110中讀取對應的電腦程式到記憶體1108中然後運行,在邏輯層面上形成容器狀態的通知裝置。當然,除了軟體實現方式之外,本說明書一個或多個實施例並不排除其他實現方式,比如邏輯裝置抑或軟硬體結合的方式等等,也就是說以下處理流程的執行主體並不限定於各個邏輯單元,也可以是硬體或邏輯裝置。
請參考圖12,在軟體實施方式中,該容器狀態的通知裝置應用於服務端,所述容器設有封裝部件,該裝置可以包括:
接收單元1201,接收容器監測端設備發送的所述容器被開啟的通知訊息,所述通知訊息由所述容器監測設備處於開啟狀態時發送,所述容器監測設備預設處於關閉狀態,並可由所述封裝部件在被打開的情況下觸發開啟;
標記單元1202,將所述容器標記為已開啟狀態。
上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、膝上型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。
在一個典型的配置中,電腦包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。
記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。
電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可編程唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶、磁碟儲存、量子記憶體、基於石墨烯的儲存媒體或其他磁性儲存設備或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫態性電腦可讀媒體(transitory media),如調變的資料信號和載波。
還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。
上述對本說明書特定實施例進行了描述。其它實施例在所附申請專利範圍的範疇內。在一些情況下,在申請專利範圍中記載的動作或步驟可以按照不同於實施例中的順序來執行並且仍然可以實現期望的結果。另外,在圖式中描繪的過程不一定要求示出的特定順序或者連續順序才能實現期望的結果。在某些實施方式中,多工處理和並行處理也是可以的或者可能是有利的。
在本說明書一個或多個實施例使用的術語是僅僅出於描述特定實施例的目的,而非旨在限制本說明書一個或多個實施例。在本說明書一個或多個實施例和所附申請專利範圍中所使用的單數形式的“一種”、“所述”和“該”也旨在包括多數形式,除非上下文清楚地表示其他含義。還應當理解,本文中使用的術語“和/或”是指並包含一個或多個相關聯的列出專案的任何或所有可能組合。
應當理解,儘管在本說明書一個或多個實施例可能採用術語第一、第二、第三等來描述各種資訊,但這些資訊不應限於這些術語。這些術語僅用來將同一類型的資訊彼此區分開。例如,在不脫離本說明書一個或多個實施例範圍的情況下,第一資訊也可以被稱為第二資訊,類似地,第二資訊也可以被稱為第一資訊。取決於語境,如在此所使用的詞語“如果”可以被解釋成為“在……時”或“當……時”或“回應於確定”。
以上所述僅為本說明書一個或多個實施例的較佳實施例而已,並不用以限制本說明書一個或多個實施例,凡在本說明書一個或多個實施例的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本說明書一個或多個實施例保護的範圍之內。The exemplary embodiments will be described in detail here, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with one or more embodiments of this specification. On the contrary, they are only examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the scope of the appended application. It should be noted that in other embodiments, the steps of the corresponding method may not be executed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe. Fig. 1 is a schematic structural diagram of a system for notifying the status of a container provided by an exemplary embodiment. As shown in Figure 1, the system may include a container monitoring device 11, a network 12, and a server 13. The container monitoring device 11 is located on the monitoring object, for example, it may be located inside or outside the monitoring object. Among them, the monitoring object (container in this embodiment) is provided with packaging components (for example, bottle caps, bottle stoppers, etc.) to package the container, and the container monitoring device 11 is preset to be in a closed state, and only when the packaging component is opened (that is, It can be understood that the opening is triggered when the container is opened, and a notification message is sent to the server 13 to inform the server that the container is opened. It can be seen that the container monitoring device 11 is only turned on when the packaging component is opened, and the packaging component is in a closed state when the packaging component is not opened. Therefore, the container monitoring device 11 has a longer battery life. For example, when a battery is used to supply power to the container monitoring device 11, based on the above-mentioned operating mechanism (the battery is required to supply power only when the packaging component is opened), a longer battery life can be maintained. The server 13 may be a physical server including an independent host, or the server 13 may be a virtual server carried by a host cluster. During operation, the physical server or virtual server can run a program on the server side of an application to implement related business functions of the application, such as when running a program based on the notification method of the container status on the server side , Can be implemented as the server side of the notification method of the container state. In the technical solutions of one or more embodiments of this specification, the server 13 can cooperate with the container monitoring device 11 to realize the notification solution of the container status. The network 12 for interaction between the container monitoring device 11 and the server 13 may include multiple types of wired or wireless networks. In an embodiment, the network 12 may include a public switched telephone network (PSTN) and the Internet. The container monitoring device 11 and the server 13 can establish a long connection through the network 12, so that the container monitoring device 11 sends push messages to the server 13 through the long connection. The following describes the notification scheme of the container status in this specification for different roles such as the container monitoring device 11 and the server 13 respectively. Please refer to FIG. 2, which is a flowchart of a method for notifying a container state according to an exemplary embodiment. As shown in Figure 2, the method is applied to a container monitoring device, the container monitoring device is preset to be in a closed state, and the container is provided with a packaging component. The method may include the following steps: Step 202, when the container monitoring device When in the open state, a notification message that the container is opened is sent to the server, so that the server will mark the container as the opened state. In this embodiment, the container monitoring device can be triggered to turn on when the packaging component is opened. It can be seen that by opening the packaging component to trigger the start of the container monitoring device and notifying the server that the monitored container is opened, the power consumption of the container monitoring device can be reduced while the container status is notified, and the container monitoring device can be improved. Endurance. There are two ways to trigger the opening of the container monitoring device by the packaging component: 1. Triggered by the start switch. In one embodiment, the container monitoring device is provided with a start switch, and the start switch can control the operation of the container monitoring device. Turn on and off. Wherein, the start switch is in a closed state when the packaging component is not opened, and is triggered to be turned on when the packaging component is opened. 2. Triggered by an insulator In another embodiment, based on the container monitoring device being powered by a power source (for example, a battery), when the power source of the container monitoring device is electrically connected to the power interface (the positive pole of the power source and the negative pole of the power source are respectively electrically connected to the corresponding power interface ), the power supply can supply power to the container monitoring equipment, then the container monitoring equipment can be turned on. Therefore, the connection relationship between the power supply and the power interface can be used to control the opening and closing of the container monitoring equipment. For example, the power supply and the power interface of the container monitoring device are isolated by an insulator when the packaging component is not opened, and the insulator is connected to the packaging component, and when the packaging component is opened Withdrawing from between the power supply and the power supply interface, so that the power supply is electrically connected to the power supply interface. In this embodiment, since the above is triggering the opening of the container monitoring device through the physical structure, the physical structure may be triggered by mistake. For example, due to the shaking of the container, the start switch of the container monitoring equipment is turned on by mistake or the insulator falls off, that is, the packaging part is not actually opened. According to the above judgment method, the judgment result is that the packaging part is opened, and then the container is judged to be opened. state. Therefore, other detection methods can be added on the basis of the above notification scheme to prevent false alarms, so as to further improve the accuracy of monitoring. In one embodiment, the container monitoring device can further confirm whether the packaging component is opened through the distance between the container monitoring device and the packaging component. As an exemplary embodiment, the container monitoring device is provided with a distance sensor, and the distance sensor can detect the distance to the packaging component when the container monitoring device is in an open state. Based on the above configuration of the distance sensor, the target distance detected by the distance sensor can be obtained, and when the target distance does not exceed a preset distance threshold (the preset distance threshold is used to determine whether the package component is opened ), sending a false positive message for the notification message to the server, so that the server cancels the mark that the container is in the opened state. In another embodiment, when the container is exposed to external light, if the packaging member (non-transparent, which can block at least part of the light) is not opened, the brightness of the light inside the container is low. Therefore, the container monitoring equipment (installed inside the container) can further confirm whether the packaging component is opened by detecting the brightness of the light inside the container. As an exemplary embodiment, the container monitoring equipment is provided with a light sensor, then the container monitoring equipment may first obtain the target light brightness detected by the light sensor, and if the target light brightness does not exceed a preset When the light brightness threshold (the preset light brightness threshold is used to determine whether the package component is opened), a false alarm message for the notification message is sent to the server, so that the server cancels the opened state for the container Mark. Among them, because the mouth of the container changes significantly in the brightness of the light before and after the packaging component is opened, the light sensor can be arranged near the mouth of the container (the packaging component is provided at the mouth of the container), thereby improving The accuracy of confirming whether the packaged part is opened according to the change of light brightness. Correspondingly, FIG. 3 is a flowchart of another method for notifying the state of a container provided by an exemplary embodiment. As shown in FIG. 3, the method is applied to the server, and the method may include the following steps: Step 302: Receive a notification message sent by the container monitoring terminal device that the container is opened. In this embodiment, the notification message is sent when the container monitoring device is in an open state. The container monitoring device is in a closed state by default, and can be triggered to open when the packaging component is opened. It can be seen that by triggering the start of the container monitoring device by opening the packaging component and notifying the server that the monitored container is opened, the power consumption of the container monitoring device can be reduced while notifying the server of the container status, which helps to improve the container. Monitor the endurance of the equipment. Step 304: Mark the container as an opened state. In this embodiment, a database can be configured on the server to record the container status of each container. For example, the mapping relationship between the identifier of each container and the container state (for example, it may include an opened state, an unopened state, etc.). It should be noted that the manner in which the container monitoring terminal device monitors the state of the container can refer to the relevant content of the embodiment shown in FIG. 2, which will not be repeated here. For ease of understanding, the following takes the container as a wine bottle as an example, combined with the interaction process between the container monitoring device and the server, and the notification scheme of the container status in this specification will be described in detail. Please refer to FIG. 4, which is an interactive diagram of a method for notifying a container state according to an exemplary embodiment. As shown in Fig. 4, the method may include the following steps: Step 402, the container monitoring equipment is started. In one embodiment, as shown in FIG. 5, the container monitoring equipment is provided with a start switch 5, where the start switch 5 may include a supporting structure 51, a circuit connection switch 52, and a spring 53. As shown in FIG. 5A, when the bottle stopper (the container is a wine bottle, and the corresponding packaging component is the bottle stopper) is not opened (that is, embedded in the bottle mouth), the support structure 51 squeezes the circuit connection switch 52, so that the circuit connection switch 52 The connected spring 53 is in a compressed state. It can be seen that at this time, because the circuit connection switch 52 does not conduct the circuit, the container monitoring equipment is not energized, that is, it is in the closed state. As shown in Figure 5B, when the stopper is opened (that is, the stopper leaves the mouth of the bottle and is located outside the mouth of the bottle), the support structure 51 moves with the stopper (for example, the support structure 51 can be connected to the stopper) so that it is no longer correct. The circuit connection switch 52 applies downward pressure. Then the circuit connection switch 52 is rotated counterclockwise under the action of the spring 53 (the spring 53 is in a compressed state and exerts an upward force on the circuit connection switch 52). It can be seen that at this time, because the circuit connection switch 52 conducts the circuit, the container monitoring device is energized, that is, it is in an on state. In summary, based on the structure of the start switch 5 described above, it can be realized that the start switch 5 is in the closed state when the packaging component is not opened, and is triggered to be turned on when the packaging component is opened. Of course, other start switches with similar structures can also be used to control the opening and closing of the container monitoring equipment, and this specification does not limit this. In another embodiment, the connection relationship between the power supply and the power interface can be used to control the opening and closing of the container monitoring equipment. As shown in Figure 6, an insulator 63 can be provided between the positive electrode 61 of the power supply and the power interface 62 of the container inspection equipment; wherein the negative electrode of the power supply (not shown in the figure) has been connected to the power interface (to be electrically connected to the negative electrode of the power supply, as shown in the figure). Not shown in) electrical connection. It can be seen that because the positive electrode 61 of the power supply of the container monitoring device is separated from the power interface 62 by the insulator 63, the circuit is not conducted, that is, the container monitoring device is not powered on and is in a closed state. The insulator 63 is connected to the bottle stopper (that is, moves with the bottle stopper). When the bottle stopper is opened, the insulator 63 is drawn out from between the positive electrode 61 of the power supply and the power interface 62 due to the movement of the bottle stopper, so that the positive electrode 61 of the power supply is connected to the power interface 62. Electrical connection, that is, the container monitoring equipment is powered on and started. It can be seen from the above method of starting the container monitoring equipment that when the packaging component is not opened, the container monitoring equipment is in the closed state, and the container monitoring equipment is triggered to start by opening the packaging component and notifying the server that the monitored container is opened. , Can reduce the power consumption of the container monitoring equipment while realizing the notification of the container status, which helps to improve the endurance of the container monitoring equipment. Step 404: The container monitoring device sends a notification message to the server. In step 406, the server marks the wine bottle as opened. In this embodiment, a database can be configured on the server to record the opening status of each wine bottle. For example, the server can maintain the mapping relationship shown in Table 1 according to the received notification messages sent from each container monitoring device: Table 1 Step 408, the container monitoring device obtains the target distance or target light brightness. Step 410: The container monitoring device determines whether it exceeds a preset distance threshold or a preset light brightness threshold. Step 412: The container monitoring device sends a false alarm message to the server. In this embodiment, since the above-mentioned FIGS. 5 and 6 are triggered by the physical structure to turn on the container monitoring device, the physical structure may be triggered by mistake. For example, the support structure 51 becomes loose or the insulator 63 falls off due to the shaking of the wine bottle (the container detection device shakes together), etc. (These situations will trigger the opening of the container monitoring device), but the packaging component is not actually opened. Therefore, other detection methods can be added on the basis of the above notification scheme to prevent false alarms, so as to further improve the accuracy of monitoring. In one embodiment, the container monitoring device can further confirm whether the bottle stopper is opened through the distance from the bottle stopper. As shown in Figure 7, the wine bottle 5 is provided with a stopper 51, and the container monitoring device 11 (located near the bottle mouth P) is provided with a distance sensor (not shown in the figure). The distance sensor can be installed in the container monitoring device 11 When in the open state, the distance from the bottle stopper 51 is detected. Based on the above configuration of the distance sensor, the container monitoring device 11 can obtain the target distance detected by the distance sensor, and when the target distance does not exceed the preset distance threshold (the preset distance threshold is used to determine whether the package component is opened ), sending a false positive message for the notification message sent in step 404 to the server, so that the server cancels the mark that the wine bottle is in the opened state. For example, suppose that the preset distance threshold is L3. As shown in Figure 7A, when the stopper 51 is not opened, the distance from the container monitoring device (that is, the location of the distance sensor) is L1 (that is, the current target distance detected by the distance sensor, L1<L3); As shown in FIG. 7B, the distance between the bottle stopper 51 and the container monitoring device when it is opened is L2 (that is, the current target distance detected by the distance sensor, L2>L3). Among them, L3 can be flexibly set according to the actual size of the wine bottle, which is not limited in this manual. When the target distance detected by the distance sensor does not exceed L3, it can be determined that the cork 51 has not been opened. At this time, a false positive message for the notification message sent in step 404 can be sent to the server, so that the server cancels the mark that the wine bottle is in the opened state. In another embodiment, when the wine bottle is exposed to external light, if the stopper (non-transparent, which can block at least part of the light) is not opened, the brightness of the light inside the wine bottle is low. Therefore, the container monitoring equipment (installed inside the container) can further confirm whether the cork is opened by detecting the brightness of the light inside the wine bottle. As shown in Figure 8, the container monitoring device 11 is provided with a light sensor (not shown in the figure). The container monitoring device 11 can first obtain the target light brightness detected by the light sensor, and when the target light brightness does not exceed the preset When setting the light brightness threshold (the preset light brightness threshold is used to determine whether the cork is opened), a false alarm message for the notification message sent in step 404 is sent to the server, so that the server cancels the opening of the wine bottle Status mark. For example, as shown in FIG. 8A, when the bottle stopper 51 is not opened, due to the blocking of the light by the bottle stopper, the brightness of the target light detected by the light sensor in the container monitoring device 11 is weak; as shown in FIG. 8B It is shown that when the bottle stopper 51 is opened, since the light shielding effect of the bottle stopper is lost, the target light intensity detected by the light sensor in the container monitoring device 11 is relatively strong. Among them, the preset light brightness threshold can be flexibly set according to actual conditions, and this specification does not limit this. If the target light brightness exceeds the preset light brightness threshold, it is determined that the bottle stopper 51 is opened; otherwise, it is determined that the bottle stopper 51 is not opened, and a false alarm message for the notification message sent in step 404 is sent to the server to make the service The end cancels the mark that the wine bottle is opened. It should be noted that since the light intensity of the bottle mouth P changes significantly before and after the packaging part is opened, the light sensor can be arranged near the bottle mouth P to improve the confirmation of whether the cork is opened according to the change of light intensity. Accuracy. Of course, the light sensor can also be set in other positions in the wine bottle, which is not limited in this specification. Step 414: The server cancels the mark that the wine bottle is in the opened state. In this embodiment, if the server does not receive the false alarm message, it keeps the current mark of the wine bottle status. At the same time, a link (for example, QR code, URL, etc.) for requesting the status of the wine bottle from the server can be marked on the bottle. Then the user can request a query from the server based on the link through a mobile phone or other user terminal (by sending a query request, the query request contains the identification of the wine bottle) historical wine bottle status, and return according to the server (return after receiving the query request) The status of the wine bottle recorded by itself is used to determine whether the wine bottle has been opened. Fig. 9 is a schematic structural diagram of an electronic device according to an exemplary embodiment. Please refer to Figure 9. At the hardware level, the device includes a processor 902, an internal bus 904, a network interface 906, a memory 908, and a non-volatile memory 910. Of course, it may also include hardware required for other services. . The processor 902 reads the corresponding computer program from the non-volatile memory 910 to the memory 908 and then runs it to form a notification device of the container status on a logical level. Of course, in addition to software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., which means that the execution body of the following processing flow is not limited to Each logical unit can also be a hardware or a logical device. 10, in the software implementation, the container status notification device is applied to container monitoring equipment, the container monitoring equipment is preset to be in a closed state, the container is provided with packaging components, and the device may include: Unit 1001, when the container monitoring device is in the open state, send a notification message that the container is opened to the server, so that the server will mark the container as opened, wherein the container monitoring device The opening can be triggered by the packaging component when it is opened. Optionally, the container monitoring device is provided with a start switch, the start switch is in a closed state when the packaging component is not opened, and is triggered to be turned on when the packaging component is opened. Optionally, the power supply and the power interface of the container monitoring device are isolated by an insulator when the packaging component is not opened, and the insulator is connected to the packaging component and is connected to the packaging component when the packaging component is opened. In this case, it is withdrawn from between the power supply and the power supply interface, so that the power supply is electrically connected to the power supply interface. Optionally, the container monitoring equipment is provided with a distance sensor, and the distance sensor can detect the distance to the packaging component when the container monitoring equipment is in an open state, and the device further includes: The first acquiring unit 1002 acquires the target distance detected by the distance sensor; the second sending unit 1003 sends the notification message to the server when the target distance does not exceed a preset distance threshold Falsely report a message, so that the server cancels the mark that the container is opened. Optionally, the container monitoring equipment is provided with a light sensor, and the device further includes: a second acquiring unit 1004, which acquires the brightness of the target light detected by the light sensor; and a third sending unit 1005, When the target light brightness does not exceed a preset light brightness threshold, a false alarm message for the notification message is sent to the server, so that the server cancels the mark that the container is in the opened state. Optionally, the packaging component is arranged at the mouth of the container, and the light sensor is arranged near the mouth of the container. Fig. 11 is a schematic structural diagram of another electronic device according to an exemplary embodiment. Please refer to Figure 11, at the hardware level, the device includes a processor 1102, an internal bus 1104, a network interface 1106, a memory 1108, and a non-volatile memory 1110. Of course, it may also include hardware required for other services. . The processor 1102 reads the corresponding computer program from the non-volatile memory 1110 to the memory 1108 and then runs it to form a notification device of the container status on a logical level. Of course, in addition to software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., which means that the execution body of the following processing flow is not limited to Each logical unit can also be a hardware or a logical device. 12, in the software implementation, the device for notifying the container status is applied to the server, and the container is provided with packaging components. The device may include: a receiving unit 1201 for receiving the container being sent by the container monitoring device An open notification message, the notification message is sent when the container monitoring device is in an open state, the container monitoring device is in a closed state by default, and can be triggered to open when the packaging component is opened; marking unit 1202 To mark the container as opened. The systems, devices, modules, or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. The specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game. A console, a tablet, a wearable device, or a combination of any of these devices. In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory ( flash RAM). Memory is an example of computer-readable media. Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital multi-function optical disc ( DVD) or other optical storage, magnetic cassette tape, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transient computer-readable media (transitory media), such as modulated data signals and carrier waves. It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element. The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the attached patent application. In some cases, the actions or steps described in the scope of the patent application may be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired result. In some embodiments, multiplexing and parallel processing are also possible or may be advantageous. The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the scope of the appended patent application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and includes any or all possible combinations of one or more associated listed items. It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to certainty". The foregoing descriptions are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. All within the spirit and principle of one or more embodiments of this specification, Any modification, equivalent replacement, improvement, etc. made should be included in the protection scope of one or more embodiments of this specification.