s5vi's Motorola p2k phone page
February 05, 2012, 05:04:32 pm *
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]   Go Down
  Print  
Author Topic: ubuntu and p2kc  (Read 6108 times)
0 Members and 1 Guest are viewing this topic.
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« on: January 04, 2008, 01:20:16 pm »

gksudo -k p2kc

or

edit /etc/udev/rules.d/40-permissions.rules file as root
find this line:
SUBSYSTEM=="usb_device", MODE="0664"
change:
SUBSYSTEM=="usb_device", MODE="0666"
Logged

spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« Reply #1 on: February 04, 2008, 05:41:59 am »

I am trying to get this app running under Ubuntu 7.10, I've done the permissions file edit, it didn't seem to help, so I ran it with the gksudo, gksudo -k, and gksudo prefixes. I've managed to get into P2K mode, but no info on the phone. I can select my phone in the right or left side panes. How am I supposed to use this program?

I've used it under windows before and all was well, I could select my phone from the drop down list on the right and see my files. No dice here though. Really all the functionality I need is access to the seems. I can't even get moto4lin working. I'd really like to add some linux how to's on HTR.

Any help is appreciated.
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #2 on: February 04, 2008, 09:56:35 am »

You can try "sudo p2k-core" from command line
use "help" command
and "seem d 117 1" will download a seem
and "seem u filename" will upload a seem

ps: i have tried with ubuntu 6.04 not 7.10

Logged

spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« Reply #3 on: February 05, 2008, 06:03:55 am »

Code:
[code]Ok this is what I have done, I did a
[code]sudo chmod u+s usr/local/bin/p2k-core
which will allow me to run the program as normal user with root privileges. I edited the p2kc.conf file to run with the -s -v -m /dev/ttyACM0 options (verbose to get some info in the log window of the gui so I can paste it here, -m and the device name because I wasn't too sure if it was locating it properly. Here's where I stand. I figured out that p2k-core is not switching to P2K mode properly, heres what it gives me..
Code:
Looking for update.
P2k-core V_1.3 activated.
 Search for Motorola Test Command.
_Found: Motorola V3m
 Modem mode, device: /dev/ttyACM0
 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 ASCII characters

    000000: 41 54 2b 4d 4f 44 45 3d 38 0d 0a                AT+MODE=8..
!error: Modem device not found.
!error: device not found.
So, I know for a fact that I can switch to P2k mode using moto4lin. I did that and closed out of the program. Then I reran p2kc whilst already connected in P2k mode. Heres the output of that...
Code:
Looking for update.
P2k-core V_1.3 activated.
 Search for Motorola Test Command.
_Found: Motorola V3m
 Found Interface: Motorola Test Command
 Inteface number: 00, Endpoints: 00 00
 This is P2k phone.
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 01 00 20 00 08 00 00 01 17 00 01 00 00 00 00 ... ............
 Phone model:
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 02 00 4a 00 04 00 00 00 00 00 0a             ...J........
Still can't see any info on my phone model after the switch to P2k, same thing as moto4lin. Tried the info command and the program crashed. Next I tried running just p2k core - after re running moto4lin to switch back to p2k mode as p2kc did manage to switch it back to AT mode upon exiting Huh? Any who...heres the out put of running that and trying the info command there:
Code:
chris@Linux:~$ p2k-core -v -m /dev/ttyACM0
V_1.3 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: Motorola V3m
 Found Interface: Motorola Test Command
 Inteface number: 00, Endpoints: 00 00
 This is P2k phone.
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 01 00 20 00 08 00 00 01 17 00 01 00 00 00 00 ... ............
!error sending ctrl data.
 Phone model:
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 02 00 4a 00 04 00 00 00 00 00 0a             ...J........
!error sending ctrl data.
P2k:> info
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 03 00 20 00 08 00 00 01 17 00 01 00 00 00 00 ... ............
!error sending ctrl data.
 Phone model:
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 04 00 4a 00 04 00 00 00 00 00 0a             ...J........
!error sending ctrl data.
chris@Linux:~$

As you can see, my phone is a Motorola Razr V3M, if that helps any. I am really beginning to wonder if there is a p2k driver package I need, like I have it setup under windoze xp. I really don't understand how it's supposed to work under linux. I do have p2kmoto installed. When I run p2ktest, my phone is surely listed, but it say's no phone found. At one time, I had gone in to the source code and manually changed the VID and PID thinking that might solve the problem after I recompiled and installed it, so then it realized that I did have a phone and switched it to p2k yet once again no info could be gathered about the phone. I'm freaking dieing here, it makes me wonder if I plugged up a different phone if it would work like it is supposed to.

Any more extensive insight is greatly appreciated.[/code][/code]
« Last Edit: February 05, 2008, 06:09:16 am by spikejones » Logged
spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« Reply #4 on: February 05, 2008, 06:10:38 am »

^sorry for the long post, but I figured it would be more helpful in trouble shooting this problem. Stupid thing won't act right on the code tags for some reason.
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #5 on: February 05, 2008, 09:14:36 am »

Ahh, this is a CDMA phone.
I havent experience with cdmas yet.
win32 p2kc can manage it correctly?

In linux p2k-core dosent need any driver. It talks to device via libusb's native low level functions.
I suggest to use only p2k-core from command line, without "-s" arg
only "p2k-core -v" or "p2k-core -v -m"
and try "file l" and seem commands.

Logged

spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« Reply #6 on: February 05, 2008, 10:10:02 pm »

well, I'm booted into linux right now, so I can't open the application to see what version it is. I know its not version 0.5 though because it doesn't have the seem functionality. At any rate, I first found P2K commander for Windows at Hack the Razr. It works just fine for me as well as anyone else who downloaded it from the site. But now I'd like to get it up and running under Linux.
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #7 on: February 06, 2008, 08:29:59 am »

Maybe there is some things to explain/enlighten:
My development timeline:
-P2kcommander for win32, the latest version is 4.9.E, needs p2k-drivers
-p2k-core, this is a command line utilty based on libusb, standalone , not other drivers or  apps needed, actual version is 1.4 (1.5 is not published yet) available in p2kc bundle
-p2kc for linux, this is a gtk+ gui using p2k-core as engine, actual version is 0.5

If you have problems with linux version, at first we need to check out if p2k-core do its job correctly.
Pls open a gnome-terminal, go to p2k-core folder and run "sudo ./p2k-core -v"


Logged

fondfire
VIP
Newbie
*****
Offline Offline

Posts: 3


Email
« Reply #8 on: April 20, 2009, 09:11:31 am »

I have created Ubuntu packages for P2kCommander (AKA p2kc), which should greatly simplify using this great program on that Linux distribution.  To get the packages, visit my blog: http://fondfire.blogspot.com/2009/04/p2k-commander-for-ubuntu.html.
Logged
Pages: [1]   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 48 access attempts in the last 7 days.



Google visited last this page January 30, 2012, 01:29:57 pm