s5vi's Motorola p2k phone page
February 10, 2012, 06:57:20 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: p2k commander on Mandriva 2008.1  (Read 2948 times)
0 Members and 1 Guest are viewing this topic.
spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« on: August 23, 2008, 10:40:57 pm »

Okay, heres the dealio. I've never once been able to get p2k commander running properly in any linux distro in any form whatsoever.

I firstly tried the latest few releases built for linux to no avail, the program will never suspend the phone properly and I have to manually do it from terminal with the command
Code:
echo AT+MODE=8 > /dev/ttyACM0

after the swap to p2k mode and opening the program it still fails to see the phone. So I tried a different route and attempted to use windows based version through wine emulation.

First things first was to issue the following command from terminal (as super user):
Code:
ln -fs /dev/ttyACM0 ~/.wine/dosdevices/com1

Then I opened the latest version of p2k commander through wine emulation and set the preferences to use com1 (and turn of the update announcement). At this point the phone is still in AT mode.

Went to the drop down menu and selected p2k mobile phone and the phone made its tone indicating that it swapped modes. However, the application failed to detect the phone after the swap. A check of lsusb confirms that the phone did successfully swap modes. Checking further along though, it appears as though the swap to p2k mode causes the phone to loose its association with /dev/ttyACM0 and by proxy the com1 association. There is no other communications association made after the switch to p2k mode. Any thoughts on how to correct this issue?
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #1 on: August 24, 2008, 05:51:26 pm »

You can use this: http://www.el-co.hu/smf/index.php/topic,248.0.html
This (p2k-core/p2kc) is native linux app.
Logged

spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« Reply #2 on: August 24, 2008, 06:29:51 pm »

yeah... thats what I've tried before but the phone never gets recognized by that application and I seriously believe that it has to do with the fact that when swapping to p2k mode, it drops the /dev/ttyACM0 association:

Code:
[chris@localhost ~]$ su
Password:
[root@localhost chris]# lsusb
Bus 001 Device 003: ID 0781:b6b7 SanDisk Corp.
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 011: ID 22b8:2a62 Motorola PCS E815 GSM Phone (AT)
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 15d9:0a33
Bus 002 Device 001: ID 0000:0000
[root@localhost chris]# echo AT+MODE=8 > /dev/ttyACM0
[root@localhost chris]# lsusb
Bus 001 Device 003: ID 0781:b6b7 SanDisk Corp.
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 012: ID 22b8:2a61 Motorola PCS E815 GSM Phone (P2K)
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 15d9:0a33
Bus 002 Device 001: ID 0000:0000
[root@localhost chris]# dmesg | tail
usb 3-1: USB disconnect, address 11
usb 3-1: new full speed USB device using uhci_hcd and address 12
usb 3-1: configuration #1 chosen from 1 choice
[root@localhost chris]# ls -l /dev/ttyACM0
ls: cannot access /dev/ttyACM0: No such file or directory
[root@localhost chris]#

so i dont think that any version of p2k commander would be able to communicate with the phone if the com port association is dropped without another one being created after the swap.
« Last Edit: August 24, 2008, 06:31:22 pm by spikejones » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #3 on: August 24, 2008, 07:46:46 pm »

E815 is pretty old model, i think p2k-core can switch it to p2k mode.
try "p2k-core -m /dev/ttyACM0 -v" and post output
Logged

spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« Reply #4 on: August 24, 2008, 08:11:07 pm »

thats actually wrong info on the product list... it is actually Motorola Razr v3m (hence the PID number)

Code:
[chris@localhost ~]$ su
Password:
[root@localhost chris]# p2k-core -m /dev/ttyACM0 -v
V_1.5 Commands: exit,conn,info,seem,file,fold,mode,help,list
Shell commands and command history (up/down arrows) also works.
---------------------------------------------------------------
 Search for Motorola USBLAN Interface.
