s5vi's Motorola p2k phone page
February 09, 2012, 09:41:55 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Over 30000 member ! Under heavy spammer attack ! Cleaning in progress !
V-6.0.0 with CDMA support is available now.
To become VIP: you can do it via PayPal: http://www.el-co.hu/p2k05/paypal.html
 
   Home   Help Login Register  
Pages: 1 2 [3] 4 5 6   Go Down
  Print  
Author Topic: Some useful functions  (Read 27224 times)
0 Members and 2 Guests are viewing this topic.
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #30 on: August 20, 2007, 06:11:26 pm »

pls post output for "./p2k-core -v" and info command

Logged

napsack
VIP
Newbie
*****
Offline Offline

Posts: 22


« Reply #31 on: August 21, 2007, 02:57:36 am »

Quote
Power-Mac-G5:/Users/Shared/p2k-core-V_0.8 admin$ ./p2k-core -v
V_0.8 Commands: exit,conn,info,seem,file,fold,mode,help,list
Shell commands and command history (up/down arrows) also works.
---------------------------------------------------------------
 Search for Motorola Test Command.
_Found: USB Gaming Mouse
_Found: Hub in Apple Extended USB Keyboard
_Found: Apple Extended USB Keyboard
_Found: Motorola Phone (RAZRV3xx)
 Search for Motorola Data Interface.
_Found: USB Gaming Mouse
_Found: Hub in Apple Extended USB Keyboard
_Found: Apple Extended USB Keyboard
_Found: Motorola Phone (RAZRV3xx)
 Found Interface: Motorola Data Interface
On OSX CDCACM kernel driver must be unload,
 please enter admin password for sudo.
Password:
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDC.kext succeeded
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMControl.kext succeeded
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMData.kext succeeded
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCDMM.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCECMControl.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCECMData.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCEEM.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCWCM.kext failed
 Inteface number: 01, Endpoints: 81 01
 Switching to P2kmode (cca. 2-3 sec)
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 41 54 2b 4d 4f 44 45 3d 38 0d 0a
 Received echo: AT+MODE=8
Recvd Data
    000000: 41 54 2b 4d 4f 44 45 3d 38 00
 Search for Motorola Test Command.
 Found Interface: Motorola Test Command
 Inteface number: 01, Endpoints: 82 01
 This is P2k05 phone.
P2k:> mode r
You must be reconnect when phone restarted.
!error sending bulk data.P2k:> file l
0000/00000 000
help
^C
Power-Mac-G5:/Users/Shared/p2k-core-V_0.8 admin$ ./p2k-core -v
V_0.8 Commands: exit,conn,info,seem,file,fold,mode,help,list
Shell commands and command history (up/down arrows) also works.
---------------------------------------------------------------
 Search for Motorola Test Command.
_Found: USB Gaming Mouse
_Found: Hub in Apple Extended USB Keyboard
_Found: Apple Extended USB Keyboard
_Found: Motorola Phone (RAZRV3xx)
 Found Interface: Motorola Test Command
 Inteface number: 01, Endpoints: 82 01
 This is P2k05 phone.
P2k:> info
 Phone model:
Power-Mac-G5:/Users/Shared/p2k-core-V_0.8 admin$
Logged
rasputin007
VIP
Jr. Member
*****
Offline Offline

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #32 on: August 21, 2007, 10:16:18 am »

Here is the screenshot of "p2k-core -v" and "info" command of v.0.8 and Maxx.
Logged

Nothing is impossible, only miracles take a bit longer!
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #33 on: August 21, 2007, 08:47:50 pm »

I have took a deep breath and revise the p2k05 code again
There was a horribble silly bug....

http://www.el-co.hu/dl/p2k-core-V_0.9.zip

pls post output of  "./p2k-core -v" again.....
Logged

napsack
VIP
Newbie
*****
Offline Offline

Posts: 22


« Reply #34 on: August 22, 2007, 05:13:38 am »

Seems to be working better now.

