android
  #1  
Old 06-30-2012, 05:35 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default Finally found UART port YP-R0

This evening, with the help of mgue i finally found the UART port on this device.
The "UART" (Universal Asynchronous Receiver Transmitter) is a standard serial port that you can find on every CPU on everything. From months i tried to discover this port on this player, for debugging my scripts and my roms, that somthimes stucks during boot.
Now i finally found these 2 pins, that are the TX an RX pins (you can see it on image link below) of a TTL standard serial port.
Parameters for connection are the standards 115200 8N1, and for communicate with the player you'll need a TTL <--> RS232 adapter or a TTL <--> USB adapter. Just connect TX of the board to RX of the adapter, and RX of the board to TX of adapter. Connect both grounds to a common point and open a program like minicom (for linux) or putty (for win).
R0 kernel recognize that port as ttymcx0, and it's the main console of the kernel, so power on the player and you will see the log of the YP-R0 kernel during the boot. This is very useful for debugging things and, in general, for all the developers and/or hackers.

Useful links:
UART location (photo): http://dl.dropbox.com/u/21543264/YP-R0/R0_UART.jpg
Serial log (ModFirm): http://dl.dropbox.com/u/21543264/YP-..._uart_post_pt0
Serial log (Rockbox): http://dl.dropbox.com/u/21543264/YP-..._uart_post_pt1
Console test (working!): http://dl.dropbox.com/u/21543264/YP-..._uart_post_pt2

Last edited by VanniX; 06-30-2012 at 06:07 PM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 07-01-2012, 03:36 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by VanniX View Post
This evening, with the help of mgue i finally found the UART port on this device.
The "UART" (Universal Asynchronous Receiver Transmitter) is a standard serial port that you can find on every CPU on everything. From months i tried to discover this port on this player, for debugging my scripts and my roms, that somthimes stucks during boot.
Now i finally found these 2 pins, that are the TX an RX pins (you can see it on image link below) of a TTL standard serial port.
Parameters for connection are the standards 115200 8N1, and for communicate with the player you'll need a TTL <--> RS232 adapter or a TTL <--> USB adapter. Just connect TX of the board to RX of the adapter, and RX of the board to TX of adapter. Connect both grounds to a common point and open a program like minicom (for linux) or putty (for win).
R0 kernel recognize that port as ttymcx0, and it's the main console of the kernel, so power on the player and you will see the log of the YP-R0 kernel during the boot. This is very useful for debugging things and, in general, for all the developers and/or hackers.

Useful links:
UART location (photo): http://dl.dropbox.com/u/21543264/YP-R0/R0_UART.jpg
Serial log (ModFirm): http://dl.dropbox.com/u/21543264/YP-..._uart_post_pt0
Serial log (Rockbox): http://dl.dropbox.com/u/21543264/YP-..._uart_post_pt1
Console test (working!): http://dl.dropbox.com/u/21543264/YP-..._uart_post_pt2
Ahhhhhh I began to suspect that after having seen the schematics!!!!!
Great vannix After exams I wil try that for sure!!

EDIT: take a look there http://dl.dropbox.com/u/38710278/r0_test_port.png

EDIT2: btw, where do you find the USB <-> TTL interface? In ebay I've seen something from Hong Kong at 3 euros...is that that you own? In case let's talk about shopping in private ^^

EDIT3: possibly, it should be possible to emulate a serial port using a GADGET FS (or how are they called...like the mass storage usb driver module)
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!

Last edited by Lorenz092; 07-01-2012 at 04:48 AM.
Reply With Quote

  #3  
Old 07-01-2012, 05:41 AM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Yes, that is the same connector, but also without schematics i'm able to find the UART, because there are only 2 pins with 3v3.
For the USB <-> TTL i bought them on ebay, from chinese seller (about 1€ for 1 converter and about 15 day for deliver).
I'm searching something for emulating UART port on MicroUSB port, but it's not so easy, and we must, at least, recompile the entire rom for changing the boot parameters :-(
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:35 PM.