Maybe 0x0 is a hardware processed escape sequence. In that case <br>you'd have to find the sequence that escapes the escape. Just a idea.<br>-- K<br><br><div class="gmail_quote">2010/3/21 Harald Welte <span dir="ltr"><<a href="mailto:laforge@gnumonks.org">laforge@gnumonks.org</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Just another intermediate update:<br>
<br>
1) I've pushed my current debugging code to the uart-debug branch<br>
<br>
   Simply run osmocon + layer23 and the hello_world.bin image.  layer23<br>
   will send a 62 byte sized HLDC message every 10 seconds to the phone,<br>
   and various instances of the code will print what they see.  The<br>
   payload of the packet is supposed to be<br>
        0a 00 00 01 02 03 04 05 06 07 00 01 02 03 04 05 06 07<br>
              00 01 02 03 04 05 06 07 00 01 02 03 04 05 06 07<br>
              00 01 02 03 04 05 06 07 00 01 02 03 04 05 06 07<br>
              00 01 02 03 04 05 06 07 00 01 02 03 04 05<br>
<br>
   but what the firmware sees is:<br>
        0a 00       02 03 04 05 06 07       02 03 04 05 06 07<br>
                    02 03 04 05 06 07       02 03 04 05 06 07<br>
                    02 03 04 05 06 07       02 03 04 05 06 07<br>
                    02 03 04 05 06 07       02 03 04 05<br>
<br>
   So as you can see, every '00 01' sequence has been chopped out,<br>
   despite 10ms delays between the characters. If you change the<br>
   payload to not include zero-bytes, all bytes are received fine.<br>
<br>
2) Enabling various misc UART interrupt sources and checking for error<br>
   conditions in LSR does not help<br>
<div><div></div><div class="h5"><br>
Regards,<br>
        Harald<br>
--<br>
- Harald Welte <<a href="mailto:laforge@gnumonks.org">laforge@gnumonks.org</a>>           <a href="http://laforge.gnumonks.org/" target="_blank">http://laforge.gnumonks.org/</a><br>
============================================================================<br>
"Privacy in residential applications is a desirable marketing option."<br>
                                                  (ETSI EN 300 175-7 Ch. A6)<br>
<br>
</div></div></blockquote></div><br>