Sign in to follow this  

External hardware/serial programming

This topic is 4749 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been looking into doing some external hardware creation and writing my own drivers/interfaces for external hardware. Hardware being such things as serial devices. I've found some resources on the writing interfaces between programs and hardware, and I figured I'd also check here to see if anyone had any good resources or knew of any 'good' books for that matter. Thanks.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Hey,
Our microprocessor apps class did this last year. We wrote a program in x86 asm to send commands to a robot over a serial connection. Doing this with assembly is very easy (Ive never done this in any other language so I am not sure how that would be). I can send you the source code if you would like, along with the lab report that i believe describes how the program works. The code isn't documented very well, however i think you can probably figure it out. write me at mikaelnelson_nospam_@gmail.com just remove the _nospam_ ...

Share this post


Link to post
Share on other sites
Resources or books? nah. Basically just use CreateFile() to open a COM port, and then write data to it. If you're using an embedded microcomputer, most of them have serial ports to connect up to. If you're using a microcontroller you may have to write your own serial comms code, but even then it ain't terrifically hard.

Do you want to actually write system drivers (ie. for a home-made joystick or something that connects up to a serial port) or just talk to the device?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by fractoid

Do you want to actually write system drivers (ie. for a home-made joystick or something that connects up to a serial port) or just talk to the device?


Actually, both. Not so much that I need to, but just out of curiosity and amusement.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
Quote:
Original post by fractoid

Do you want to actually write system drivers (ie. for a home-made joystick or something that connects up to a serial port) or just talk to the device?


Actually, both. Not so much that I need to, but just out of curiosity and amusement.


That was me above. I was clicking too fast and didn't realize I hadn't signed in.

Share this post


Link to post
Share on other sites

This topic is 4749 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this