Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - devc-serpci - problem: (1 Item)
   
devc-serpci - problem  
Hi, 
I am running the devc-serpci driver with a Kontron card (CP346)  vid=0x1415, did=0x9501 which is presumably compatible 
with this driver. When reading there is no problem but when I am sending data the only way to get the data trough is to 
write 16 bytes at the time and flush the output. As you can imagine this is slower than sucking melasa through  a straw.


Can anyone give me some hints I found this problem was reported before but none one addresses it.
(http://community.qnx.com/sf/discussion/do/listPosts/projects.bsp/discussion.bsp.topc7626).

Running QNX version 6.5.

Thank you,
Javier


Settings:
    handle_ = ::open(config_.modem_device_.c_str(), O_RDWR | O_NOCTTY | O_NONBLOCK, 0);    
    memset(&options, 0x00, sizeof(options));
    options.c_cflag |= (CLOCAL | CREAD);   
    options.c_cflag &= ~PARENB;
    options.c_cflag &= ~CSTOPB;
    options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
    options.c_oflag &= ~OPOST;
    options.c_iflag &= ~(IXON | IXOFF | IXANY);
    options.c_cc[VMIN]   = 0;
    options.c_cc[VTIME]  = 0;