Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  how to use USB to charge my iriver H320
« previous next »
  • Print
Pages: [1]

Author Topic: how to use USB to charge my iriver H320  (Read 4336 times)

Offline adrianmak

  • Member
  • *
  • Posts: 1
how to use USB to charge my iriver H320
« on: June 14, 2007, 03:29:00 AM »
when I was using official irver firmware, I charged the battery thru usb cable.
After I used the rockbox firmware, plugging usb cable into my PC, H320 shown "bootloader usb mode" what's that mean ? Is it charging ?
Logged

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
Re: how to use USB to charge my iriver H320
« Reply #1 on: June 14, 2007, 07:56:36 AM »
Depends on which bootloader you have.

AFAIK, the last released one (version 5) doesn't charge but if you build your own from SVN it will.

pondlife
Logged

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
Re: how to use USB to charge my iriver H320
« Reply #2 on: June 14, 2007, 08:00:25 AM »
I should add that USB connection will charge if you boot Rockbox first then plug in the cable.  You'll need to ensure that the Charge During USB Connection option is enabled (under System > Battery).

If you want to charge via USB and play music, you need to hold the RECORD button down while you plug the cable in.

pondlife
Logged

Offline Decuman

  • Member
  • *
  • Posts: 14
Re: how to use USB to charge my iriver H320
« Reply #3 on: November 20, 2007, 04:38:08 AM »
Doesn't seem to work anymore? When pressing RECORD button the device switches to voice recording mode :\

Quote from: pondlife on June 14, 2007, 08:00:25 AM
If you want to charge via USB and play music, you need to hold the RECORD button down while you plug the cable in.
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: how to use USB to charge my iriver H320
« Reply #4 on: November 21, 2007, 07:13:59 AM »
Wow, I just realised I didn't have my charger here so plugged in using USB and you are partially correct, it does go to the recording screen, but it does do USB charging. You have to stop recording an resume playback.

I'm guessing that it is this way because while the UI code now has recording screen assigned to the record button, the USB detection code still checks for the record button being pressed.

So the choices are;
A) change the UI buton action to ignore a long record press (I don't know about you but I was used to pressing record, plugging in the cable, then releasing record) and only act on a short record press
B) chose a different button for USB charging

I don't like A as a relatively long press is needed to trigger recording and this seems right to me, and I recon B will be really easy to find and write a patch for - I recon the main unit hold switch being on would be a suitable choice - what do you think?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: how to use USB to charge my iriver H320
« Reply #5 on: November 21, 2007, 02:11:00 PM »
How's the menu button work for you guys? It's the one in use for most other targets. It brings up the quick-screen, but that doesn't interrupt playback or do anything else but just sit there, anyway.

The hold switch would mean that you can accidentally not have access to USB mode without having to tinker with something on the player (I frequently plug my players in while on hold) which seems a little problematic to me.
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: how to use USB to charge my iriver H320
« Reply #6 on: November 21, 2007, 02:32:03 PM »
I haven't looked at the code (that'll be a weekend job) but I guess it doesn't really matter which button is chosen but as you point out it is important to the user to have a button that doesn't disrupt the operation like Rec now does.

 (I'm quite looking forward to this - I love tinkering with the rockbox code, it should be used as a teaching tool in the value of well structured code for reducing maintenance costs)

Update:
The file to change is /firmware/export/usb.h for the H300 the change is to
line 45 - #define USBPOWER_BUTTON BUTTON_MODE
I've made and tested a build on my H320 and it works a treat. Let me know how you like it and I'll do a 'patch' on Flyspray - we could also do with getting it mentioned in the Manual.

I'll put something on Flyspray if
« Last Edit: November 24, 2007, 09:59:25 AM by Multiplex »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  how to use USB to charge my iriver H320
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.091 seconds with 14 queries.