caramoan tour package

caramoan tour package

Author Topic: Help- USB host controller ng printer  (Read 822 times)

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Help- USB host controller ng printer
« on: August 10, 2010, 01:44:27 PM »
Hello po. My design project po kame. Magcreate po kami ng device na mag-accept ng files via usb to print directly sa printer. Naghahanap po ako ng pwede makatulong sa amin especially sa pag-communicate sa printer. Sana po matulungan niyo ako.Thanks!

Philippine Electronics Forum

Help- USB host controller ng printer
« on: August 10, 2010, 01:44:27 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4825
  • Pogi/Ganda Points: 320
  • Gender: Male
  • Nalulunod lang...
Re: Help- USB host controller ng printer
« Reply #1 on: August 10, 2010, 02:38:30 PM »
^ you're out of luck.
sadly sobrang difficult nito. unless gagamit ka nang PC which... a cheat.

di ganun ka simple yung programming. even impossible to a person that don't have any know how on making a off the shelf printer.
may kanya kanya yang driver yan.


Philippine Electronics Forum

Re: Help- USB host controller ng printer
« Reply #1 on: August 10, 2010, 02:38:30 PM »

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Re: Help- USB host controller ng printer
« Reply #2 on: August 10, 2010, 05:40:41 PM »
quote author=Martin link=topic=19216.msg331949#msg331949 date=1281422310]
^ you're out of luck.
sadly sobrang difficult nito. unless gagamit ka nang PC which... a cheat.

di ganun ka simple yung programming. even impossible to a person that don't have any know how on making a off the shelf printer.
may kanya kanya yang driver yan.


[/quote]


