Support and General Use > Hardware

Sansa clip+ USB controller

<< < (2/2)

gevaerts:

--- Quote from: gomezz on September 21, 2016, 06:33:02 AM ---Does not the presence of Car Adaptor mode in Settings for the Clip+ indicate that this *is* supported?

--- End quote ---

No, not any more than that the presence of EQ settings indicate that the rockblox plugin will work.

saratoga:

--- Quote from: Echo on September 21, 2016, 03:57:09 AM ---
--- Quote from: wodz on September 20, 2016, 03:05:30 PM ---
--- Quote from: Echo on September 20, 2016, 03:53:42 AM ---I know that I'll have to do some coding

--- End quote ---
Implementing USB host side of OTG would be HUGE coding effort really.

--- End quote ---
Well, that would depend on the controller interface. If I'm lucky, the send/recv interfaces are the same. If not - I'll probably have to find another way

--- End quote ---

You'll still have to implement the host mode USB stack right?  The actual driver level bits are probably pretty small compared to that.


--- Quote from: Echo on September 21, 2016, 03:57:09 AM ---

--- Quote from: saratoga on September 20, 2016, 02:31:35 PM ---Edit: Although I guess it might be pretty hacky to implement if the sense pin isn't actually wired to the connector.

--- End quote ---

Any idea how to check it without opening the casing of the device? After all, if I open the device, I might as well replace the headphone jack.
If it's not connected I have no idea how to implement this.

--- End quote ---

I'd get a USBOTG cable and see if you can get the hardware to detect it.


--- Quote from: gomezz on September 21, 2016, 06:33:02 AM ---Does not the presence of Car Adaptor mode in Settings for the Clip+ indicate that this *is* supported?

--- End quote ---

The car adaptor mode just checks to see if the device is externally powered.  It will work with a simple AC adapter, no USB required. 

Echo:
The quoting got messed up so no more of this.

As to coding effort - The USB protocol itself (token / data / handshake) is implemented by the controller.
My job would be to implement the class driver, using the controller interface, that is - setting up endpoints and sending data to them.
I hope that sending data to an endpoint is the same in both host and device mods of the controller, if so - I can use the code written for device mod.

I hope I'm not too naive, but I'm still in the POC stage - and my first order of business is to see the HW is capable of this adventure.

As for you OTG cable suggestion - How can I know if the HW detected the device? I don't have JTAG or any other HW debugging tools
I tried to connect a disc-on-key using Rockbox and original FW, nothing happened

saratoga:

--- Quote from: Echo on September 21, 2016, 11:47:21 AM ---As for you OTG cable suggestion - How can I know if the HW detected the device? I don't have JTAG or any other HW debugging tools
I tried to connect a disc-on-key using Rockbox and original FW, nothing happened

--- End quote ---

I mean, you write the driver to make this work, and then see what happens.  If you can't detect an OTG cable, there is probably no pin connected, although that can probably be worked around. 

Navigation

[0] Message Index

[*] Previous page

Go to full version