Solved

RS485 PROGRAMMING USING vc++

Posted on 1999-01-06
7
365 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clean Uninstall of VS Professional 2015 5 56
windbg taking it's time 32 95
SSRS troubles 4 69
Please explain the parts of these 2 LINQ expressions 3 54
This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 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