A smart medicine box device and a smart medicine box cover device, which are used in an automatic medicine packaging machine, the medicine box device comprises: a medicine box for storing medicine; a lid for binding to the medicine box; and a data processing circuit module The group is disposed on the lid or the medicine box for detecting a group of information of the medicines stored in the medicine box, and issuing a warning signal when the group information meets a preset state.一種智慧藥盒裝置與智慧藥盒蓋裝置,應用於自動包藥機中,藥盒裝置包含:藥盒,用以存放藥品;盒蓋,用以結合至該藥盒;以及資料處理電路模組,設置於該盒蓋或該藥盒上,用以偵測出該藥盒中所存放藥品的一組資訊,並於該組資訊符合一預設狀態時發出一警示信號。