:: Re: [maemo-leste] Tony's ofono vers…
Página Principal
Delete this message
Reply to this message
Autor: Tony Lindgren
Data:  
Para: Pavel Machek
CC: maemo-leste, Sebastian Reichel
Assunto: Re: [maemo-leste] Tony's ofono version, usb networking was Re: Hack for ofono gobi qmi interface for droid4
* Tony Lindgren <tony@???> [200425 21:13]:
> * Pavel Machek <pavel@???> [200425 18:34]:
> > But yes, this should be doable, too.
>
> OK. So let's try to first figure out a way for ofono raw read/write
> functions using the current /dev/motmdm* interface. Then after that
> works, let's try to flip over to using /dev/gsmmux* interface. I need
> to update the kernel patches for that too for a generic serdev-ngsm.


FYI, here's what I've used for generating the ID while working
on getting the remaining kernel driver bugs sorted out:

struct timespec ts;

clock_gettime(CLOCK_REALTIME, &ts);
id = (ts.tv_sec % 100) * 100;
id += (ts.tv_nsec / 1000000) / 10;
...
cmd = sprintf("U%i04", id);

But maybe there's some easier way to come up with a mostly
unique command ID.

Regards,

Tony