Re: PL2303 driver guide ?



"trungnl" <ngolamtrung@xxxxxxxxx> wrote in message
news:z7SdnaMGFbQ4sRDeRVn-rw@xxxxxxxxxxxxxxx
>
> >You have to poll the PL2303 for that.
>
> Thanks Meindert,
>
> I have implemented a polling mechanism to get data from PL2303 to the
> embedded host. But there is another problem
>
> According to PL2303's spec, the chip has an 256-byte-buffer for each Tx
> and Rx operation. But when I transfer a large amount of data (about 3KB)
> to the RS232 interface of PL2303, the USB host can only read a few bytes
> from the USB interface. It seems that the data in PL2303's buffer has lost
> so I cannot read all the data transfered to RS232 interface.

Without knowing all the details, I'd say: poll more often. You have to at
least poll often enough not to let your 256 buffer fill up.

Meindert


.



Relevant Pages

  • Re: infinite loops -- waiting for some event
    ... > again), which will most likely include an infinite loop, with the ... selectand or poll() are the most common ways to do what you describe ... techniques like /dev/kqueue or signals and most recently and ... the remaining data in the buffer. ...
    (comp.unix.programmer)
  • Re: [RFC] Heads up on a series of AIO patchsets
    ... I must admit that kevent seems to be the cleaner way to support this, ... although I see some advantages for the aio variant. ... interface, and that is that it duplicates the event infrastructure ... (In fact i'd like to see all the 'poll table' code to be unified into ...
    (Linux-Kernel)
  • Re: Switch 3750 - Interface VLAN counters
    ... I would like to poll a 3750 switch to get in/out bandwidth for some ... VLAN interfaces. ... But in/out counters of interface vlan 3 don't seems to be with the ...
    (comp.dcom.sys.cisco)
  • Re: Aggregating many ports into one for tcpdump server.
    ... pseudo-interface for tcpdump to hold onto and to poll. ... add all the ports to the lagg interface and set the ...
    (freebsd-net)
  • Re: UDP packets dropping
    ... Both implementation works that is gives me a poll status implying ... When the packets are sent at a very high rate and my socket buffer is ... polling via poll can tell you nothing about dropped packets ...
    (comp.os.linux.networking)