Hi Matt,

This looks interesting and have a question about it. You're defining a
packet length (10 in your sample), then:

-- SEND DATA WITHOUT AN ARRAY
slip_start_packet()
for 10 loop            -- loop through all bytes in packet
   slip_send_data(5)   -- send each byte via serial port (partly SLIP
encrypted)
end loop
slip_end_packet()


Couldn't slip_send_data() handles the max number of data byte in a packet,
with an internal counter ? This way you wouldn't have to
call slip_end_packet (and maybe even slip_start_packet). A
slip_flush_packet() would force the end of a packet, whatever the size, and
reset counter. This would hide some unnecessary complexity to users. And
this would allow variable length packet. For this reason I'm not sure how
useful is TX  array.


Thanks
Seb




2010/7/6 mattschinkel <[email protected]>

> > Later, I want to do all 3 ports. Would I have to set up some sort of
> > packet to write decimal form byte values to all 3 ports? Any examples
> > of this out there?
>
> Hi John, I created a SLIP library and sample + sample, It may be
> useful for you.
>
> http://groups.google.com/group/jallib/browse_thread/thread/edda53563274f82c#
>
> You will have to convert the send/receive procedures in the lib to
> your programming language
>
>
> Others, I will try to make a SLIP ISR for a slave PIC. I will use the
> queue lib. Do we have a ISR slave serial port sample?
>
> Matt
>
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<jallib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jallib?hl=en.
>
>


-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to