Rockbox Development > Starting Development and Compiling

Enabling usb serial at startup

(1/1)

hunternet93:
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?

saratoga:
Add whatever that debug menu option does to the rockbox main() function in apps/main.c.   

LoneWolf_Recon:
Question? Does debug allow for two-way communication via USB?
(Sorry for kinda hijacking this post  :-\ )

pamaury:
@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.

Navigation

[0] Message Index

Go to full version