我尝试创建一些代码来在delphi中实现zvt-protocol。为了连接到终端,我使用 ether TIDTCPClient 或 turbopack 的 comport-component。两者都可以连接到 ingenico 终端 IPP480。它显示文本行“a32de”2 秒。我不知道为什么!
我可以发送 zvt-documentation 中描述的几个命令行,但终端没有显示或执行任何操作。
procedure TForm1.Button1Click(Sender: TObject);
var
lSBefehl : String;
begin
lSBefehl := '';
IdTCPClient1.Host := eip.IPAddress; // IP des EC-Cash-Gerätes
IdTCPClient1.Port := eport.IntValue;
if not IdTCPClient1.Connected then begin
IdTCPClient1.Connect; //that is working!
end;
if not IdTCPClient1.Connected then begin
ShowMessage('not connected!');
end;
lSBefehl := Chr(6)+Chr(0)+Chr(6)+Chr(209)+Chr(255); //Nothing!
IdTCPClient1.SendCmd(lSBefehl);
end;
是否有用于 zvt 字节序列的测试工具?或者您知道正确的字节序列顺序的解决方案吗?
最好的问候克里斯蒂安