Enhance retail inventory management with RFID. Technology and MongoDB Atlas for real-time tracking, improved accuracy, and data-driven insights across your supply chain.
業種: 小売
製品: MongoDB Atlas
パートナー: Zebra Technologies 123RFID app, Zebra RFID readers/scanners
ソリューション概要
小売業者は、膨大な量のデータを処理しながら、複数のチャンネルにわたって正確でコンシステントな在庫情報を確保する必要があります。しかし、従来の方法では現在の動的なマーケットの需要に対応する上で困難が生じます。
RFID technology offers a solution to this scenario. Retailers can gain real-time visibility into inventory levels by automatically tracking tagged items with electromagnetic fields. This implementation optimizes stock management, reduces labor costs, and elevates customer satisfaction.
To harness the full potential of RFID technology, MongoDB Atlas provides a robust platform for capturing, processing, and analyzing the massive datasets it generates.
RFID テクノロジーのメリット
You can efficiently manage product information and gain key advantages by integrating RFID technology with a robust database solution. The benefits include:
Improve inventory accuracy: Eliminate stock discrepancies and reduce out-of-stocks, ensuring products are where customers expect them to be.
Boost operational efficiency: Streamline processes like receiving, picking, and packing, leading to faster turnaround times and cost savings.
Enhance customer experience: Fulfill orders accurately and quickly, boosting customer satisfaction and loyalty.
Gain data-driven insights: Leverage detailed product and sales data to make informed business decisions and optimize product assortment.
参照アーキテクチャ
By attaching RFID tags to your products and setting up a network of readers, you can track items from the manufacturing floor to the end consumer. Examine the general architecture of a RFID system and a specific example with Zebra Technologies below.
RFID を用いたサプライチェーンの追跡
This architecture shows a comprehensive system with RFID technology to monitor product movement through the supply chain. MongoDB Atlas serves as the underlying data layer to manage and analyze RFID data.
図 1。エンドツーエンドのサプライチェーン RFID トラッキング アーキテクチャ
This architecture consists of the following key components:
RFID data collection: RFID tags attached to products using RFID capture information.
データ管理:MongoDB Atlas は収集された RFID データを保存および処理します。
データ分析: このシステムは MongoDB Atlas を利用して、データのクリーニング、変換、分析を通じて貴重なインサイトを抽出します。
RFID 製品トラッキングの実装
The RFID product tracking architecture diagram explains how to connect the Zebra Technologies 123RFID app to MongoDB Atlas using an API gateway. This setup enables real-time inventory management and ensures data accuracy.
図 2. Zebra Technologies と MongoDB Atlas の統合に基づく RFID 製品追跡アーキテクチャの例
This architecture consists of the following key components:
RFID データの取得: Zebra Technologies の 123 RFID アプリは、RFID タグを通じて製品情報を収集します。
データ統合: APIゲートウェイは、アプリからMongoDB AtlasにRFIDデータをシームレスに転送します。
データストレージと分析:MongoDB Atlas は RFID データの中央リポジトリとして機能し、包括的なデータ分析を可能にします。
ソリューションのビルド
The following guide explains how you can integrate a retail RFID product tracking application with MongoDB Atlas. It shows how to use this application for efficient inventory checks.
MongoDB Atlas のセットアップ
クラスター設定
クラウドプロバイダーを選択します。
リージョンを選択します。
クラスターの仕様を設定します(例:インスタンスサイズ、ストレージ)。
ネットワークセキュリティ
ネットワークアクセスを構成します。
エッジ デバイスとアプリケーション サーバーの IP アクセスリストを特定します。
Use user authentication.
インベントリデータベースの読み取りおよび書き込み権限を持つデータベースユーザーを作成します。
接続
Obtain a connection string from MongoDB Atlas.
Use your connection string to connect your application to the cluster.
Xcode でプロジェクトを設定してください
プロジェクト設定
Open the 123RFID project in Xcode, or open the project using the name you assigned.
Configure your project settings.
Add the required frameworks and libraries from the Zebra SDK.
Configure build settings, including library and framework search paths.
デバイスのペアリング
iOSデバイスでBluetoothを有効にしてください。
Pair the RFID reader using the 123RFID app.
アプリケーションを実行する
Connect your iOS device to Mac.
Select the device as target in Xcode.
アプリケーションを実行します。
Match inventory tags
The getMatchingTagList method in Objective-C compares RFID tags from the current physical inventory with a predefined list of tags, and updates the user interface accordingly. This procedure works as follows:
Retrieves the current inventory and the predefined tag list.
在庫タグをタグリストと比較して、一致するものを見つけます。
一致したタグを欠落タグリストから除きます。
Updates the UI with counts of unique and total tags.
Stops the inventory operation and confirms a complete match if all tags are accounted for.
マッチ確認の送信
The sendUrlRequestToFlag method sends a POST request to a specified URL to indicate the result of the inventory check. This process works as follows:
Initializes a POST request to the target URL.
Sets the JSON content type header.
Prepares a JSON payload with inventory check results.
Sends a POST request and logs the results.
在庫チェックの結果に基づいて警告メッセージが表示されます。
在庫チェックをリアルタイムで表示
Leverage MongoDB Change Streams for instant notifications and visualize the data using MongoDB Atlas Charts. The code sets up a change stream to monitor new inventory checks in a collection named inventoryCheck.
Below set ChartsEmbedSDK as a variable.
Below set pushToast as a variable.
Verify that real-time notifications and dashboard updates work properly.
エンドポイントの設定
Use MongoDB Change Streams to monitor changes in the
inventoryCheckcollection.
const startWatchInventoryCheck = async (dashboard, addAlert, utils) => { console.log("Start watching stream"); const runs = await getMongoCollection(utils.dbInfo.dbName, "inventoryCheck"); const filter = { filter: { operationType: "insert" } }; const stream = runs.watch(filter); const closeStreamInventoryCheck = () => { console.log("Closing stream"); stream.return(); }; try { for await (const change of stream) { console.log(change.fullDocument); addAlert(change.fullDocument.checkResult); dashboard.refresh(); } } catch (error) { console.error("Error watching stream:", error); } };
ダッシュボードの埋め込み
MongoDB Charts 埋め込み SDK を使用して、ダッシュボードを Web アプリケーションに統合します。
必要なライブラリとコンテキストをインポートします。
Create an instance of
ChartsEmbedSDKwith your base URL.ダッシュボードのプロパティを指定された div に定義し、レンダーします。
変更ストリームを開始し、アラートを用いてリアルタイムの更新を取り扱います。
リアルタイムアラートを実装する
Display success or error alerts based on the inventory check results using
pushToast.
統合の確実な実行
リアルタイム通知とダッシュボードの更新がシームレスに機能することを確認します。
正確な在庫データを維持し、不一致に迅速に対応します。
キーポイント
Provide real-time inventory management: Leverage RFID technology and MongoDB Atlas to achieve accurate and up-to-date inventory data.
Improve efficiency: Streamline inventory processes, reduce stockouts, and optimize operations through data-driven insights.
データに基づく決定: MongoDB Atlas Charts を使用してリアルタイムに可視化を行い、情報に基づいたビジネス上の決定を可能にします。
作成者
Francesco Baldissera, MongoDB
Pedro Bereilh, MongoDB
Rami Pinto、MongoDB
Sebastian Rojas Arbulu, MongoDB
Mehar Grewal、MongoDB
Prashant Juttukonda, MongoDB