Docs Menu
Docs Home
/

RFID: 실시간 제품 추적

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.

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.

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.

종단간 공급망 RFID 추적 아키텍처

그림 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를 사용해 데이터 정제, 변환 및 분석을 거쳐 데이터에서 유용한 인사이트를 도출합니다.

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.

Atlas 및 Zebra Technologies를 사용한 RFID 제품 아키텍처 예시

그림 2. Zebra Technologies와 MongoDB Atlas의 통합을 기반으로 한 RFID 제품 추적 아키텍처의 예시

This architecture consists of the following key components:

  • RFID 데이터 캡처: Zebra Technologies 123RFID 앱은 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.

1

클러스터 설정

  • 클라우드 공급자를 선택하세요.

  • 지역을 선택합니다.

  • 클러스터 사양(예: 인스턴스 크기, 저장소)을 구성합니다.

네트워크 보안

  • 네트워크 액세스를 구성하세요.

  • 에지 장치 및 애플리케이션 서버에 대한 IP 액세스 목록을 식별하세요.

  • Use user authentication.

  • 인벤토리 데이터베이스에 읽기 및 쓰기 권한을 가진 데이터베이스 사용자를 생성하세요.

연결

  • Obtain a connection string from MongoDB Atlas.

  • Use your connection string to connect your application to the cluster.

2

프로젝트 설정

  • 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 기기에서 블루투스를 활성화합니다.

  • Pair the RFID reader using the 123RFID app.

애플리케이션 실행하기

  • Connect your iOS device to Mac.

  • Select the device as target in Xcode.

  • 애플리케이션을 실행합니다.

3

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.

4

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.

  • 재고 확인 결과에 따라 경고 메시지를 표시합니다.

5

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 inventoryCheck collection.

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를 사용하여 대시보드를 웹 애플리케이션에 통합하세요.

  • 필요한 라이브러리와 컨텍스트를 가져옵니다.

  • Create an instance of ChartsEmbedSDK with your base URL.

  • 대시보드 속성을 지정된 기기에 정의하고 렌더링합니다.

  • 체인지 스트림을 시작하고 경고를 통해 실시간 업데이트를 처리합니다.

실시간 경고 구현

  • 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

  • AI 기반 소매: 개인화 및 정확성

  • 이벤트 기반 재고 관리 시스템

  • MongoDB 및 Dataworkz로 에이전트 RAG 챗봇 출시

돌아가기

디지털 영수증

이 페이지의 내용