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 Development
| |-+  Starting Development and Compiling
| | |-+  Enabling usb serial at startup
« previous next »
  • Print
Pages: [1]

Author Topic: Enabling usb serial at startup  (Read 1401 times)

Offline hunternet93

  • Member
  • *
  • Posts: 4
Enabling usb serial at startup
« on: July 17, 2011, 04:15:23 PM »
I'm working on a project where I'm using an old Sansa e200v1 as a general purpose clock, email notifier, etc. It will use USB serial to transfer data from my computer. Right now I have to enable serial from the debug menu before it will connect to my computer, is there an option to have to connect automatically?
Logged
| EEE PC 900 user | Sansa e250 + rockbox user | Python programmer | Debian linux user | geek | [content deleted because it wasn't there] | blah blah blah | I'm bored now... |

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Enabling usb serial at startup
« Reply #1 on: July 17, 2011, 04:19:25 PM »
Add whatever that debug menu option does to the rockbox main() function in apps/main.c.   
Logged

Offline LoneWolf_Recon

  • Member
  • *
  • Posts: 10
Re: Enabling usb serial at startup
« Reply #2 on: July 18, 2011, 07:43:51 PM »
Question? Does debug allow for two-way communication via USB?
(Sorry for kinda hijacking this post  :-\ )
Logged
Building crap since 2004.. ;D         Sansa Fuze v2

Offline pamaury

  • Developer
  • Member
  • *
  • Posts: 508
Re: Enabling usb serial at startup
« Reply #3 on: July 19, 2011, 04:11:12 AM »
@hunternet93: I think I already answered you on IRC. Your best hope is to tweak usb.c to enable the serial driver each time. See how it's done for mass storage for example. The code is not especially simple but you should be able to do it.

@LoneWolf_Recon: please don't hijack posts. Your question is too vague. USB serial only allows device > devie flow, the host > device data is trashed. I posted an untested pastebin (http://pastebin.com/ZdTphVL3, doesn't compile, lots of things to fix) which enables to use both direction but it depends on what your are trying to achieve. If you want more information, create a new thread.
Logged
Please don't PM me, use our IRC channel instead.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Enabling usb serial at startup
 

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

Page created in 0.081 seconds with 15 queries.