Re: OpenCMA/libVitaMTP 2.0: CMA on Linux and Windows
Posted: Tue Aug 13, 2013 1:49 pm
+#define VITAMTP_PROTOCOL_FW_2_60 1600010
Gaming/Programming community
http://www.wololo.net/talk/
Here:PS3Y2kvirus wrote:Would you be able to post simple directions on terminal commands Yifan Lu?
Code: Select all
smoke@smoke:~$ opencma --help
usage: opencma [wireless|usb] paths [options]
mode
wireless Listen for Wifi connection
usb Listen for USB connection (default)
paths
-p path Path to photos
-v path Path to videos
-m path Path to music
-a path Path to apps
options
-u path Path to local URL mappings
-l level logging level, number 1-4.
1 = error, 2 = info, 3 = verbose, 4 = debug
-h Show this help text
additional information:
All paths must be specified. Please note that having larger
directories means that OpenCMA will run slower and use more memory.
This is because OpenCMA doesn't have an external database and builds
(and keeps) its database in memory. If you try to run OpenCMA with
paths that contains lots of files and directories it may quickly run
out of memory. Also beware that using the same path for multiple data
types (photos and videos, for example) is undefined behavior. It can
result in files not showing up without a manual database refresh
(CTRL+Z). Modifying the directory as OpenCMA is running may also
result in the same behavior.
URL mappings allow you to redirect Vita's URL download requests to
some file locally. This can be used to, for example, change the file
for firmware upgrading when you choose to update the Vita via USB. The
Vita may request http://example.com/PSP2UPDAT.PUP and if you use the
option '-u /path/to/fw' then OpenCMA will send
/path/to/fw/PSP2UPDAT.PUP to the Vita. You do NOT need to do this for
psp2-updatelist.xml to bypass the update prompt because that file is
built in to OpenCMA for your convenience. If you do wish to send a
custom psp2-updatelist.xml, you can.
There are four logging levels that you can select with the '-l'
option. '-l 1' is the default and will only show critical error
messages. '-l 2' will allow you to see more of the behind-the-scenes
process such as what file is being sent and so on. '-l 3' will, in
addition, display advanced information like what event the Vita is
sending over, and is for the curious minded. '-l 4' will log
EVERYTHING including the raw USB traffic to and from the device.
PLEASE use this option when you are filing a bug report and attach the
output so the issue can be resolved quickly. Please note that more
logging means OpenCMA will run slower.
smoke@smoke:~$
Heres an example with what mine is:PS3Y2kvirus wrote:Okay so i would type in the terminal opencma usb -p home/photo/pic.jpg i kind of get lost around there, not sure where i would specify where to send the pic to on the vita or if thats how it works?
Code: Select all
opencma usb -p /home/smoke/Pictures/ -v /home/smoke/Videos/ -m /home/smoke/Music/ -a /home/smoke/VitaMTP/ -u /home/smoke/VitaMTP/
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<update_data_list>
<region id="au">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="eu">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="jp">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="kr">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="mx">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="ru">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="tw">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="uk">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="us">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
</update_data_list>
Code: Select all
opencma usb -p /home/smoke/Pictures/ -v /home/smoke/Videos/ -m /home/smoke/Music/ -a /home/smoke/VitaMTP/ -u /home/smoke/VitaMTP/
Code: Select all
opencma usb -p /home/psvita/Pictures/ -v /home/psvita/Videos/ -m /home/psvita/Music/ -a /home/psvita/VitaMTP/ -u /home/psvita/VitaMTP/
main: Cannot find path: /home/psvita/VitaMTP/
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<update_data_list>
<region id="au">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="eu">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="jp">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="kr">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="mx">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="ru">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="tw">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="uk">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
<region id="us">
<np level0_system_version="00.000.000" level1_system_version="00.000.000" level2_system_version="00.000.000" map="00.000.000" />
<version system_version="00.000.000" label="0.00">
</version>
</region>
</update_data_list>
Your folder paths are invalid unless your username is psvita. If as I suspect you have a psvita folder in your home folder, and it has all these folders, try this:PS3Y2kvirus wrote:Made the VitaMTP folder for ps vita app but does not want to find it.Code: Select all
opencma usb -p /home/psvita/Pictures/ -v /home/psvita/Videos/ -m /home/psvita/Music/ -a /home/psvita/VitaMTP/ -u /home/psvita/VitaMTP/ main: Cannot find path: /home/psvita/VitaMTP/
Code: Select all
opencma usb -p ~/psvita/Pictures/ -v ~/psvita/Videos/ -m ~/psvita/Music -a ~/psvita/VitaMTP/ -u ~/psvita/VitaMTP/
Code: Select all
/
+-home/
+-<username>/
+-psvita/
+-Pictures/
+-Videos/
+-Music/
+-VitaMTP/
Code: Select all
opencma usb -p ~/psvita/Pictures/ -v ~/psvita/Videos/ -m ~/psvita/Music -a ~/psvita/VitaMTP/ -u ~/psvita/VitaMTP/
Code: Select all
/
+-home/
+-<username>/
+-psvita/
+-Pictures/
+-Videos/
+-Music/
+-VitaMTP/
Code: Select all
virus@virus-VAIO:~$ opencma usb -p ~/psvita/Pictures/ -v ~/psvita/Videos/ -m ~/psvita/Music -a ~/psvita/VitaMTP/ -u ~/psvita/VitaMTP/
OpenCMA 1.1 Beta
libVitaMTP Version: 2.1
Protocol Max Version: 01700010
Once connected, send SIGTSTP (usually Ctrl+Z) to refresh the database.
main: Waiting for Vita to connect...
Segmentation fault (core dumped)
virus@virus-VAIO:~$