Jump to content

How to open a file with string through USB?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
K_Flynn

K_Flynn

    Newbie

  • Members
  • Pip
  • 4 posts
I am trying to open a file ( like a picture) by sending a null terminated string from a micro-controller through a USB to my computer. The only command that I have available to send to the PC is: "_SendString232" or

uchar _SendString232 (long ptr)

Is there a program that can get the info from the USB and then open the desired file? Can I write a program ( e.x. in Microsoft Visual Studio or other environment) that gets info from the USB then have that program open a file? Is it possible to send a ShellExecute() command through the USB making windows open a file?

I EMPHATICALLY THANK YOU FOR YOUR HELP!!!

My computer specs:
64-bit Dell with Windows 7 OS.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
As a hunch, it sounds like you'll need to write a driver to do this. This will not necessarily be simple to do.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Carver413

Carver413

    Newbie

  • Members
  • PipPip
  • 13 posts
if your using some sort of micro controller with a usb interface then it is very likely that someone somewere has what you need, google is your best bet. and it would be wise to give a better description of what your tring to connect if your using the forums for help. 232 usually refers to the serial port and most computer languages have code to talk to a serial port this is how the internet began. two guys tring to get there computers to talk. try google this
(free pascal microcontroller) it brings quite a few hits of different micro's.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users