複数RFIDリーダーの監視・操作を可能にするミドルウェアシステム。WebSocket/Socket通信によるリアルタイム通信を実現し、マルチデバイス対応の柔軟なアーキテクチャを採用。
1ブラウザ(JavaScript) → (ebs-gateway) → 複数リーダー制御
1画面アプリ(java、.Net、、) → (ebs-gateway) → 複数リーダー制御
サーバ → (ebs-gateway) → 複数リーダー制御
const socket = new WebSocket("ws://localhost:9001");
socket.onopen = () => {
socket.send(JSON.stringify({
command: "connect",
modelName: "FX9600",
params: { ip: "10.8.1.210", port: 5084 }
}));
};
using (TcpClient client = new TcpClient("127.0.0.1", 9001))
{
string command = "{\"command\":\"connect\", ... }";
byte[] bytes = Encoding.UTF8.GetBytes(command);
stream.Write(bytes, 0, bytes.Length);
}
sc create ebs-gateway binPath="C:\path\to\ebs-gateway.exe"
net start ebs-gateway
net stop ebs-gateway
{
"command": "connect",
"modelName": "FX9600",
"params": {
"ip": "10.8.1.210",
"port": 5084,
"timeout_ms": 5000
}
}
{
"status": "success",
"message": "リーダー接続完了"
}