s5vi's Motorola p2k phone page
February 10, 2012, 09:03:07 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 ... 4 5 [6]   Go Down
  Print  
Author Topic: Some useful functions  (Read 27232 times)
0 Members and 3 Guests are viewing this topic.
bahathir
Newbie
*
Offline Offline

Posts: 9


« Reply #75 on: October 16, 2007, 09:52:42 pm »

Hello World!.
This is my first post here.
I ran the p2k-core v0.F against V3xx, which I just purchased it today, and here is the result. It failed. to communicate with the phone.

GNU/Linux Slackware. Linux kernel 2.6.23, gcc 4.2.0

TQ and good luck.

Code:
# USB_DEBUG=255 ./p2k-core -d all -v
usb_set_debug: Setting debugging level to 255 (on)
usb_os_init: Found USB VFS at /proc/bus/usb
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 004
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 004 on 003
skipped 4 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
V_0.F 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: General Purpose USB Hub
_Found: UHCI Host Controller
skipped 4 class/vendor specific interface descriptors
_Found: Motorola Phone (RAZRV3xx)
_Found: UHCI Host Controller
_Found: UHCI Host Controller
_Found: EHCI Host Controller
 Search for Motorola Data Interface.
_Found: General Purpose USB Hub
_Found: UHCI Host Controller
skipped 4 class/vendor specific interface descriptors
_Found: Motorola Phone (RAZRV3xx)
 Found Interface: Motorola Data Interface
 Inteface number: 01, Endpoints: 81 01
Check that you have permissions to write to 003/004 and, if you don't, that you set up hotplug (http://linux-hotplug.sourceforge.net/) correctly.
USB error: could not claim interface 1: Device or resource busy
!error: claiming interface 1 failed


Code:
# lsusb -v

Bus 003 Device 004: ID 22b8:6402 Motorola PCS
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x22b8 Motorola PCS
  idProduct          0x6402
  bcdDevice            0.02
  iManufacturer           1 Motorola Inc.
  iProduct                2 Motorola Phone (RAZRV3xx)
  iSerial                 3 6150148F0D1E11
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           67
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 Motorola Communication Class
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              5 Motorola Communication Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  bytes 64 once
        bInterval              10
        CDC Header:
          bcdCDC               1.01
        CDC Call Management:
          bmCapabilities       0x03
            call management
            use DataInterface
          bDataInterface        1
        CDC Union:
          bMasterInterface        0
          bSlaveInterface         1
        CDC ACM:
          bmCapabilities       02
            line coding and serial state
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              6 Motorola Data Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
« Last Edit: October 16, 2007, 10:01:20 pm by bahathir » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #76 on: October 17, 2007, 07:45:12 am »

On some distributions , you dont have permission to manage usb devices with libusb
You must be root, or set rights for usb device.
On my mandriva this is no prob.

Logged

bahathir
Newbie
*
Offline Offline

Posts: 9


« Reply #77 on: October 17, 2007, 02:30:42 pm »

Yes, the program was ran using 'root' id. BTW, I am successful to connect to the phone.
This is what I did.

1) Run moto4lin-cvs
2) Enable P2k mode. moto4lin cannot see anything at this point
3) Now, run the p2k-core, and, voila ... it successfully connected to the phone.

Ok, Now, mmm.. how delete 'Web Session' ? Smiley Which file that I need to delete? mmmm..
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #78 on: October 17, 2007, 02:45:28 pm »

On my V3 and E398 there is:
/a/WebSession

 
Logged

bahathir
Newbie
*
Offline Offline

Posts: 9


« Reply #79 on: October 17, 2007, 03:00:10 pm »

TQ very much. Done Smiley.
Logged
digitol
Newbie
*
Offline Offline

Posts: 6


« Reply #80 on: October 20, 2007, 09:13:31 am »

Hello. I have written a Mac GUI to sv5i's P2kcore app. It is very crude/beta right now so please don't expect much. Here is the link:
http://digitol.homeip.net/macp2k.zip

You will need libusb installed in order for this to work.

Mac OS 10.4 Tiger users can get libusb here: http://www.tcsn.net/mont/libusb.pkg.zip

-Digitol-
« Last Edit: November 05, 2007, 02:01:35 am by digitol » Logged
synthead
Newbie
*
Offline Offline

Posts: 1


Email
« Reply #81 on: October 13, 2009, 07:40:12 pm »

I thought this utility was very useful to me, so I created a package in the Arch Linux AUR for it.  Thought I would share.

http://aur.archlinux.org/packages.php?ID=31173

Keep up the good work Smiley
Logged
Pages: 1 ... 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 120 access attempts in the last 7 days.



Google visited last this page January 04, 2012, 09:32:47 am