http://www.el-co.hu/dl/p2k-core.zipNothing useful yet, only device detection and switching to p2kmode
I detect device by its name not by VID/PID as moto4lin
PID may change with new phones, but if name remain the same (i hope)
On P2kc (win32) i also detect dev by name and has a lot of various phone confirmed to work
I send AT+mode=8 command directly to the usb dev. Not to the acm /modem.
This is also was a hurt on varios system (incl win32, example COM14)
usb bulk device is the same on all systems
I hope my method work on all system with all phones......
here is the screen:
[s5vi@localhost p2k-core]$ make clean
rm p2k-core.o
rm p2k-core
[s5vi@localhost p2k-core]$ make
make p2k-core
make[1]: Entering directory `/home/s5vi/projects/p2k-core'
gcc -g -c p2k-core.c
gcc -g -o p2k-core p2k-core.c -I/usr/include -L -lm -lc -L/usr/lib -lusb
make[1]: Leaving directory `/home/s5vi/projects/p2k-core'
[s5vi@localhost p2k-core]$ ./p2k-core
error: Motorola AT device not found!
[s5vi@localhost p2k-core]$ ./p2k-core
Found Interface: Motorola Data Interface
Interface 00 is claimed by kernel driver: cdc_acm
Interface 00 is detached from kernel driver: cdc_acm
Endpoints: 82 01
Switching to P2kmode (cca. 2-3 sec)
Received echo: AT+MODE=8
Found Interface: Motorola Test Command
Inteface number: 08, Endpoints: 00 00
This is P2k phone.
[s5vi@localhost p2k-core]$
pls try it on your linux/mac box with your phone (p2k and p2k05) and report.....