Solved

RS485 PROGRAMMING USING vc++

Posted on 1999-01-06
7
363 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

773 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