ts-7000
[Top] [All Lists]

[ts-7000] Re: PL 2303 AND USBSERIAL .O FILES

To:
Subject: [ts-7000] Re: PL 2303 AND USBSERIAL .O FILES
From: "asc135" <>
Date: Wed, 25 Apr 2007 13:07:32 -0000
--- In  "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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU