Solved

RS485 PROGRAMMING USING vc++

Posted on 1999-01-06
7
360 Views
Last Modified: 2013-12-03
Suppose i have a rs485 card thru which i would like to communicate with a machine, then how is it possible using VC++. Please give me an idea.I am a novice programmer.
0
Comment
Question by:vivek1
  • 3
  • 2
  • 2
7 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1418145
If the RS485 card has provided a device driver interface, then the answer is yes.  Hopefully they've provided you documentation to it and you can use high level file functions to communicate with it.  

If not, then you are reduced to working with it at the hardware level.  Under Win9x, you must write and use a VxD to communicate with hardware devices.  Under NT, you must write a device driver.

Both of these options require the Windows DDK available from Microsoft in the MSDN Professional Level Subscription and above.  There are some 3rd party device driver tools as well that might speed up the process.  You might check out Vireo at www.viero.com
0
 

Author Comment

by:vivek1
ID: 1418146
Well what i require is that is it possible to access anInterrupt request using windows 95 system calls.If yes then how do i do it using VC++.
0
 
LVL 32

Expert Comment

by:jhance
ID: 1418147
Again, the answer is the same:

If the RS485 card has provided a device driver interface, then the answer is yes.  Hopefully they've provided you documentation to it and you can use high level file functions to communicate with it.  

If not, then you are reduced to working with it at the hardware level.  Under Win9x, you must write and use a VxD to communicate with hardware devices.  Under NT, you must write a device driver.

Both of these options require the Windows DDK available from Microsoft in the MSDN Professional Level Subscription and above.  There are some 3rd party device driver tools as well that might speed up the process.  You might check out Vireo at www.viero.com
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:ivi
ID: 1418148
I recommend you some third-party tools for access to the hardware from Win32:
- commercial WinRT (www.bluewatersystems.com)
- shareware TVicHW32 (www.entechtaiwan.com/tools.htm)
- commercial Driver::Agent (www.vireo.com)

0
 

Author Comment

by:vivek1
ID: 1418149
I need a solution and not consultancy on where to find it on the network
0
 
LVL 2

Expert Comment

by:ivi
ID: 1418150
That's great! :)
jhance gave you full solution! I've added - if you do not want to write your own VxD (or a KM-driver for NT) then you can use the drivers already written by other people. Maybe you want to get a solution how to write a drivers?
0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 1418151
Again, the answer is the same:

If the RS485 card has provided a device driver interface, then the answer is yes.  Hopefully they've provided you documentation to it and you can use high level file functions to communicate with it.    

If not, then you are reduced to working with it at the hardware level.  Under Win9x, you must write and use a VxD to communicate with hardware devices.  Under NT, you must write a device driver.

Both of these options require the Windows DDK available from Microsoft in the MSDN Professional Level Subscription and above.  There are some 3rd party device driver tools as well that might speed up the process.  You might check out Vireo at www.viero.com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short film showing how OnPage and Connectwise integration works.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now