Author Topic: [Release] Princess Silly Mini Log USB - a USB logger using PSM drivers  (Read 614 times)

Offline dots_tb

  • Refugee
  • **
  • Posts: 56
    • View Profile
When taihen was first released, it was requested by Yifan Lu to use the USB serial functions to facilitate logs. These serial functions were used by PSM and now have been made to redirect stdout to a usb serial device, which serves as a standard COM serial port.

Princess Silly Mini Log USB is Princess Log with net functions replaced with USB serial functions and was created at the request of Silica, Pina and SonicMastr. It has full compatibility with Vita Shell's USB Mass Storage device system.

Install:
  • Install PSM USB Serial Drivers. These were extracted from the PSM SDK. Get them here: http://psmreborn.com/devtools.php?type=psm-drivers
  • Add PSMLogUSB.skprx to your config.txt and reboot.
  • Open your favorite serial monitoring program and set the correct COM port. Set the baudrate to 57600.
   
Note:

   PSMUSBLog will try to end any other USB service, except the the one used in VitaShell for Usb Mass Storage(UMS) mounting. So this will naturally create incompatibilities with plugins such as vita-udcd-uvc.
   
   When using UMS, the serial will be interrupted, however will auto-start up after the UMS service has ended.

   The serial device will also be disconnected on reboot and will only restart until the plugin is re-initialized (usually right when Taihen launches)
   
Serial Monitoring Programs:

   You may use any serial monitor program. However, because of the constant reconnecting, I'd recommend kiTTY. <http://www.9bis.net/kitty/#!pages/download.md>
   
   This program allows easy auto reconnect (Connection > Attempt to reconnect on connection failure)
   
   You may also want to enable newline mode: (Terminal > Implicit CR in every LF)
   
   Finally, to find your COM number, look at the "Device Manager" in Windows. It will be under "Ports (COM & LPT)"
   
Why use PrincessLog over this:

   If you are working with USB or are using a Linux dev enviroment (have not checked if Linux has drivers), you may still want to consider PrincessLog.


Download: https://github.com/CelesteBlue-dev/PSVita-RE-tools/tree/master/PSMLogUSB/build

Special thanks to:
SilicaAndPina
Sysie
Yifan Lu
SonicMastr
teakhanirons

CelesteBlue
Princess of Sleeping
cuevavirus
« Last Edit: April 16, 2020, 04:51:21 AM by dots_tb »

Offline dots_tb

  • Refugee
  • **
  • Posts: 56
    • View Profile
Some info regarding the "Yifan Lu request". I remembered on some barren forums where Yifan said something about wanting serial over USB. It turns out my memory was almost correct:
https://forums.vitasdk.org/viewtopic.php?f=12&t=9

This found after teakhanirons mentioned there was forums.vitasdk.org, which fit the description in my memory. However, this forums has long been purged. But luckily Coburn, of the Kantai Collection translation team, copy and pasted it. The topic was originally relating to project ideas for taihen, so not really a request per se.
Archive:



Context (for people who like a story):
After working on a psp2048 port, along with a failed project with sysie, sysie decided to ask me to help with the Kantai Collection translation project. Coburn was sure that stdio would help solve the issue of xml edits not loading properly. It did not. However, that is how Shiplog was born.

Looking back at Yifan's comment it makes total sense, its a shame that the failing forums.vitasdk.org had deleted the actual post.

What really makes no sense is that when asked on IRC, Yifan would often say hook printf (which never worked) instead of setting a callback like he did in that post, this not done until ShipLog v2.

Now with PrincessLog and PSMLog this project idea has been fully realized.

CBPS is committed to only bringing you the facts!
« Last Edit: April 16, 2020, 06:03:05 PM by dots_tb »

Offline teakhanirons

  • Refugee
  • **
  • Posts: 55
  • Saki did nothing wrong.
    • View Profile
For the record, archive.org doesn't have anything for forums.vitasdk.org either.
Life Pro Tip: Fry rice before steaming it to enrichen its taste.