Pero kung sa isang specific na printer lang po ung gagawin namin na device? possible po right?
May mga research na kasi akong nagawa about sa issue of compatibility of printer drivers, problem ko na lang po is wala akong mahanap na resources like e-books on how PC communicates to a printer to command it to print a file. Baka po may ma-refer ka po. Salamat![

Philippine Electronics Forum

Re: Help- USB host controller ng printer
« Reply #2 on: August 10, 2010, 05:40:41 PM »

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Help- USB host controller ng printer
« Reply #3 on: August 12, 2010, 09:11:45 PM »
Quote
Magcreate po kami ng device na mag-accept ng files via usb to print directly sa printer.

What files do you want to print? Word document files? How about JPEG picture files?
"Set your mind free!"

Philippine Electronics Forum

Re: Help- USB host controller ng printer
« Reply #3 on: August 12, 2010, 09:11:45 PM »

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Re: Help- USB host controller ng printer
« Reply #4 on: August 12, 2010, 10:20:59 PM »
What files do you want to print? Word document files? How about JPEG picture files?

uhm....according to my research, the easiest file to print is image files like JPEG.....so I think I would focus on printing image files first.....please help...:(

Philippine Electronics Forum

Re: Help- USB host controller ng printer
« Reply #4 on: August 12, 2010, 10:20:59 PM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10719
  • Pogi/Ganda Points: 630
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Help- USB host controller ng printer
« Reply #5 on: August 12, 2010, 11:56:31 PM »
for JPEG's, research for PICTBridge. but be warned, hindi beginner level ang programming nito. nasa intermediate to advanced level programming 'to.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Help- USB host controller ng printer
« Reply #6 on: August 13, 2010, 05:54:06 AM »
uhm....according to my research, the easiest file to print is image files like JPEG.....so I think I would focus on printing image files first.....please help...:(

Let us break down the tasks you need to do.

1. You need an interface to the USB drive. This is of course a USB host.
2. The software on the MCU must be able to read the USB. This means the MCU software must at least have a form of DOS (Disk Operating System) to read a FAT formatted USB drive.
3. Once it is able read a JPEG file, software must be able to convert it to a raster format suitable for printing.
4. You need another interface to the printer. If you use a USB interface, then you would need a hub to expand the number of USB ports. It is harder to communicate through a hub than directly connected to the USB port. For example, digital cameras directly connected to the printer use USB OTG.
5. As you said you can select the printer. You can select a printer with a parallel port. That would simplify communicating to the printer.
6. You have to write software to send the raster data to the printer following the protocol that the printer knows.
"Set your mind free!"

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Re: Help- USB host controller ng printer
« Reply #7 on: August 13, 2010, 09:22:06 PM »
Let us break down the tasks you need to do.

1. You need an interface to the USB drive. This is of course a USB host.
2. The software on the MCU must be able to read the USB. This means the MCU software must at least have a form of DOS (Disk Operating System) to read a FAT formatted USB drive.
3. Once it is able read a JPEG file, software must be able to convert it to a raster format suitable for printing.
4. You need another interface to the printer. If you use a USB interface, then you would need a hub to expand the number of USB ports. It is harder to communicate through a hub than directly connected to the USB port. For example, digital cameras directly connected to the printer use USB OTG.
5. As you said you can select the printer. You can select a printer with a parallel port. That would simplify communicating to the printer.
6. You have to write software to send the raster data to the printer following the protocol that the printer knows.
Ok. Thank you po. I'll research on this things. I'll give you an update kasi honestly hindi ko po alam kung paano sisimulan. At least now I have an outline. Thank you. I'll post my update as soon as possible.

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Re: Help- USB host controller ng printer
« Reply #8 on: August 13, 2010, 09:26:10 PM »
for JPEG's, research for PICTBridge. but be warned, hindi beginner level ang programming nito. nasa intermediate to advanced level programming 'to.

about po sa programming, Printer Command Language po ba yung kelangan namin pagaralan?
Kelangan po talaga namin ng assistance with this project. Baka naman po you know someone who could help us with our problem, especially about sa programming nito. Please.

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Help- USB host controller ng printer
« Reply #9 on: August 14, 2010, 12:16:21 AM »
My suggestion is to buy a starter kit of an MCU that is powerful enough to handle this job. Para sigurado, buy a starter kit of a 32-bit MCU. Also pick one that has USB host interface. Usually sa starter kits may sample programs that can access a USB drive for example. There might be sample programs to print to a PCL printer.

"Set your mind free!"

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: Help- USB host controller ng printer
« Reply #10 on: August 14, 2010, 12:26:36 AM »
merong sample sa microchip ng usb host gamit ang DSPIC

http://www.microchip.com/usbprinter/
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Help- USB host controller ng printer
« Reply #11 on: August 14, 2010, 11:09:04 AM »
Pwede ganitong setup.

SDCARD -> SPI interface -> starter/evaluation kit board -> USB Host interface -> Printer

If you will use an SDCARD instead of a USB drive, you will only need one USB host interface to connect to a printer.
"Set your mind free!"

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Re: Help- USB host controller ng printer
« Reply #12 on: August 14, 2010, 12:25:48 PM »
Saan po ba dito sa manila may mga available na microcontroller na may USB printing device?
Thanks!

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10719
  • Pogi/Ganda Points: 630
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Help- USB host controller ng printer
« Reply #13 on: August 16, 2010, 01:42:34 PM »
^ try Farnell or RS Philippines.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Re: Help- USB host controller ng printer
« Reply #14 on: August 20, 2010, 09:48:08 PM »
Guys, may nakita na po ako na pwede namin gamitin. USBWiz ng GHI electronics. Kaso wala po akong mahanap na mabilhan nito dito sa Philippines. Baka po meron kayong alam na pwede kong mabilhan nito.Thanks.

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Help- USB host controller ng printer
« Reply #15 on: August 21, 2010, 06:51:23 AM »
Medyo madaya ang USBWiz, kasi bale implemented na niya ang project requirements ninyo. Halos wala na kayong gagawin. It defeats the purpose of your project. Ewan ko kung tatanggapin ito ng prof ninyo.
"Set your mind free!"

Offline eyfifteen

  • CR2032 Battery
  • **
  • Posts: 17
  • Pogi/Ganda Points: 0
Re: Help- USB host controller ng printer
« Reply #16 on: August 22, 2010, 01:15:45 PM »
hindi naman po siya madaya....may problem pa din po kami if we use USBwiz.....kelangan namin ng programming part na magconvert ng files to .prn format..meron po ba kayong alam na source code for this? thanks po.

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1878
  • Pogi/Ganda Points: 243
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Help- USB host controller ng printer
« Reply #17 on: August 22, 2010, 02:13:27 PM »
hindi naman po siya madaya....may problem pa din po kami if we use USBwiz.....kelangan namin ng programming part na magconvert ng files to .prn format..meron po ba kayong alam na source code for this? thanks po.

In that case, do the project on a PC. Same lang ang gagawin kung converting files to .prn format lang pala ang kailangan gawin.
"Set your mind free!"

Philippine Electronics Forum

Re: Help- USB host controller ng printer
« Reply #17 on: August 22, 2010, 02:13:27 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com