![](/img/trans.png)
[英]can I download entire SPSite or SPWeb to harddisk (ATM i can only download 1 folder)
[英]how can I manage the entire device (eg dispenser) of the ATM using the XFS standard?
好的,這不會是您所期望的,但您需要做的第一件事是:
在您通過文檔熟悉 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.