flat assembler
Message board for the users of flat assembler.

Index > Windows > Driver Question (I Guess.)

Author
Thread Post new topic Reply to topic
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 17 Mar 2011, 01:49
Hello everyone! I have question about drivers (If I'm not wrong). I'm interested about how to control devices ? For example, I have mobile phone which can be connected to my PC via USB port. How can I give commands to phone to do something ? for example play song or whatever.. Can you suggest me some books about it or where I can learn that ? or maybe fresh example if nobody knows.. Smile Thank you.
Post 17 Mar 2011, 01:49
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 17 Mar 2011, 03:08
Yes, that would be a driver.

Your phone would have to have an interface for you to be able to make it play a song, which I doubt it does, and if it does, I doubt even more that the interface isn't proprietary. (ie you probably can't use it without a crap load of crap loads of work, if at all.)

Simpler USB stuff may be a good start. Maybe you could write a flash drive driver. Here's an example of USB enumeration(finding out what is connected): http://flatassembler.net/examples/usbenum.zip
Post 17 Mar 2011, 03:08
View user's profile Send private message Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 138
SFeLi 17 Mar 2011, 06:08
Overflowz, it is likely that you've already installed drivers for your mobile phone and these drivers include virtual COM port driver (for using the phone as GPRS modem). If it is true, start here.
Post 17 Mar 2011, 06:08
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 17 Mar 2011, 11:08
Tyler
That code is really huge and hard to understand. Can you give me code in MASM if nobody has written in FASM ?
SFeLi
I don't understand what you mean Sad Maybe first I'll try to write USB driver like Tyler said ? but I need start to understand how devices work ? I have Kingston USB Flash drive and suggest me please how to start (: Thank you.
and 1 more question, if I'll write USB driver, then what it can do ? I don't understand functionality of drivers why they exists.. ))
Post 17 Mar 2011, 11:08
View user's profile Send private message Reply with quote
dancho



Joined: 06 Mar 2011
Posts: 74
dancho 17 Mar 2011, 12:31
@Overflowz
well you could start from here :
Driver Development Part 1: Introduction to Drivers -
http://www.codeproject.com/KB/system/driverdev.aspx

or :
Kernel Mode Driver Tut -
http://www.freewebs.com/four-f/
Post 17 Mar 2011, 12:31
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 17 Mar 2011, 13:58
dancho
Wow, second seems interesting! Thank you.
P.S I don't understand C/C++ so.. second one is best way hehe ))
Post 17 Mar 2011, 13:58
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.