ma1co / sony-pmca-re Goto Github PK
View Code? Open in Web Editor NEWReverse Engineering Sony Digital Cameras
License: MIT License
Reverse Engineering Sony Digital Cameras
License: MIT License
Not an issue per-se. I recently came across a website with a bracketing app for Sony cameras, using this site to load the APK.
I have lost the link and no amount of googling csn find it again :-(
I guess someone must know what it was ( the thread that announced it on DPreview has been deleted). If its legit, can it be added to the apps section of the website that lists just the demo app.
Hi, Works brilliantly with a couple of exceptions.
When executing ./pmca-v0.3-osx install -o outfile.txt
I get the following error message:
./pmca-v0.3-osx install -o outfile.txt
Using libusb
Looking for Sony devices
Traceback (most recent call last):
File "<string>", line 170, in <module>
File "<string>", line 164, in main
File "<string>", line 76, in installCommand
File "pmca/usb/driver/libusb.py", line 35, in listDevices
File "usb/core.py", line 875, in get_active_configuration
File "usb/core.py", line 102, in wrapper
File "usb/core.py", line 242, in get_active_configuration
usb.core.USBError: [Errno None] Configuration not set
pmca returned -1
Any clue what is going on? I got it working fine on a windows machine but just not on my (development) Macbook.
I have to add that the https://playmemoriescameraapps.com also doesn't play nice together with the A6000 on my mac (tried with Safari) and I did install the plugin .pkg
and restarted my Mac. But it just fails to switch the camera into 'Download mode' The error is likely related but maybe you can help me out pinpointing what it could be.
For what it's worth I'm running:
OSX: El Capitan (10.11.4 (15E65))
libusb: stable 1.0.20
A6000: v3.10
On Windows 7 64-bit, v0.6 gives the error "Failed to execute script".
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying mass storage device
Sony DSC is a camera in mass storage mode
Switching to app install mode
Waiting for camera to switch...
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Operation timed out. Please run this command again when your camera has connected.
Is it possible to download paid applications? And do APK files exist with them?
Maybe someone can send these APKs? I apologize if such a topic has already been.
This is the error I get when I run pmca-console info:
pmca-console-v0.6-win.exe info
Using Windows drivers
Looking for Sony devices
Querying MTP device
Sony Corporation ILCE-6300 is a camera in MTP mode
Traceback (most recent call last):
File "pmca-console.py", line 51, in
File "pmca-console.py", line 39, in main
File "pmca\commands\usb.py", line 132, in infoCommand
File "pmca\usb\sony.py", line 128, in getCameraInfo
File "pmca\usb\sony.py", line 122, in sendCommand
File "pmca\usb\sony.py", line 77, in sendSonyExtCommand
File "pmca\usb__init_.py", line 58, in _checkResponse
Exception: Response code not OK: 0x2019
Failed to execute script pmca-console
Hello,
the upload to camera via script doesn't work.
I get the following error:
sudo python pmca.py install -d libusb -f PMCADemo-release-0.7.apk
Using libusb
Looking for Sony MTP devices
Traceback (most recent call last):
File "pmca.py", line 103, in
main()
File "pmca.py", line 99, in main
installCommand(args.url, args.driver, args.apkFile, args.outFile)
File "pmca.py", line 68, in installCommand
devices = [dev for dev in driver.listDevices() if dev.type == USB_CLASS_PTP and dev.idVendor == SONY_ID_VENDOR]
File "/home/jens/Projekte/pmca/Sony-PMCA-RE-master/pmca/usb/driver/libusb.py", line 11, in listDevices
interface = dev.get_active_configuration().interfaces()[0]
AttributeError: 'Configuration' object has no attribute 'interfaces'
Hi, here https://www.youtube.com/watch?v=Bj3txJ9zVnY you can see my problem:"Looking for Sony devices: operation timed out" :(
The 0.10 version GUI recognizes my camera Sony A7m2, then I load OpenMemories-Tweak.apk, the program reboot camera...but while the camera will restart the program gives me this error: "Exception: Timeout".
My camera is set to MPT and SINGLE LUN USB.
Can someone help me ? Thanks :)
I am one of the Program Committee members for the Photography, Mobile, and Immersive Imaging portion of the IS&T Electronic Imaging 2018 conference, to be held Jan. 28 - Feb 1, 2018 in Burlingame, CA, USA:
http://www.imaging.org/site/IST/IST/Conferences/EI/EI_2018/Conference/C_PMII.aspx
I have permission to organize a session on open source support for using commodity cameras in electronic imaging research. Ideally, I'd like to have people from several of the most significant projects participate in a panel session. This would involve each panelist giving a short overview of the project they are representing, followed by a discussion with questions from the audience.
Is there a developer who would be interested in attending and representing the OpenMemories project?
Thanks.
Hank Dietz, Professor & James F. Hardymon Chair in Networking
University of Kentucky, Electrical & Computer Engineering Dept.
329 Rose Street, Lexington, KY 40506-0633
http://aggregate.org/hankd/
I get the following error when running pmca-console.py info
➜ Sony-PMCA-RE git:(master) ✗ python pmca-console.py info
Using libusb
Looking for Sony devices
Querying mass storage device
Traceback (most recent call last):
File "pmca-console.py", line 60, in
main()
File "pmca-console.py", line 42, in main
infoCommand(config.appengineServer, args.driver)
File "/Users/grundew/src/Sony-PMCA-RE/pmca/commands/usb.py", line 142, in infoCommand
device = getDevice(driver)
File "/Users/grundew/src/Sony-PMCA-RE/pmca/commands/usb.py", line 130, in getDevice
devices = list(listDevices(driver))
File "/Users/grundew/src/Sony-PMCA-RE/pmca/commands/usb.py", line 107, in listDevices
info = MscDevice(drv).getDeviceInfo()
File "/Users/grundew/src/Sony-PMCA-RE/pmca/usb/init.py", line 17, in init
self.reset()
File "/Users/grundew/src/Sony-PMCA-RE/pmca/usb/init.py", line 24, in reset
self.driver.reset()
File "/Users/grundew/src/Sony-PMCA-RE/pmca/usb/driver/libusb.py", line 76, in reset
self.dev.reset()
File "/usr/local/lib/python2.7/site-packages/usb/core.py", line 915, in reset
self._ctx.backend.reset_device(self._ctx.handle)
File "/usr/local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 893, in reset_device
_check(self.lib.libusb_reset_device(dev_handle.handle))
File "/usr/local/lib/python2.7/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found
➜ Sony-PMCA-RE git:(master) ✗
hi,
i downloaded an app (newer then mine on the camera) via console, then deleted the app on the camera (smartRemote 4.10) and then installed v4.20 via console.
but in the appmanager it says its still version 4.10. im not sure if it really is version 4.10 or not but anyway it shouldn't be that way...
tl;dr it detects a Sony device based on the vendor ID and starts querying the mass storage interface and but doesn't recognize it as a device it can use. The camera resets its USB interface after querying.
FYI I'm running pmca on Linux, which seems to not be among your target platforms, but it doesn't appear to be a source of my problem, as far as I can tell.
My goal here is to initiate a software update with a custom-crafted updater image and no firmware payload to get some sort of a shell on the camera and ideally avoid bricking it in the process, and your tools just seemed to be the ideal means of doing that, with fwtool.py and this. I've seen #20 which probably applies here as well but I don't care about installing regular apps.
I should be able to figure it out mostly by myself and contribute some code in the end, but I need some guidance from you to get started efficiently - I've done my share of embedded development and reverse engineering and I know python pretty well, but that's the first time I'd be playing with custom USB mass storage commands in general and Sony cameras in particular.
The FDR-X1000V registers two separate endpoints on a single mass storage interface, one of those is the microSD card, the other is a small read-only vfat filesystem that contains the license files and WiFi connection details. To the best of my knowledge, it does not support MTP. Probing it with pmca_console info does something, as the camera does a USB disconnect or reset (seen both, no idea why), but that's pretty much it.
This is what I do and what happens:
enleth@panzerbook ~/sony/Sony-PMCA-RE $ dmesg
...
[20611.202184] usb 2-1.2: new high-speed USB device number 8 using xhci_hcd
[20611.332991] usb 2-1.2: New USB device found, idVendor=054c, idProduct=07f5
[20611.332994] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20611.332995] usb 2-1.2: Product: FDR-X1000V
[20611.332997] usb 2-1.2: Manufacturer: Sony
[20611.332998] usb 2-1.2: SerialNumber: 6C092035EFAB
[20611.334050] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[20611.362166] scsi host4: usb-storage 2-1.2:1.0
[20612.412823] scsi 4:0:0:0: Direct-Access Sony Camcorder 1.00 PQ: 0 ANSI: 0
[20612.412960] sd 4:0:0:0: Attached scsi generic sg2 type 0
[20612.617673] scsi 4:0:0:1: Direct-Access Sony Camcorder 1.00 PQ: 0 ANSI: 0
[20612.617896] sd 4:0:0:1: Attached scsi generic sg3 type 0
[20612.619500] sd 4:0:0:0: [sdc] 249737216 512-byte logical blocks: (128 GB/119 GiB)
[20612.620141] sd 4:0:0:0: [sdc] Write Protect is on
[20612.620144] sd 4:0:0:0: [sdc] Mode Sense: 03 00 80 00
[20612.620585] sd 4:0:0:0: [sdc] No Caching mode page found
[20612.620587] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[20612.621435] sd 4:0:0:1: [sdd] 4096 512-byte logical blocks: (2.10 MB/2.00 MiB)
[20612.621834] sd 4:0:0:1: [sdd] Write Protect is on
[20612.621837] sd 4:0:0:1: [sdd] Mode Sense: 03 00 80 00
[20612.622231] sd 4:0:0:1: [sdd] No Caching mode page found
[20612.622234] sd 4:0:0:1: [sdd] Assuming drive cache: write through
[20612.639899] sdd: sdd1
[20612.646106] sdc: sdc1
[20612.647983] sd 4:0:0:1: [sdd] Attached SCSI removable disk
[20612.720252] sd 4:0:0:0: [sdc] Attached SCSI removable disk
enleth@panzerbook ~/sony/Sony-PMCA-RE $ . .env/bin/activate
(.env) enleth@panzerbook ~/sony/Sony-PMCA-RE $ python pmca-console.py info
No native drivers available
Using drivers libusb-MSC, libusb-MTP
Looking for Sony devices
Querying mass storage device
No devices found. Ensure your camera is connected.
(.env) enleth@panzerbook ~/sony/Sony-PMCA-RE $ dmesg
...
[20666.450018] usb 2-1.2: reset high-speed USB device number 8 using xhci_hcd
USB device info:
Bus 002 Device 009: ID 054c:07f5 Sony Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x054c Sony Corp.
idProduct 0x07f5
bcdDevice 1.00
iManufacturer 1 Sony
iProduct 2 FDR-X1000V
iSerial 3 6C092035EFAB
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 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 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
I can try to run the official firmware update tool in a VM using VirtualBox' USB forwarding and dump the packets exchanged on the host if you suspect this might be helpful.
I could also set up a Linux box with the camera connected to it by USB and give you a shell access if you wanted to poke it yourself.
So - what are the next steps I should take to possibly get it to work and what sort of information should I provide to you in addition to the above?
If i will install the Open Memories Tweak the folloing messenge is comming:
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying MTP device
Sony Corporation DSC-RX10M4 is a camera in MTP mode
Model: DSC-RX10M4
Product code: 0080817550
Serial number: -
Firmware version: 1.00
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying MTP device
Sony Corporation DSC-RX10M4 is a camera in MTP mode
Switching to app install mode
Traceback (most recent call last):
File "", line 73, in do
File "pmca\commands\usb.py", line 211, in installCommand
File "pmca\commands\usb.py", line 31, in switchToAppInstaller
File "pmca\usb\sony.py", line 180, in switchToAppInstaller
File "pmca\usb\sony.py", line 147, in sendCommand
File "pmca\usb\sony.py", line 94, in sendSonyExtCommand
File "pmca\usb_init.py", line 58, in _checkResponse
Exception: Response code not OK: 0x2006
Can someone help me ?
Can I somehow download an apk from one of my cameras and later install in other?
Log
Loading plugin
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Progress Uploading 0%
Device error : SSL
Version: v0.12 (nothing else installed just running the binary pmca-gui-v0.12-win.exe)
OS: Win 10 64
LOG:
Loading app list
Using local server
Found 7 apps
Traceback (most recent call last):
File "", line 54, in do
File "pmca\commands\usb.py", line 175, in infoCommand
File "pmca\commands\usb.py", line 116, in importDriver
File "c:\python35\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "pmca\usb\driver\windows\wpd.py", line 15, in
File "site-packages\comtypes\client_generate.py", line 112, in GetModule
File "site-packages\comtypes\client_generate.py", line 188, in _CreateWrapper
File "site-packages\comtypes\client_generate.py", line 26, in _my_import
ImportError: No module named 'comtypes.gen._2B00BA2F_E750_4BEB_9235_97142EDE1D3E_0_1_0'
This log is from trying to use the "Get camera info" button. Want to install OpenMemories hack.
Would really love som help with this!
/David
The website log just says "Loading plugin" and doesn't get any further.
Sony A6300
Install Tweak App on A6300, and under developer, enable wifi, wifi stays disabled. I enable and as soon as I exit the application I load remote control application and connects and mirrors for about 10 seconds then disconnects. I go back to the tweak, developer, and wifi has been disabled. Factory reset phone twice, uninstalled and re-installed tweak multiple times with no success of keeping wifi enabled. Is there a fix for this? Sorry if this has already been addressed and I missed the answer.
Thank you!
WOOPS. Sorry this is for STG Uploader, not your PMCA utility. I'll go find a better place for this comment.
Kudos. Even works on my old out of date NEX-6 camera.
I had a little trouble figuring out how to put in the WPA password, but that's not your problem. When I tried to connect to the other WiFi that I have I could put in the pw without issue.
For STG Uploader. I'll post this to Alex Gee if I can figure out how.
But I take photos with JPG + ARW and can't see a way to skip uploading the ARW to google. Takes too long doing both, obviously. Just a checkbox to skip those would be nice.
Thanks again.
ww
This isn't directly related to the installer I'm just curious if anyone has gotten an actually in app camera to work. Like snapchat.
Tip:
How to solve it,please?
I am trying to "revert" my firmware on a Sony A7SM2. Does the firmware update feature work? And if so is there a way to defeat the version check? I am trying to go from 2.10 to 2.00. I assume that it failed because the current version is newer?. Other question would be is there a way to overwrite just the firmware version number in the camera so that I can use the normal firmware update?
PS C:\Users\bill\Downloads> .\pmca-console-v0.10-win.exe firmware -f .\FirmwareData_ILCE7SM2V200.dat
sing drivers Windows-MSC, Windows-MTP
ooking for Sony devices
uerying MTP device
ony Corporation ILCE-7SM2 is a camera in MTP mode
nitializing firmware update
raceback (most recent call last):
File "", line 67, in
File "", line 61, in main
File "pmca\commands\usb.py", line 254, in firmwareUpdateCommand
File "pmca\usb\sony.py", line 319, in checkGuard
File "pmca\usb\sony.py", line 296, in _sendWriteCommands
xception: Firmware update error: Invalid version
My English is not very good. This is using Bing translator.
A6000 firmware cannot be upgraded. I am using is "PMCA-console-v0.10-win firmware-f FirmwareData_ILCE6000V320.dat". Error message:
E:\BaiduYunDownload\sonyapp>pmca-console-v0.10-win firmware -f FirmwareData_ILCE6000V320.dat
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying mass storage device
Sony DSC is a camera in mass storage mode
Initializing firmware update
Traceback (most recent call last):
File "", line 67, in
File "", line 61, in main
File "pmca\commands\usb.py", line 254, in firmwareUpdateCommand
File "pmca\usb\sony.py", line 319, in checkGuard
File "pmca\usb\sony.py", line 296, in _sendWriteCommands
Exception: Firmware update error: Invalid version
pmca-console returned -1
Use your Sony-PMCA-RE,mtp mode mass storage mode and tried everything also cannot be updated.
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying MTP device
Sony Corporation FDR-AX53 is a camera in MTP mode
Switching to app install mode
Traceback (most recent call last):
File "", line 73, in do
File "pmca\commands\usb.py", line 207, in installCommand
File "pmca\commands\usb.py", line 31, in switchToAppInstaller
File "pmca\usb\sony.py", line 180, in switchToAppInstaller
File "pmca\usb\sony.py", line 147, in sendCommand
File "pmca\usb\sony.py", line 94, in sendSonyExtCommand
File "pmca\usb_init.py", line 58, in _checkResponse
Exception: Response code not OK: 0x2006
Greetings from Austria!
Python run time runs if i use pmca-console info
If i use pmca-console market and put in my user and pw, i get every time Login fail!
I have try win7 and win10, with python3.6 or not and two different accounds. i doesnt get error messages. I have try pmca-console 0.7 to 0.10!
Could you upload Sony apps or are they under some copyright law? I don't seem to be able to download apps via your homepage; probably because it was forever since i actually downloaded any Sony apps.
And have you had time to make any sense of how the apps work?
Hi,
I'm trying to install your hack but there is no way to make it work :(
This are the messages I get.
Loading plugin
Plugin loaded
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Progress: Uploading 0%
Device error: SSL
While the camera remains in "application download" mode.
How can I help to debug the problem.
System window10 - ILCE7 - fw ver 3.10
Went to install the 'Focus Bracket' app but the site is down (over quota message). I could get the local installer but I need the app installing file (I think it must be an apk pacakge). Does anybody know where to get that one?
Great work! Would it also be possible to implement SCP/RSYNC to the STG Uploader for Sync/Upload to a remote-server (on Internet) or to a local NAS-System?
Loading plugin
Plugin loaded
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Error: Network connection
LOG :
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Progress: Uploading 0%
Error: Network connection
I made a custom APK modifying the obs1dium FocusBracket app. The problem is that when I try to install it on a Sony a6000 I get this error (via the windows app):
Querying MTP device
Sony Corporation ILCE-6000 is a camera in app install mode
Using local server
Starting task
Starting communication
Uploading 0%
Uploading 100%
Downloading 100%
Installing 0%
Traceback (most recent call last):
File "", line 76, in do
File "pmca\commands\usb.py", line 224, in installCommand
File "pmca\commands\usb.py", line 72, in installApp
Exception: Communication error 100: Error completed
And via the browser plugin:
Loading plugin
Plugin loaded
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Progress: Uploading 0%
Progress: Uploading 100%
Progress: Downloading 100%
Progress: Installing 0%
Device error: General
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Progress: Uploading 0%
Progress: Uploading 100%
Progress: Downloading 100%
Progress: Installing 0%
Device error: General
What am I missing? Why this worked with the original FocusBracket apk and it then fails to install a costum made app?
PMCADownloaderLib.dll switches devices from MSC (Mass-Storage) to MtpAppInstaller with a SCSI Vendor-specific CDB.
I need to use this for my ILCE-QX1 because it doesn't have a user-interface to allow switching USB mode.
For an example: https://github.com/erik-smit/sony-camera-usb/blob/master/SwitchMode.sh
P.S.: amazing piece of work you've done here. Wow. Just wow. Thanks.
I get this error verytime I try to install an APK file which was downloaded with this tool.
D:\Downloads>pmca-v0.4-win.exe install -f SmartRemote420.apk
Using Windows drivers
Looking for Sony devicesQuerying MTP device
Sony Corporation ILCE-6000 is a camera in app install mode
Uploading apk
Starting communication
Uploading 0%
Uploading 100%
Downloading 4%
Traceback (most recent call last):
File "", line 172, in
File "", line 166, in main
File "", line 105, in installCommand
File "", line 46, in installApp
File "pmca\installer__init__.py", line 69, in install
File "pmca\usb\sony.py", line 271, in sendSslData
File "pmca\usb\sony.py", line 250, in sendCommand
File "pmca\usb\sony.py", line 204, in write
File "pmca\usb__init.py", line 58, in _checkResponse
Exception: Response code not OK: 0xa489
pmca returned -1
Edit: I tried this tool now on several computers and it is always the same error with my camera. But installing using a local server (-s "") is working fine.
Can anyone create an app which can transfer file through wifi on sony alpla.
It make camera become a ftp server, and we can use PC or smartphone to download files from it (like RAW,etc..)
Thank you!
Very excited to see this project!
It's Python, it's portable, it runs on MacOS... should run on Linux too :) (and no macox or windux here)
info works:
prh@brix:~/sony-camera/Sony-PMCA-RE$ ./pmca-console.py info
Using libusb
Looking for Sony devices
Querying MTP device
Sony Corporation ILCE-6000 is a camera in MTP mode
Model: ILCE-6000
Product code: 0032826830
Serial number: somethingorother
Firmware version: 3.20
but Downloading gives error:
Installing org.bostwickenator.googlephotos
Using libusb
Looking for Sony devices
Querying MTP device
Sony Corporation ILCE-6000 is a camera in app install mode
Using remote server sony-pmca.appspot.com
Starting task
Starting communication
Uploading 0%
Uploading 100%
Downloading 4%
Traceback (most recent call last):
File "./pmca-console.py", line 60, in <module>
main()
File "./pmca-console.py", line 50, in main
installCommand(args.server, args.driver, args.apkFile, pkg, args.outFile)
File "/home/prh/sony-camera/Sony-PMCA-RE/pmca/commands/usb.py", line 186, in installCommand
installApp(device, host, apkFile, appPackage, outFile)
File "/home/prh/sony-camera/Sony-PMCA-RE/pmca/commands/usb.py", line 64, in installApp
result = installer.install(dev, server.host, server.port, xpdData, printStatus)
File "/home/prh/sony-camera/Sony-PMCA-RE/pmca/installer/__init__.py", line 69, in install
dev.sendSslData(connectionId, resp)
File "/home/prh/sony-camera/Sony-PMCA-RE/pmca/usb/sony.py", line 284, in sendSslData
self._sendCommand('\x00\x01\x00\x01', '\x05\x03', dump16be(req) + dump32be(len(data)) + data)
File "/home/prh/sony-camera/Sony-PMCA-RE/pmca/usb/sony.py", line 263, in _sendCommand
self._write(type1 + '\x00\x00' + type2 + dump32be(len(data) + 18) + 8*'\x00' + data)
File "/home/prh/sony-camera/Sony-PMCA-RE/pmca/usb/sony.py", line 217, in _write
self._checkResponse(response)
File "/home/prh/sony-camera/Sony-PMCA-RE/pmca/usb/__init__.py", line 58, in _checkResponse
raise Exception('Response code not OK: 0x%x' % code)
Exception: Response code not OK: 0xa489
Info then says:
prh@brix:~/sony-camera/Sony-PMCA-RE$ ./pmca-console.py info
Using libusb
Looking for Sony devices
Querying MTP device
Sony Corporation ILCE-6000 is a camera in app install mode
Using remote server sony-pmca.appspot.com
Starting task
Starting communication
Uploading 0%
Uploading 100%
Downloading result
Task completed successfully
Model: ILCE-6000
Product code: 0032826830
Serial number: somethingorother
Firmware version: 3.20
Any ideas?
Hi! I tried to install the STG Uploader using pmca-gui v0.7 and got the following error message, I've tried in both MTP and mass storage mode and get the "same" error message.
Using Windows drivers
Looking for Sony devices
Querying MTP device
Sony Corporation DSC-HX60V is a camera in app install mode
Using remote server sony-pmca.appspot.com
Uploading apk
Traceback (most recent call last):
File "", line 74, in do
File "pmca\commands\usb.py", line 186, in installCommand
File "pmca\commands\usb.py", line 53, in installApp
File "pmca\marketserver\server.py", line 126, in setApk
File "pmca\util\http.py", line 31, in get
File "pmca\util\http.py", line 44, in request
File "urllib2.py", line 431, in open
File "urllib2.py", line 449, in _open
File "urllib2.py", line 409, in _call_chain
File "urllib2.py", line 1240, in https_open
File "urllib2.py", line 1197, in do_open
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
BR
Daniel
everything works fine, after the tweak, i got this issue only on when i took pictures it would restart, but on dummy battery on video mode it works fine,
is there an fix or at least revert it back to original settings?
my firmware was 3.20
thanks and hope this well get resolved...
more power
It's seems to be no app install mode on Sony Handycam.
Any way to intall app on Handycam by using PMCA-RE?
pmca install
Using Windows drivers
Looking for Sony devices
Querying MTP device
Sony Corporation FDR-AX55 is a camera in MTP mode
Switching to app install mode. Please run this command again when the camera has switched modes.
Traceback (most recent call last):
File "<string>", line 172, in <module>
File "<string>", line 166, in main
File "<string>", line 102, in installCommand
File "<string>", line 28, in switchToAppInstaller
File "pmca\usb\sony.py", line 153, in switchToAppInstaller
File "pmca\usb\sony.py", line 122, in _sendCommand
File "pmca\usb\sony.py", line 75, in sendSonyExtCommand
File "pmca\usb\__init__.py", line 58, in _checkResponse
Exception: Response code not OK: 0x2006
pmca returned -1
I don't know, if this camera has the android feature, too.
Maybe it is possible to install apps on this, not official supported camera, too.
The given error code was:
Mass storage error: Sense 0x5 0x20 0x0.
The OpenMemories Tweak does not work fully on my Sony Alpha 7 (ILCE-7)
Installation is no problem. The app also runs fine and extended language and video settings can be applied.
The language setting (35 languages) works fine but the video recording still ends after 29 minutes.
I tried all kinds of video settings and applied the twaek on both firware version 3.10 and the latest 3.20 with no luck.
Any clues?
console:
C:\Users\user01\Downloads>pmca-console.exe install -o outfile.txt
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying MTP device
Sony Corporation DSC-RX100M2 is a camera in MTP mode
Switching to app install mode
Traceback (most recent call last):
File "<string>", line 66, in <module>
File "<string>", line 52, in main
File "pmca\commands\usb.py", line 207, in installCommand
File "pmca\commands\usb.py", line 31, in switchToAppInstaller
File "pmca\usb\sony.py", line 180, in switchToAppInstaller
File "pmca\usb\sony.py", line 147, in _sendCommand
File "pmca\usb\sony.py", line 94, in sendSonyExtCommand
File "pmca\usb\__init__.py", line 58, in _checkResponse
Exception: Response code not OK: 0x2006
pmca-console returned -1
C:\Users\user01\Downloads>pmca-console install -i
Loading app list
Using local server
Found 7 apps
[ 1] com.github.ma1co.pmcademo.app
[ 2] com.github.ma1co.openmemories.tweak
[ 3] com.github.ma1co.openmemories.appstore
[ 4] org.bostwickenator.dofmath
[ 5] org.bostwickenator.googlephotos
[ 6] com.obsidium.focusbracket
[ 7] com.obsidium.bettermanual
Enter number of app to install (0 to abort): 1
Installing com.github.ma1co.pmcademo.app
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying MTP device
Sony Corporation DSC-RX100M2 is a camera in MTP mode
Switching to app install mode
Traceback (most recent call last):
File "<string>", line 66, in <module>
File "<string>", line 52, in main
File "pmca\commands\usb.py", line 207, in installCommand
File "pmca\commands\usb.py", line 31, in switchToAppInstaller
File "pmca\usb\sony.py", line 180, in switchToAppInstaller
File "pmca\usb\sony.py", line 147, in _sendCommand
File "pmca\usb\sony.py", line 94, in sendSonyExtCommand
File "pmca\usb\__init__.py", line 58, in _checkResponse
Exception: Response code not OK: 0x2006
pmca-console returned -1
explorer:
Loading plugin
Plugin loaded
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Error: Network connection
gui:
Loading app list
Using local server
Found 7 apps
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying MTP device
Sony Corporation DSC-RX100M2 is a camera in MTP mode
Model: DSC-RX100M2
Product code: 0080814150
Serial number: 02923495
Firmware version: 1.10
Using drivers Windows-MSC, Windows-MTP
Looking for Sony devices
Querying MTP device
Sony Corporation DSC-RX100M2 is a camera in MTP mode
Switching to app install mode
Traceback (most recent call last):
File "<string>", line 73, in do
File "pmca\commands\usb.py", line 207, in installCommand
File "pmca\commands\usb.py", line 31, in switchToAppInstaller
File "pmca\usb\sony.py", line 180, in switchToAppInstaller
File "pmca\usb\sony.py", line 147, in _sendCommand
File "pmca\usb\sony.py", line 94, in sendSonyExtCommand
File "pmca\usb\__init__.py", line 58, in _checkResponse
Exception: Response code not OK: 0x2006
Hi, Thanks for all your work! I have installed open memory tweak on my A7r but the video limit is still there. Any Ideas?
Thanks
Brian in Ireland
It seems to load the browser plugin, and that's about it.
Loading plugin
Plugin loaded
Starting task
Got task key
Cancelling plugin
Plugin cancelled
Starting download to camera
Version: build v0.12
OS: win10, macOS Sierra
for win10, everything works well, but when it comes to macOS, the connection cannot be established
host-213-213-213-5:Sony-PMCA-RE user$ python pmca-gui.py
Loading app list
Using local server
Found 7 apps
Using drivers OS-X-MSC, libusb-MTP
Looking for Sony devices
Querying mass storage device
Traceback (most recent call last):
File "pmca-gui.py", line 54, in do
infoCommand()
File "/Users/Alchemist/Developer/Repo/Github/ma1co/Sony-PMCA-RE/pmca/commands/usb.py", line 176, in infoCommand
device = getDevice(driver)
File "/Users/Alchemist/Developer/Repo/Github/ma1co/Sony-PMCA-RE/pmca/commands/usb.py", line 164, in getDevice
devices = list(listDevices(driver))
File "/Users/Alchemist/Developer/Repo/Github/ma1co/Sony-PMCA-RE/pmca/commands/usb.py", line 138, in listDevices
for type, drv in driverList.listDevices(SONY_ID_VENDOR):
File "/Users/Alchemist/Developer/Repo/Github/ma1co/Sony-PMCA-RE/pmca/commands/usb.py", line 103, in listDevices
for dev in driver.listDevices(vendor):
File "/Users/Alchemist/Developer/Repo/Github/ma1co/Sony-PMCA-RE/pmca/usb/driver/libusb.py", line 64, in _listDevices
for dev in usb.core.find(find_all=True, idVendor=vendor):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/usb/core.py", line 1263, in find
raise NoBackendError('No backend available')
NoBackendError: No backend available
On the alpha 6300.
The download often starts fine, but ultimately times out
Using libusb
Looking for Sony devices
Querying MTP device
Sony Corporation ILCE-6300 is a camera in MTP mode
Switching to app install mode
Waiting for camera to switch...
Looking for Sony devices
Looking for Sony devices
Looking for Sony devices
Querying MTP device
Sony Corporation ILCE-6300 is a camera in app install mode
Using remote server sony-pmca.appspot.com
Starting task
Starting communication
Uploading 0%
Uploading 100%
Downloading 4%
Downloading 8%
Downloading 13%
Downloading 17%
Downloading 22%
Downloading 26%
Downloading 30%
Downloading 35%
Downloading 39%
Traceback (most recent call last):
File "pmca-console.py", line 60, in <module>
main()
File "pmca-console.py", line 50, in main
installCommand(args.server, args.driver, args.apkFile, pkg, args.outFile)
File "/tmp/Sony-PMCA-RE-0.7/pmca/commands/usb.py", line 186, in installCommand
installApp(device, host, apkFile, appPackage, outFile)
File "/tmp/Sony-PMCA-RE-0.7/pmca/commands/usb.py", line 64, in installApp
result = installer.install(dev, server.host, server.port, xpdData, printStatus)
File "/tmp/Sony-PMCA-RE-0.7/pmca/installer/__init__.py", line 69, in install
dev.sendSslData(connectionId, resp)
File "/tmp/Sony-PMCA-RE-0.7/pmca/usb/sony.py", line 276, in sendSslData
self._sendCommand('\x00\x01\x00\x01', '\x05\x03', dump16be(req) + dump32be(len(data)) + data)
File "/tmp/Sony-PMCA-RE-0.7/pmca/usb/sony.py", line 255, in _sendCommand
self._write(type1 + '\x00\x00' + type2 + dump32be(len(data) + 18) + 8*'\x00' + data)
File "/tmp/Sony-PMCA-RE-0.7/pmca/usb/sony.py", line 210, in _write
response = self.driver.sendWriteCommand(self.PTP_OC_SendProxyMessage, [], data)
File "/tmp/Sony-PMCA-RE-0.7/pmca/usb/driver/libusb.py", line 172, in sendWriteCommand
return self._readResponse()
File "/tmp/Sony-PMCA-RE-0.7/pmca/usb/driver/libusb.py", line 151, in _readResponse
type, code, transaction, data = self._readPtp()
File "/tmp/Sony-PMCA-RE-0.7/pmca/usb/driver/libusb.py", line 138, in _readPtp
data = self.read(self.MAX_PKG_LEN)
File "/tmp/Sony-PMCA-RE-0.7/pmca/usb/driver/libusb.py", line 79, in read
return self.dev.read(self.epIn, length, 2000).tostring()
File "/usr/lib/python2.7/dist-packages/usb/core.py", line 918, in read
self.__get_timeout(timeout))
File "/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 769, in bulk_read
timeout)
File "/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 872, in __read
_check(retval)
File "/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 552, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
I tried adding, and increasing, the timeout to self.dev.read (actually, in the logs you can see my "2000" there, line 79 in libusb.py). But that doesn't help. It looks like the device just stops answering. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.