<p dir="ltr">The theoretical maximum size is a little over 64k, since the length field is 16 bits. I think it would make sense to use that as a maximum in the kernel.</p>
<div class="gmail_quote">On Aug 19, 2012 3:40 PM, "Bjørn Mork" <<a href="mailto:bjorn@mork.no">bjorn@mork.no</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did anyone ever see a definite QMI message size specification? The<br>
qmi_wwan driver currently uses 512 bytes, but I do not remember where I<br>
got that from...<br>
<br>
Anyway, I am suspecting that it should be increased. I've been<br>
experimenting with injecting XTRA data to speed up GPS aquisition.<br>
Uploading chunks exceeding the driver message size (i.e. splitting the<br>
chunks in several USB control messages) does not seem to work. If I<br>
increase the driver message limit to 2048 bytes, I can successfully<br>
upload the XTRA database in 1536 byte chunks (which seems to be maximum<br>
supported).<br>
<br>
So I guess I should make this change to the driver, unless I was doing<br>
something wrong here. Has anyone else experimented with sending QMI<br>
messages > 512 bytes?<br>
<br>
But it would nice to quote a reference when making this change.<br>
Changing one arbitrary number for another arbitrary number looks bad.<br>
<br>
<br>
Bjørn<br>
_______________________________________________<br>
libqmi-devel mailing list<br>
<a href="mailto:libqmi-devel@lists.freedesktop.org">libqmi-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libqmi-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libqmi-devel</a><br>
</blockquote></div>