簡體   English   中英

如何使用 XFS 標准管理 ATM 的整個設備(例如自動取款機)?

[英]how can I manage the entire device (eg dispenser) of the ATM using the XFS standard?

我目前正在從事一個 ATM 項目。 ATM 由四個主要設備(取款機、票據接受器、讀卡器、打印機)組成。 據我所知,要管理所有 ATM 設備,您需要使用 XFS 標准。 我使用 C# 編程語言工作。 我在這里這里在網上找到了一些例子,但我不明白。

我的問題是:如何使用 XFS 標准管理 ATM 的整個設備(例如自動取款機)?

好的,這不會是您所期望的,但您需要做的第一件事是:

  • 您應該從您將使用的 ATM 提供商處收到開發文檔。
  • 此外,請查看CEN XFS 文檔,因為這些文檔至少在 NCR 的情況下用作標准操作的參考。

在您通過文檔熟悉 API 后,您可以使用您在問題中引用的 C# API 實現中的任何一個來實際使用文檔中引用的設備命令。

CEN XFS API 是純 c-API,因此所有命令都使用非常有限的 function 集。 這些函數的參數被傳遞給設備特定的服務提供者(您使用 XFS 管理器打開)。 有些設備,比如紙幣回收設備,實際上是復合設備,需要多次打開。 設備支持的每個 CEN XFS 接口一次。

在非常高級的偽代碼中,這是管理 XFS 設備的流程:

Open XFS Manager
For each device:
  Open device
  Register to listen device events
  Check device status (and capabilities in case you are working in multi ATM environment so that you know what device you are dealing this time).
  Setup device if need be and recover any error conditions reported in device status

Start the service loop (Providing ATM service to customers if ATM is healthy and
  maintenance personnel to execute tasks like maintaining faulty
  devices and loading cash into the ATM etc.)

這絕不是一件容易的事,因此我建議您首先通過 ATM 制造商提供的課程獲得基礎知識,您的軟件旨在處理這些課程。 我認為所有人都會有自己的培訓計划,盡管我只能說 NCR 提供的 ATM 就是這種情況。

XFS.Net 和 XFS4NET 到目前為止還不是完整的 CEN XFS 的.Net 包裝器實現。

將本機 C 數據結構轉換為 .Net/C# 並轉換回 C 絕非易事(我自己為此做了一個實現)。 You have to handle all basic types, strings, Unicode strings, arrays of strings that are terminated by two 0 characters, arrays of pointers, and so on, together with the memory management functions provided by the XFS manager.

XFS4IoT 完全不同。 它應該是未來,但與 CEN XFS 3.x 不兼容。 KAL 為 Xfs4IoT 提供開源框架https://github.com/KAL-ATM-Software

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM