leowt changed the topic of #linux-rockchip to: Rockchip development discussion | http://linux-rockchip.info | http://irclog.whitequark.org/linux-rockchip
ssvb has quit [Ping timeout: 245 seconds]
ssvb has joined #linux-rockchip
alcides has joined #linux-rockchip
Theueip has joined #linux-rockchip
alcides has quit [Remote host closed the connection]
eebrah|mobile has joined #linux-rockchip
Theueip has quit [Quit: Leaving...]
Theueip has joined #linux-rockchip
eebrah has joined #linux-rockchip
atiti has quit [Ping timeout: 268 seconds]
Theueip has quit [Quit: Leaving...]
atiti has joined #linux-rockchip
eebrah has quit [Ping timeout: 272 seconds]
eebrah has joined #linux-rockchip
eebrah is now known as Guest62806
Theueip has joined #linux-rockchip
eebrah|mobile has quit [Read error: Connection reset by peer]
eebrah|mobile has joined #linux-rockchip
eebrah|mobile has quit [Read error: Connection reset by peer]
shineworld has joined #linux-rockchip
<shineworld> Morning all. I've got a bad issue with Rockchip linux kernel for Android 3.0.36+ (used in a CUBE_U25GT_PRO tablet). When I connect an accessory device (in this case a FTDI FT312D Android -> FT -> UART converter) just after sending command for accessory request (using libusb_control_transfer with 53) the kernel shutdown the endpoint before to reply to request and causing a (-USHUTDOWN)(-108). In follow link you can get libpcap logs and linux
<shineworld> program used to simulate an ADK device and get the error: https://www.dropbox.com/sh/4u0dkgih5rnuk3e/CxysS2jGo3
rellla has joined #linux-rockchip
<shineworld> hi rellla
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-rockchip
<shineworld> morning akaizen
Guest62806 is now known as eebrah
<shineworld> Some android/kernel AOA expert here ?
<mosquito520> I m not expert...Orz
<shineworld> I've an issue with USB and android
<shineworld> I'm enough sure that is an issue on kernel level because I've compared AOSP with android sources and code is same
<shineworld> when android receive from host the command to enter in Android Accessory Mode the OS does that but 90 times on 100 not reply to request packet (timing questions ?) so the accessory device enter in ERROR
naobsd has joined #linux-rockchip
eebrah has quit [Ping timeout: 240 seconds]
<mosquito520> shineworld: I have some question, does that FT312D UART TX RX worked?
<shineworld> YES
<mosquito520> cuz I don't know that "using libusb_control_transfer with 53" mean? Send another command to communitcation with FT312D?
<shineworld> they works perfectly in Nexus 4/7
<shineworld> and sometime in rockchip (10 time in 90)
<shineworld> Pratically 53 is ACCESSORY_START command which host (FTDI FT312D) send to Android to ask it to enter in Android Accessory Mode
<shineworld> Just a copy from my previous chat:
<shineworld> I've got a bad issue with Rockchip linux kernel for Android 3.0.36+ (used in a CUBE_U25GT_PRO_1.0.4 2013/05/18 tablet).
<shineworld> This happen 90 times on 100 but sometime the kernel is able to rebly to control transfer command before the USB will be restarted to enter in Android Open Accessory Mode.
<shineworld> When I connect an accessory device (in this case a FTDI FT312D to get Android -> FT312D -> UART interface -> PoS system RS232 port) just after sending command for accessory request (using libusb_control_transfer with ACCESSORY_START = 53) the kernel shutdown the endpoint before it reply to request and causing a USHUTDOWN (-108) error and invalidating connection with FTDI FT312D.
<shineworld> In follow link you can get libpcap logs and linux program that I wrote to simulate an ADK device and get the error:
<shineworld> PS: PID and VID should be switched to VID_CUBE and related CUBE PID before to recompile sources.
<mosquito520> hold on second... Does that FT312D is simple USB to UART converter= =?
<shineworld> nope, isn't a simple USB to UART but is a Android READY USB to UART
<shineworld> Pratically is a host device "able" to accept and open a special communication modality (called Android Open Accessory) with Android OS.
<shineworld> At this point Android, using normal input/output streams can operate with UART ready devices like a PoS terminal
<naobsd> it doesn't gives /dev/ttyUSB* thing, there is no driver in kernel, it needs libusb, right?
<shineworld> Android Tablet -> USB cable -> FTDI FT312 chip -> PoS device with UART com
<mosquito520> uh, I m not realy understand what it mean... I'm wanna trying to figure 1 thing first, does that device has driving already?
<mosquito520> cuz that spec describe it's a UART converter="=
<mosquito520> the other thing, I found FTDI usb driver does not enable by default in kernel:)
<shineworld> A sec. adk-shine.c and binary IS for PC ... is an emulator that I've used to simulate the FTDI CHIP connected with an android tablet and use WireShark to get USB packets
<shineworld> 1) Android Open Accessory is a feature of Android used to change the normal function of USB port present in ALL systems >= 3.1
<shineworld> 2) FTDI CHIP is a little micro which implements the AOA protocol and get add a UART port in any android device
<naobsd> Android tablet act as host? or device? I'm confusing old one that android device act as device and external unit act as host
<shineworld> in page 4 you can simply understand how it works
<shineworld> is very simple
<shineworld> when the android enter in "Android Open Accessory Mode" it close the USB device and open a new one with a different VID:PID
<naobsd> FT312 is host, hmm.
<shineworld> during this operation, unfortunately, rockchip kernel miss to reply to last USB command (used to ask android to switch mode)
<shineworld> this cause the error in FTDI connection...
<shineworld> seem only a reply timming question because on 100 times the problem disappear for 10
<shineworld> 1) FTDI (host) send command android to switch mode
<shineworld> 2) android reply to command and switch mode
<shineworld> 3) FTDI detect new device and work fine
<shineworld> VS
<shineworld> 1) FTDI (host) sendo command android to switch mode
<shineworld> 2) android switch mode (without reply to previous command)
<shineworld> 3) FDTI after 2 secs of timeout get in ERROR for missing reply due premature end-point closure
<shineworld> You can check that in libpcap files in my upon link
<shineworld> inquired packages are in filename
shineworld has quit [Quit: Leaving]
<mosquito520> He quit... =.=
<mosquito520> I've check with my contact window, He told me that He doesn't know this mode either...(laugh)
<naobsd> ?
<naobsd> I guess gadget drivers except mass storage/ptp/mtp and adb are not tested at all
rellla has quit [Ping timeout: 260 seconds]
rellla has joined #linux-rockchip
eebrah|mobile has joined #linux-rockchip
eebrah has joined #linux-rockchip
eebrah is now known as Guest85555
Guest85555 is now known as eebrah_
shineworld has joined #linux-rockchip
<shineworld> <naobsd> I guess gadget drivers except mass storage/ptp/mtp and adb are not tested at all
<shineworld> naobsd, that is a bad thing ... for me :) I'm a newbie in kernel usb thigies so....
<naobsd> it's just my guess, but I never heard/saw someone do AOA with RK
<naobsd> shineworld: what's your goal, trying AOA? or controlling something via serial? both?
<shineworld> naobsd, I'm trying to connect an Rockchip based android tablet with a mine board ( https://www.dropbox.com/s/ui4k6te1mbffrcw/IMG_20131002_172731.jpg ) which have a lot of digital I/O and 4 motor controls.
<shineworld> near to usb cable (in board) there is the FTDI FT312 chip.
<shineworld> with Nexus products N4/N7 (2012/2013) and Samsung S3/S3 Mini all worked fine
<shineworld> The android application just connect to board and permit to program any settings, get history alarms, charts of memories, and so on
<shineworld> so my chain is : Android HMI program -> Android OS . usb in AOA mode -> usb cable -> FTDI FT312D chip -> UART signal converter -> My board main CPU
<naobsd> how about using USB host on RK Android tablet?
<shineworld> not all devices have USB Host capability (for example Nexus don't have) so use native USB feature is my "must"
<shineworld> However I wrote a PC simulator which permit a smart guy to debug WHAT'S happen in kernel ah find a fix
<shineworld> The simulator just do what FTDI FT312D chip does to get the comunication
<shineworld> with WireShark is then possible to capture the USB traffic an see the problem
<shineworld> I don't have rockchip kernel and android sources to do by myself (and overall skill in usb device things)
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
<shineworld> I need to find them somewhere
<shineworld> but my previous experiences with AllWinner product to get sources and build for a specific target (my CUBE tablet model) isn't so simple
shineworld has quit [Quit: Leaving]
* sjoerd is confused by the rockchiop kernel sources
<sjoerd> the function to actually setup the nand device never seem to be called
ganbold_ has joined #linux-rockchip
Theueip has quit [Quit: Leaving...]
Theueip has joined #linux-rockchip
Theueip has quit [Client Quit]
Theueip has joined #linux-rockchip
Theueip has quit [Quit: Leaving...]
atiti has quit [Ping timeout: 248 seconds]
Astralix has joined #linux-rockchip
eebrah_ has quit [Ping timeout: 240 seconds]
eebrah|mobile has quit [Read error: Connection reset by peer]
JochenKauz has joined #linux-rockchip
eebrah|mobile has joined #linux-rockchip
eebrah|mobile has quit [Read error: Connection reset by peer]
eebrah|mobile has joined #linux-rockchip
eebrah|mobile has quit [Read error: Connection reset by peer]
eebrah|mobile has joined #linux-rockchip
eebrah_ has joined #linux-rockchip
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-rockchip
akaizen has quit [Ping timeout: 252 seconds]
Theueip has joined #linux-rockchip
Theueip has quit [Client Quit]
Theueip has joined #linux-rockchip
Theueip has quit [Quit: Leaving...]
eebrah|mobile has quit [Read error: Connection reset by peer]
Theueip has joined #linux-rockchip
<mosquito520> sjoerd: cuz Rockchip using private nand driver...it should be release in the future in someone brand that released source
eebrah_ has quit [Ping timeout: 260 seconds]
__trine has quit [Ping timeout: 252 seconds]
_trine has joined #linux-rockchip
akaizen has joined #linux-rockchip
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-rockchip
akaizen has quit [Ping timeout: 272 seconds]
akaizen has joined #linux-rockchip
akaizen has quit [Remote host closed the connection]
JochenKauz has quit [Quit: Leaving.]
akaizen has joined #linux-rockchip
akaizen has quit [Ping timeout: 248 seconds]