My tests show that if i try and send in 64 byte chunks this is not a
problem but send 65 bytes i get -100 error
--- In "asc135" <> wrote:
>
> --- In "raaku66" <raaku66@> wrote:
> >
> >
> > I have used the pl2303.zip and copied and recompiled the modules,
> and
> > then taken the .o file and mounted
> > i still can only send a max of 64 bytes at a time,
> >
>
> Once you have the working driver that is the proper behavior on
that
> device. The write() man page says it is allowed to return with
less
> than the requested number of bytes written.
>
> If the return value doesn't match the requested number of bytes
(but
> is a positive value) you are supposed to adjust your buffer pointer
> and size by the number of bytes already sent then make the call
> again. Repeat until all bytes are transmit or an error occurs.
You
> must check for a negative return or a zero and handle those special
> cases. The man page describes this in detail.
>
> Regards,
> Amardeep
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|