Hi Seb, there was a SLIP API change. I had removed my basic slip samples since I need to re-test them.
http://groups.google.com/group/jallib/browse_thread/thread/1b23070508e8bccc# Please note that: 1. slip_packet_size_buffer lines are not commented out anymore for polling method 2. there is no "byte in packet_size" for slip_received_packet_callback 3. added line "var byte packet_size = slip_packet_size_buffer" to callback procedure. Please try the following: -- Choose buffer to hold packet sizes const byte QUEUE02_SIZE = 10 include queue02 -- include the queue/buffer library alias slip_packet_size_buffer is queue02_nb -- alias buffer for packet sizes alias slip_packets_available is queue02_nr_used -- alias for number of packets avail -- -- callback for when a full slip packet is received (not needed for isr) procedure slip_received_packet_callback() is var byte packet_size = slip_packet_size_buffer if packet_size > SLIP_MTU then -- your packet may have a problem, it is too large end if -- send the decoded message back to the host for packet_size loop -- for each byte in packet usb_serial_data = slip_rx_buffer -- do something with the packet data end loop end procedure -- 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.