Quote
Power-Mac-G5:/Users/Shared/p2k-core-V_0.9 admin$ ./p2k-core -v
V_0.9 Commands: exit,conn,info,seem,file,fold,mode,help,list
Shell commands and command history (up/down arrows) also works.
---------------------------------------------------------------
 Search for Motorola Test Command.
_Found: USB Gaming Mouse
_Found: Hub in Apple Extended USB Keyboard
_Found: Apple Extended USB Keyboard
_Found: Motorola Phone (RAZRV3xx)
 Search for Motorola Data Interface.
_Found: USB Gaming Mouse
_Found: Hub in Apple Extended USB Keyboard
_Found: Apple Extended USB Keyboard
_Found: Motorola Phone (RAZRV3xx)
 Found Interface: Motorola Data Interface
On OSX CDCACM kernel driver must be unload,
 please enter admin password for sudo.
Password:
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDC.kext succeeded
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMControl.kext succeeded
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMData.kext succeeded
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCDMM.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCECMControl.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCECMData.kext succeeded
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCEEM.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCWCM.kext failed
 Inteface number: 01, Endpoints: 81 01
 Switching to P2kmode (cca. 2-3 sec)
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 41 54 2b 4d 4f 44 45 3d 38 0d 0a
 Received echo: AT+MODE=8
Recvd Data
    000000: 41 54 2b 4d 4f 44 45 3d 38 00
 Search for Motorola Test Command.
 Found Interface: Motorola Test Command
 Inteface number: 01, Endpoints: 82 01
 This is P2k05 phone.
P2k:> mode r
You must be reconnect when phone restarted.
!error sending bulk data.P2k:> file l
0000/00000 000^C
Power-Mac-G5:/Users/Shared/p2k-core-V_0.9 admin$ ./p2k-core -v
V_0.9 Commands: exit,conn,info,seem,file,fold,mode,help,list
Shell commands and command history (up/down arrows) also works.
---------------------------------------------------------------
 Search for Motorola Test Command.
_Found: USB Gaming Mouse
_Found: Hub in Apple Extended USB Keyboard
_Found: Apple Extended USB Keyboard
_Found: Motorola Phone (RAZRV3xx)
 Found Interface: Motorola Test Command
 Inteface number: 01, Endpoints: 82 01
 This is P2k05 phone.
P2k:> info
 Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 14 00 00 00 00 01 00 20 00 00 00 00 00 00 00
    000010: 08 01 17 00 01 00 00 00
!timeout receiving answer.
 Phone model:
 Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 10 00 00 00 00 02 00 4a 00 00 00 00 00 00 00
    000010: 04 00 00 00
!timeout receiving answer.
Power-Mac-G5:/Users/Shared/p2k-core-V_0.9 admin$
Logged
rasputin007
VIP
Jr. Member
*****
Offline Offline

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #35 on: August 22, 2007, 11:30:28 am »

This is v.0.9 with Maxx and "p2k-core -v" and with "info" command which works a bit better, but still quits the program


« Last Edit: August 22, 2007, 11:32:03 am by rasputin007 » Logged

Nothing is impossible, only miracles take a bit longer!
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #36 on: August 22, 2007, 01:34:41 pm »

We are almost finished, 0.A has status query loop now......

http://www.el-co.hu/dl/p2k-core-V_0.A.zip
Logged

rasputin007
VIP
Jr. Member
*****
Offline Offline

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #37 on: August 23, 2007, 01:00:48 am »

Here are the results from v.0.A and Maxx, some progress, but still quits the program.
p2k-core -v and info command

mode r  (did not reboot)

seem d 4a 1, did not download

list and file command
Logged

Nothing is impossible, only miracles take a bit longer!
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #38 on: August 23, 2007, 06:53:58 pm »

Some fixes again in p2k05 satus query
(libusb manage things different than win32 native)

and make logging more verbose if you run with "-v" arg.

http://www.el-co.hu/dl/p2k-core-V_0.B.zip

Seem down and upload tested and operational.....(with my e398)

and some scrshot from my gtk gui experiment:



« Last Edit: August 23, 2007, 07:00:18 pm by s5vi » Logged

napsack
VIP
Newbie
*****
Offline Offline