_Found: Motorola V3m
 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..
 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:> exit
Bye...
[root@localhost chris]# lsusb
Bus 001 Device 003: ID 0781:b6b7 SanDisk Corp.
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 014: ID 22b8:2a61 Motorola PCS E815 GSM Phone (P2K)
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 15d9:0a33
Bus 002 Device 001: ID 0000:0000
[root@localhost chris]# dmesg | tail
usb 3-1: new full speed USB device using uhci_hcd and address 13
usb 3-1: configuration #1 chosen from 1 choice
cdc_acm 3-1:1.0: ttyACM0: USB ACM device
usb 3-1: USB disconnect, address 13
usb 3-1: new full speed USB device using uhci_hcd and address 14
usb 3-1: configuration #1 chosen from 1 choice
usb 3-1: usbfs: USBDEVFS_CONTROL failed cmd p2k-core rqt 65 rq 2 len 16 ret -110
usb 3-1: usbfs: USBDEVFS_CONTROL failed cmd p2k-core rqt 65 rq 2 len 12 ret -110
[root@localhost chris]# 
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #5 on: August 25, 2008, 12:45:32 pm »

CDMA phones cannot answer info request
Even in win32 p2kc receive "volume name error" when try to get info from CDMA
What will happen if you ignore that "!error sending ctrl data"
and try to get filelist with "file l"

But IterfaceNumber=0 sounds bad
Logged

spikejones
Newbie
*
Offline Offline

Posts: 8


Email
« Reply #6 on: August 25, 2008, 02:04:00 pm »

i guess i understand what you are saying now, but  I just find it odd that the program works for my phone under windows but not really for linux. strange.

when i do the command file l i receive a hex dump of sorts, Im not totally positive if I did the command properly though:
Code:
P2k:> file l
0000/00000 000_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 09 00 4a 01 00 00 00 00 00 00 07 00 2f 00 61 ...J........./.a
    000010: 00 2f ff fe 00 2a 00 00 00 00 00 00 00 00 00 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                         ........
!error sending ctrl data.
_Sent  Data  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F ASCII characters

    000000: 00 0a 00 4a 00 05 00 00 00 00 00 08 03          ...J.........
!error sending ctrl data.

At Ow Filesize Filename with path

P2k:>       

perhaps you may be interested in the output of lsusb -v command (just learned that switch)
here is for p2k mode:
Code:
Bus 003 Device 003: ID 22b8:2a61 Motorola PCS E815 GSM Phone (P2K)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x22b8 Motorola PCS
  idProduct          0x2a61 E815 GSM Phone (P2K)
  bcdDevice            0.02
  iManufacturer           1 Motorola Inc.
  iProduct                2 Motorola V3m
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           43
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration         23 MCU Logging+test cmd+accy
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      3
      bInterfaceProtocol    255
      iInterface              6 Motorola Test Command
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2
      bInterfaceProtocol    255
      iInterface              5 Motorola MCU Data Logger
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol    255
      iInterface              9 Motorola Accessory
Device Status:     0x0000
  (Bus Powered)

and this is for AT mode:
Code:
Bus 003 Device 004: ID 22b8:2a62 Motorola PCS E815 GSM Phone (AT)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x22b8 Motorola PCS
  idProduct          0x2a62 E815 GSM Phone (AT)
  bcdDevice            0.02
  iManufacturer           1 Motorola, Inc.
  iProduct                2 Motorola V3m
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           67
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    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              3 Motorola Communication Interface
      CDC Header:
        bcdCDC               1.09
      CDC Call Management:
        bmCapabilities       0x03
          call management
          use DataInterface
        bDataInterface          1
      CDC ACM:
        bmCapabilities       0x0f
          connection notifications
          sends break
          line coding and serial state
          get/set/clear comm features
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              3 Motorola Communication Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
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 128 access attempts in the last 7 days.



Google visited last this page January 17, 2012, 06:20:09 am