Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 26th, 2006, 10:16 PM
bravo6 bravo6 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: U S of A
Posts: 251 bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 7 h 14 m 44 sec
Reputation Power: 17
Send a message via AIM to bravo6 Send a message via MSN to bravo6
Software design for hardware?

Anyone have any experience with designing software for hardware? I know C++ & C# pretty decent and designed several applications with them but I have some old hardware that I would like to use but I have no software for it. I do not have any experience with interfacing soft & hardware. My question is how hard is it to interface the two? Any good places to look for tutorials? The hardware is connected via serial connection.

Reply With Quote
  #2  
Old April 27th, 2006, 03:40 PM
NovaX NovaX is online now
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: Bay Area, California
Posts: 597 NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 7 h 53 m 39 sec
Reputation Power: 606
Send a message via ICQ to NovaX
Hardware/Software co-design can be pretty fun, but challenging. You'll need to learn the specifications of the hardware you are using, the programming language's libraries, and any O.S. protection that puts up roadblocks. For example, you may not be able to write directly to the hardware with straight C code in Windows XP, but instead use their APIs. I believe with serial ports you need to make a modification to get direct hardware access.

You may also need to learn the how to deal with interrupts, vector tables, etc. depending on what you're trying to do. All in all, you probably won't have too many problems as long as you're willing to read specifications and accept that you'll make mistakes due to misunderstanding (or forgetting parts of) them.

Reply With Quote
  #3  
Old April 27th, 2006, 07:19 PM
bravo6 bravo6 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: U S of A
Posts: 251 bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level)bravo6 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 7 h 14 m 44 sec
Reputation Power: 17
Send a message via AIM to bravo6 Send a message via MSN to bravo6
thanks for the info, the thing about this hardware was it was designed about 10 years ago for an old flight simulator that has been discontinued and is no longer supported by the manufacture in any way. I want to developed it so that I can use it with a new flight simulator and make use of this very expensive faa certified equipment; any suggestions on where to start when dealing with a situation of this type? I don’t think it will be too hard once I figure out what the heck I am doing. Is C the language fore doing something like this? is there any applications out there that can read data from a serial so I can even test to see that I am receiving data?

Reply With Quote
  #4  
Old April 27th, 2006, 08:01 PM
NovaX NovaX is online now
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: Bay Area, California
Posts: 597 NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level)NovaX User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 7 h 53 m 39 sec
Reputation Power: 606
Send a message via ICQ to NovaX
Oh sure, C or C++ would be great languages. You should have no problem finding easy libraries for direct hardware access and good tutorials. I would also be very surprised if you had a hard time finding a port monitoring utility, so you could see the data being passed to/from the device. However, you're friend here is Google.

You're going to have to spend a good amount of time monitoring the port to reverse engineer the HW/SW layer. You'll probably want to try to load it up with the old software, monitor the commands, and map it out. It shouldn't be too difficult, luckily, and then you can begin writing the code. It will take some time, but it sounds like a great project to learn from.

My experience is with custom hardware, assembly and C code for embedded systems - in college. So I can give pointers, but its been a while.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > Software design for hardware?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT