当链接上对方服务器和端口以后,得到了一组时间数据
[0]=2   [1] =76   [2] =83  ... ... [21] =124    [22] =3    [23] =112
我将这组数据利用如下代码翻译—>strRec = System.Text.Encoding.GetEncoding("gb2312").GetString(recevie);得到的效果是—>LS|DA100607|TI153910|w这样看来大致明白了这组数据的意思 100607代表2010年6月7日。153910代表下午3点39分10秒。然后我开始研究发送数据,以便服务器返回给我数据,接口文档中提供了一些数据给我,但是发送出去服务器不给我返回数据,大家帮我想想猜猜大概应该是怎么发送?文档例子如下—>
<1-[0/0]JLS|DA010131|TI101410|©<--10:14:10 sent DATA  
-1>[0/0]JLD|DA010131|TI101410|V#1.01|IFPB|©-->10:14:37 received DATA -1>[0/0]JLR|RI...-->10:14:37 received DATA -1>[0/0]JLR|RI...-->10:14:37 received DATA -1>[0/0]JLR|RI...-->10:14:37 received DATA -1>[0/0]JLA|DA010131|TI101410|©-->10:14:37 received DATA <1-[0/0]JLA|DA010131|TI101410|©<--10:14:37 sent DATA -1>[2/6]JLS|DA010131|TI101410|©-->10:14:20 received DATA
<1-[0/0]JLS|DA010131|TI101410|©<--10:14:10 sent DATA
 <1-[0/0]JLA|DA010131|TI101410|©<--10:14:37 sent DATA
-1>[2/6]JLE|DA010131|TI101410|©-->10:14:20 received DATA
 <1-[0/0]JLE|DA010131|TI101410|©<--10:14:37 sent DATA-1>[2/6]JLS|DA010131|TI101410|©-->17:16:20 received DATA<1-[0/0]JLA|DA010131|TI101410|©<--17:16:21 sent DATA 
 NOTE: The MICROS-Fidelio Interface will NOT respond with an LA to an LA while in Alive status !!!
General considerations: 
Micros Fidelio recommends that a system using FIAS does not send a record right at startup but first waits for incoming records for up to 3 seconds. 
If the Micros-Fidelio interface is running while the external system start, will it receive a record from the Micros-Fidelio interface in this timeframe. In TCP connections this will be a LS record. In RS232 connections it will more likely be an ENQ character.
The external system should initiate the communication if no record is received within 3 seconds.
Communication can be initiated by sending LS or LD. 

解决方案 »

  1.   

    不太理解的文档开头说的话 如下接口测试
    请您在编写程序时参考FIDELIO INTERFACE APPLICATION SPECIFICATION VERSION 2.11Field and Records
    1. Communications and Link Control 
    此类项介绍连接的状态
    LS- Link Start  连接开始
    LA-Link Alive  连接
    LE-Link End  连接断开
    LD-Link Description 连接说明
    LR-Link Record 连接记录
      
       接口程序启动后,IFC 会发送LS,请在收到后回复ACK
       发送LD
       LR (在此定义所有需要的记录项,以及每个记录项所需的字段)进行初始化.如果在这里没有初始化的记录项,IFC不会回复.请注意:记录项内的字段 在文档中标注为红色字的,都是必须的,其他为可选择.   全部的LR初始化完成,请发LA请求连接建立,IFC 会回复LA   在测试时,需要双方中断再重新连接,在断开时,请发送LE,通知IFC.