Posts: 22


« Reply #39 on: August 24, 2007, 07:50:02 am »

If you have any other additional requests feel free to ask.

Quote
Power-Mac-G5:/Users/Shared/p2k-core-V_0.B admin$ ./p2k-core -v
V_0.B Commands: exit,conn,info,seem,file,fold,mode,help,list
Shell commands and command history (up/down arrows) also works.
---------------------------------------------------------------
 Search for Motorola Test Command.
_Found: USB Gaming Mouse
_Found: Hub in Apple Extended USB Keyboard
_Found: Apple Extended USB Keyboard
_Found: Motorola Phone (RAZRV3xx)
 Found Interface: Motorola Test Command
 Inteface number: 01, Endpoints: 82 01
 This is P2k05 phone.
P2k:> file
Command format must be: file d|u|r|a|l [Filename] [Fileattrib|Destination folder]
d:download, u:upload r:remove a:attrib l:list
P2k:> file l
0000/00000 000_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 0c 01 00 00 00 01 00 4a 00 00 00 00 00 00 01
    000010: 00 00 00 00 07 00 2f 00 61 00 2f ff fe 00 2a 00
    000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    000110: 00
_Sent Query  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 00 10 00 00
!error reading P2k05 status.
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 11 00 00 00 00 02 00 4a 00 00 00 00 00 00 00
    000010: 05 00 00 00 08 03
_Sent Query  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 00 10 00 00
!error reading P2k05 status.

At Ow Filesize Filename with path
P2k:> mode r
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 0c 00 00 00 00 03 00 22 00 00 00 00 00 00 00
    000010: 00
_Sent Query  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 00 10 00 00
!error reading P2k05 status.
You must be reconnect when phone restarted.
P2k:> info
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 14 00 00 00 00 04 00 20 00 00 00 00 00 00 00
    000010: 08 01 17 00 01 00 00 00 00
_Sent Query  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 00 10 00 00
!error reading P2k05 status.
 Phone model:
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 10 00 00 00 00 05 00 4a 00 00 00 00 00 00 00
    000010: 04 00 00 00 0a
_Sent Query  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 02 00 10 00 00
!error reading P2k05 status.
Power-Mac-G5:/Users/Shared/p2k-core-V_0.B admin$
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #40 on: August 24, 2007, 03:44:39 pm »

This p2k05 packet need some investigation.
We can spy usb traffic, pls read this: http://www.linuxjournal.com/node/7582/

in one word: echo 1 > /sys/module/usbcore/usbfs_snoop
this command fills /var/log/message file with usb log data

I tried it with pclinuxos kernel 2.6.18.8.tex5, and mandriva 2007.1 with 2.6.17-5mdv kernel, i think most of modern kernels include it.

p2k05 owners (Rasputin007) pls
connect phone
echo 1 > /sys/module/usbcore/usbfs_snoop
enter "info a" command
echo 0 > /sys/module/usbcore/usbfs_snoop
and post the tail of /var/log/message

Then i can compare usb traffic with p2kc one on win32...thanks

you will got something like this:
Aug 24 16:04:05 localhost kernel: usb 5-1: usbdev_ioctl: CONTROL
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: bRequest=01 bRrequestType=c1 wValue=0001 wIndex=0008 wLength=0031
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: data 01 00 00 00 00 2b 80 07 80 20 00 23 00 00 00 00 45 00 33 00 39 00 38 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 24 16:04:05 localhost kernel: usb 5-1: usbdev_ioctl: CONTROL
Aug 24 16:04:05 localhost kernel: usb 5-1: control write: bRequest=02 bRrequestType=41 wValue=0000 wIndex=0008 wLength=000c
Aug 24 16:04:05 localhost kernel: usb 5-1: control write: data: 00 08 00 4a 00 04 00 00 00 00 00 0a
Aug 24 16:04:05 localhost kernel: usb 5-1: usbdev_ioctl: CONTROL
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: bRequest=00 bRrequestType=c1 wValue=0000 wIndex=0008 wLength=0022
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: data 00 00
Aug 24 16:04:05 localhost kernel: usb 5-1: usbdev_ioctl: CONTROL
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: bRequest=00 bRrequestType=c1 wValue=0000 wIndex=0008 wLength=0022
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: data 00 01 00 14
Aug 24 16:04:05 localhost kernel: usb 5-1: usbdev_ioctl: CONTROL
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: bRequest=01 bRrequestType=c1 wValue=0001 wIndex=0008 wLength=001a
Aug 24 16:04:05 localhost kernel: usb 5-1: control read: data 01 00 00 00 00 14 80 08 80 4a 00 0c 00 00 00 2f 00 61 ff fe 00 2f 00 62 00 00
« Last Edit: August 24, 2007, 06:21:44 pm by s5vi » Logged

