s5vi's Motorola p2k phone page
February 10, 2012, 09:39:22 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 ... 6   Go Down
  Print  
Author Topic: Some useful functions  (Read 27244 times)
0 Members and 1 Guest are viewing this topic.
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« on: July 16, 2007, 07:31:04 am »

P2k-core now has some useful function, but mainly need more test with various phones.
You need libusb on your system
First you need to unzip files
Enter "make" to compile code
On some system to run successfully you need sudo ./p2k-core, otherwise only ./p2k-core
You may enter "p2k-core -v" to make verbose and see usb packet contents (this is important to test various phones)
There are some short commands:
exit,conn,info,seem,file,fold,mode
exit,conn,info are basic cmds
info a, info (volume name without /)  this also select the volume for further file operations
file l   this will list one filelist record, repeat this command to get more filenames
seem d 117 1    this download seem 117/1 to file "0117_0001.seem"
mode r,mode s,mode f   these switch phone to various states (restart,suspend,flash)

if you enter command withour arg, you will get help txt (seem,file,fold,mode)

On OSX you need some manual work, detach device from kernel driver which has exclusive rights.
see file "run"
sudo kextunload /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDC*.kext
./p2k-core
sudo kextload /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDC*.kext





http://s5vi.vxxxstuff.com/p2k-core/p2k-core.zip
« Last Edit: July 16, 2007, 07:32:48 am by s5vi » Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #1 on: July 18, 2007, 07:38:42 am »

Modified open_dev and filelist completed (file l)

http://s5vi.vxxxstuff.com/p2k-core/p2k-core.zip
Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #2 on: July 31, 2007, 08:30:26 pm »

V-0.1 with file download function.
http://s5vi.vxxxstuff.com/p2k-core/p2k-core-V_0.1.zip

using:

conn
info a
file l
file d /a/mobile/picture/Fire.gif
« Last Edit: August 01, 2007, 07:39:56 am by s5vi » Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #3 on: August 06, 2007, 08:23:39 pm »

some improvement: using readline (to keep cmd history prevcmd:up/down arrows)
using:
conn
info a
file l
list
file d /a/mobile/picture/Some.jpg

completion precentage counter.....

http://s5vi.vxxxstuff.com/p2k-core/p2k-core-V_0.2.zip
Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #4 on: August 09, 2007, 10:41:18 am »

new release:
pls read readme.txt and help.txt
http://www.el-co.hu/dl/p2k-core-V_0.4.zip

flash tutorial coming soon....
Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #5 on: August 09, 2007, 08:30:13 pm »

http://www.el-co.hu/dl/p2k-core_0.4.swf
Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #6 on: August 13, 2007, 11:30:37 am »

new release:

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

now you can create/remove folders.

pls note if you create a folder, you muts upload at least one file, to make non-empty that folder
otherwise folder will be invisible, but usable if you dont forget its name

Logged

zolookas
Newbie
*
Offline Offline

Posts: 1


« Reply #7 on: August 14, 2007, 07:18:55 pm »

I have problems running it on ubuntu 7.04:
If i launch it without root privilegies (doesn't matter phone connected or disconnected) i get Segmentation fault
Code:
zolookas@home-ad5sz131:~/p2kcore$ ./p2k-core
V_0.5 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.
Segmentation fault (core dumped)
zolookas@home-ad5sz131:~/p2kcore$
But it's fine when running root. Maybe there is possible to run program without having root privilegies or is it required?
And maybe p2kcore should upload some empty file to newly created folder like other programs do?
« Last Edit: August 14, 2007, 07:21:48 pm by zolookas » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #8 on: August 14, 2007, 07:38:00 pm »

I ran it under mandriva. It run without roort priv.
Yes i have reports from Ubuntu user , he must sudo....
to investigate pls run USB_DEBUG=255 ./p2k-core -v

Yes empty folder not shown , imho this is p2k feature
getting filelist give us only files with path. if no files - no listed entry

Actually what is your phone type?
« Last Edit: August 14, 2007, 07:39:38 pm by s5vi » Logged

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

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #9 on: August 15, 2007, 12:21:06 am »

Here is a screenshot of Mandrivia 2007 and my Maxx using p2k-core v.0.4.
Logged

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

Posts: 769



WWW Email
« Reply #10 on: August 15, 2007, 07:33:31 am »

Rasputin, thanks for testing
it seem some improvement, MAXX detected as p2k05, and endpoint info correct.
Now we need to fix packet content.
pls run ./p2k-core -v
to see usb packets and pls use V_0.5

Logged

s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #11 on: August 15, 2007, 03:09:46 pm »

If p2k-core works only with root privileges or sudo
pls check permissions to device in /dev/bus/usb/

Here is V_0.6 with p2k05 fixes
and now you can download a file without getting filelist
you must know the filename with full path
actually p2k-core will make a getting filelist with wildcard (eg /a/*.mp3)

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

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

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #12 on: August 17, 2007, 12:15:06 am »

It worked a bit more with version 0.6 and my Maxx, but still it stops after a few packets and quits.

Logged

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

Posts: 22


« Reply #13 on: August 17, 2007, 12:58:43 am »

First of all I have to thank you for the Linux/Osx support. Before core I used to run p2k commander under virtual pc, unfortunately the newer versions don't run for me anymore. I decided to try out p2k-core since I'm more experience on this platform. Ever since I upgraded my phone to a v3xx I was forced to upgrade p2k too Tongue

Well here's the deal. I 'make mac' ed p2k-core it compiled fine. One of my problems is I can't run this without sudo, it most likely has to do with some usb device permission as you posted above. Second is this. These are the order of events. I connect my phone, and I wait a bit for libusb to pick up. The I run p2k-core. I run info and the programs quits. I'm not sure if its a segfault or some bus error.

Here's the attachment. By the way I don't know the file system on my v3xx, I have yet to see it.

Edit: Ugh I can't upload the pic. Besides I get a similar result. After typing info the program just quits.

Edit2:
Quote
V_0.6 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.
shell-init: could not get current directory: getcwd: cannot access parent directories: Permission denied
Password:
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDC.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMControl.kext failed
kextunload: unload kext /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBCDCACMData.kext failed
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:> info
 Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 00 01 00 20 00 00 00 00 bf ff 00 08 00 00 01 17
    000010: 00 01 00 00 00 00
!error sending bulk data. Phone model:
 Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
    000000: 00 02 00 4a 00 00 00 00 bf ff 00 04 00 00 00 00
    000010: 00 0a
« Last Edit: August 17, 2007, 01:03:34 am by napsack » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #14 on: August 17, 2007, 07:56:32 am »

P2k05 seems to need some work here.....
I think send command is good, but read answer returns zero.

This can be check with "mode r" command , this resets phone, and no matter if some answer received or not, you can see if phone powercycled or not.
pls try it out.
or "mode f" command to switch flash mode

Thanks for testing (I havent p2k05 phone to do).....

Osx: I see in your log CDCACM driver not preset (removing failed)
This means your V3xx is not act as usb modem? In systemProfiler there is no modem device?

pls do "USB_DEBUG=255 ./p2k.core -v"
« Last Edit: August 17, 2007, 08:02:05 am by s5vi » Logged

Pages: [1] 2 3 ... 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 120 access attempts in the last 7 days.



Google visited last this page January 14, 2012, 01:28:55 am