现在要做PDA串口通讯,可资料太少,各位有没有什么好的资料或什么高见,我看的.NET上MSDN自带的PDA开发档案,说的比较少,根本不够开发要用的资料,只说了用一个 DLL就别的什么也没有说了,在论坛上找也没有相关的详细说明,还请各位指教

解决方案 »

  1.   

    well强人。。
    虽然不太懂。。但是个人很想向这方面发展。。支持一下
      

  2.   

    我用EVC做过,如果您用的是红外,实际上你可以用SOCK,做IRDA应用就可以了~
      

  3.   

    mprogramer(微程) 
    你做的能共享不?socket做的。还真是很有价值学习的。我也正好需要呢。
      

  4.   

    mprogramer(微程)
      我做的是用232串口线,不是红外,请问你的EVC哪有下载的,我看用VS.NET中的C#是没有更多的人做过和没有更多的资料可找了,我上网连续找了几天都没找到相关资料
      

  5.   

    mprogramer(微程)
      我做的是用232串口线,不是红外,请问你的EVC哪有下载的,我看用VS.NET中的C#是没有更多的人做过和没有更多的资料可找了,我上网连续找了几天都没找到相关资料
      

  6.   

    哦,我忘了有usb转串口的工具了
    //Open the serial port.
    hPort = CreateFile ( _T("COM1:"),  
     GENERIC_READ | GENERIC_WRITE,  
     0,     
     NULL,
     OPEN_EXISTING, 
     0, 
     NULL); if ( hPort == INVALID_HANDLE_VALUE ) 
     {
    AfxMessageBox(_T(" open com port error !"));
    return ;
       
     }
    else
    AfxMessageBox(_T(" open com port Ok !"));DCB PortDCB;GetCommState (hPort,  &PortDCB);         // Structure de configurationPortDCB.DCBlength = sizeof (DCB); 
    PortDCB.BaudRate = 9600; 
    PortDCB.fBinary = TRUE; 
    PortDCB.fParity = TRUE; 
    PortDCB.fOutxCtsFlow = FALSE; 
    PortDCB.fOutxDsrFlow = FALSE; 
    PortDCB.fDtrControl = DTR_CONTROL_ENABLE; 
    PortDCB.fDsrSensitivity = FALSE; 
    PortDCB.fTXContinueOnXoff = TRUE; 
    PortDCB.fOutX = FALSE; 
    PortDCB.fInX = FALSE; 
    PortDCB.fErrorChar = FALSE; 
    PortDCB.fNull = FALSE; 
    PortDCB.fRtsControl = RTS_CONTROL_ENABLE; 
    PortDCB.fAbortOnError = FALSE; 
    PortDCB.ByteSize = 8; 
    PortDCB.Parity = NOPARITY; 
    PortDCB.StopBits = ONESTOPBIT; if (!SetCommState (hPort, &PortDCB))
     {
       AfxMessageBox(_T(" Set com port error !"));
     }
    else
    AfxMessageBox(_T(" Set com port Ok !"));
    }// 发送
    DWORD dwNumBytesWritten;
    BYTE Byte = 'a';if (!WriteFile (hPort, 
           &Byte,               
           1,    
           &dwNumBytesWritten,  
                             NULL))      AfxMessageBox(_T(" write error !"));else
    AfxMessageBox(_T(" write ok !"));
    // 关闭
    if(hPort!=INVALID_HANDLE_VALUE)
    if(!CloseHandle(hPort))
    AfxMessageBox(_T(" close error !"));
    else
    AfxMessageBox(_T(" close ok !"));
      

  7.   

    bitsbird(一瓢
       C#中而且是开发PDA的环境下,Createfile没有这个函数,不过现在我可能快把问题解决了,到时大家再研究研究
      

  8.   

    C#是应用层开发,底层系统开发MS提供了PlatForm Builder 5.0,这专门用于移动设备系统的开发,也就是底层开发.