rasputin007
VIP
Jr. Member
*****
Offline Offline

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #41 on: August 24, 2007, 09:50:15 pm »

OK first the screen shot with v.0.B and "p2k-core -v" and "info a"


Then or better during that I did the commands you asked for, but first I got permission denied, then after "su" I still got permission denied, that's when I found out that I had to add one more folder (parameters) into the command line.
Anyway I have done a "copy & paste" with every usb-whatever I found, so it is quite long and I put it in a txt file, which is best read in Wordpad.
Maxx-USB_snoop.rar
Sorry I do not know what is what, but I hope you can figure it out!
Logged

Nothing is impossible, only miracles take a bit longer!
napsack
VIP
Newbie
*****
Offline Offline

Posts: 22


« Reply #42 on: August 25, 2007, 12:03:27 am »

I've been trying to find out why usbprober/logger isn't picking up anything from and to the phone.

edit: I forgot to reinstall ISUSBfamily log  Tongue
http://home.earthlink.net/~napsack1/logs/USB_logger.txt.7z
« Last Edit: August 25, 2007, 12:20:09 pm by napsack » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #43 on: August 25, 2007, 08:02:59 pm »

Thanks for useful logs.....(actually i cannot read info from Osx log)
Now i see the difference:
My p2k05 work based on my win32 code, it send all protocol bytes itself (first byte 0x02 means data flow direction=out)
But libusb do this and with libusb we dont need to send this only the remaining part of packet
a shot from win32 trace P2kc do its job with p2k05 phone:



and kernel log with p2k-core:
Aug 24 21:21:04 linux2 kernel: usb 1-1: transfer_buffer_length=25
Aug 24 21:21:04 linux2 kernel: usb 1-1: actual_length=25
Aug 24 21:21:04 linux2 kernel: usb 1-1: data: 02 14 00 00 00 00 01 00 20 00 00 00 00 00 00 00 08 01 17 00 01 00 00 00 00
Aug 24 21:21:04 linux2 kernel: usb 1-1: usbdev_ioctl: REAPURBDELAY
Aug 24 21:21:04 linux2 kernel: usb 1-1: usbdev_ioctl: SUBMITURB

We can see if the first 5 byte is duplicated in p2k-core code because both libusb and i sent them.....

will be fixed tomorrow

meanwhile you can try p2kcommander for linux:



http://www.el-co.hu/dl/P2kCommander-0.1.tar.gz

just configure, make, make install
copy p2k-core into /usb/local/bin manually and run p2kcommander
click re-read button
nothing useful yet only proof-of-concept

« Last Edit: August 25, 2007, 08:12:47 pm by s5vi » Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #44 on: August 26, 2007, 08:48:55 pm »

Ok, man here is V_0.C

http://www.el-co.hu/dl/p2k-core-V_0.C.zip

Changes:

- fist of all new p2k05 code
- new option -d xxxx (where xxxx is Vendor Id Motorola=22b8) if you specify Vendor Id p2k-core will search only this device's interfaces
- if your phone is in memcard mode p2k-core can switch it to p2k-mode (just like p2kcommander)

Enjoy....
Logged

Pages: 1 2 [3] 4 5 6   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!

Bad Behavior has blocked 118 access attempts in the last 7 days.



Google visited last this page February 03, 2012, 06:57:23 pm