CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > OpenSource CNC Design Center > OpenSource Software


OpenSource Software For the Discussion of Opensource CAD/CAM and NC shareware software etc)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-27-2006, 02:00 PM
bunalmis's Avatar  
Join Date: Jul 2003
Location: Turkey
Posts: 246
bunalmis is on a distinguished road
I want to write printer driver for my plotter device.

Hii,

I developed a plotter. I can use this plotter using my software.

Now i want to write plotter driver for windows.
All windows programs easly must use my plotter.

But i dont know anythings for printer/plotter drivers.

Where can I begin.

Can you give me web address for leaning details?
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 02-27-2006, 05:11 PM
 
Join Date: Apr 2003
Location: usa
Posts: 238
kdoney is on a distinguished road
Device drivers are very difficult to produce and the software to help like windriver is expensive. What software are you using to run it now? What windows programs do you want to be able to use it? Inside of corel draw or something? Is the file you want to print a standard file format like HPGL?
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-27-2006, 05:31 PM
 
Join Date: Feb 2005
Location: USA
Posts: 1
groover666 is on a distinguished road
What are you using to move the curser? Stepper motors? If so, try to download driver for old style HP pen plotters. I have one and I think somewhere I might have the pinout for the serial plug.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-27-2006, 05:47 PM
 
Join Date: Apr 2004
Location: United Kingdom
Posts: 16
kerino is on a distinguished road
Let someone else write the driver

Personally I would try to make the plotter emulate an HP plotter (or something equally well known), as I think that would be a lot easier (and cheaper) than trying to write your own, especially as you don't have the experience. Writing drivers for windows is a demanding and difficult process. Also you would have to revise it for each subsequent new windows release. Why not let HP do all that work?
Kerin
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 02-27-2006, 06:25 PM
 
Join Date: Sep 2004
Location: usa
Posts: 32
MHINK is on a distinguished road
look at book by Bergsman, "controlling the world with your PC"
Covers writting code for and to printer ports, even includes code prewritten.
Do Google search or have your library order it for you.

http://www.LLH-Publishing.com
-Mark
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-27-2006, 06:49 PM
 
Join Date: Feb 2006
Location: Australia
Posts: 62
ftkalcevic is on a distinguished road
All the documentation is available online on msdn.

Start here

http://msdn.microsoft.com/library/en...asp?frame=true

(If that doesn't work, go to http://msdn.microsoft.com/library/ then in the tree view, "win32 and com development", "Windows driver kit", "Device and driver technologies", "print".)


I am toying with building a photoplotter so a proof of concept was required to ensure I could get printouts from applications. I ended up building a driver that was configuration only, no code required. This dumped my specific data to a file, then I can send the file to my device. This is a raster device though. I haven't looked into plotter devices.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 02-28-2006, 12:39 AM
 
Join Date: Feb 2005
Location: Romania
Posts: 118
dandumit is on a distinguished road
I would like to start from the latest post.
But in a way is not that complicate. You can use generic UNIDRV printer driver.
Because you're writing an Windows driver you must start from MSDN.

http://msdn.microsoft.com/library/de...49b7f2.xml.asp

At this location you have an link to Microsoft Plotter Driver.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 02-28-2006, 12:24 PM
 
Join Date: Jun 2005
Location: USA
Posts: 3
rolandf is on a distinguished road
The last time I looked you could download the Driver Development Kit (DDK) from microsoft for free. You can also check out codeproject that has tuturials on developing drivers. They just posted Part 6. Check out the link to part 1: http://www.codeproject.com/system/driverdev.asp. As the others have stated writing a driver is not a simple task. I know this from experience having developed kernel and printer (GDI) drivers. You may want to consider purchasing a pre-written driver that allows you to access the printer port and have your application use that driver. That way you don't have to get involved in writing a driver. You don't need a driver to access the printer port but what the driver does it guarantees access.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 02-28-2006, 01:31 PM
bunalmis's Avatar  
Join Date: Jul 2003
Location: Turkey
Posts: 246
bunalmis is on a distinguished road
Originally Posted by kdoney
What software are you using to run it now?
I am using my programs. This program read plt files and converts to my plotter codes and after sends to my plotter via serial port.

This is very long way.

What windows programs do you want to be able to use it?
ACAD, Corel, PCB programs and all other vectorel programs.

Originally Posted by groover666
What are you using to move the curser? Stepper motors? If so, try to download driver for old style HP pen plotters. I have one and I think somewhere I might have the pinout for the serial plug.
Yes i use stepper.

@Kerino and groover666

This is good idea, I can rewrite the firmware of my plotter for doing the compability by HP plotter.

@ftkalcevic, dandumit

Thanks, I visit MSDN pages. I think i will find answers for my all questions.

http://msdn.microsoft.com/library/de...0c19e7.xml.asp
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 07:23 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353