是周立公的片子,调用的是easyd12,怎样把单片机内存储的数据通过usb通讯,存储到上位机的软件中,希望大家给个思路,谢谢

解决方案 »

  1.   

    查一下,应该提供了接口,就是 .sys 什么的驱动。并且写驱动不是delphi的强项...
      

  2.   

    硬件本身提供了usb驱动,但是根据easyd12.dll里面提供的函数如下;
    function  ReadPort1(DataArray: array of Byte; iLen :integer):integer;stdcall;external 'EasyD12.dll';
    function  ReadPort2(DataArray: array of Byte; iLen :integer):integer;stdcall;external 'EasyD12.dll';
    function  WritePort1(DataArray: array of Byte;iLen :integer):integer;stdcall;external 'EasyD12.dll';
    function  WritePort2(DataArray: array of Byte;iLen :integer):integer;stdcall;external 'EasyD12.dll';可是我用readport2时,总是出问题,还有就是不知道单片机发来的数据是什么格式,接受的时候是不是分高位地址和地位地址,