Hi, first time post here...ive googled for countless days for the answer with no luck.
Im looking to do something completely simple. All i want to do is when i plug the arduino (any arduino) into the USB port of any computer, i want it to automatically open a specified URL. Thats it. Like an autorun.bat function of a usb thumbdrive.
a secondary function i would like would be to use the arduino as a Mass storage device. ..even if it is 32k of memory.
any ideas on this? i dont want to add any extra shields or complicate the arduino more than it is. Just plug it into via usb...open URL...done.
lmbmusic:
Im looking to do something completely simple.
This is not at all simple!
lmbmusic:
All i want to do is when i plug the arduino (any arduino) into the USB port of any computer, i want it to automatically open a specified URL. Thats it. Like an autorun.bat function of a usb thumbdrive.
You must write your own Arduino driver for USB and implement this new functionality into it.
lmbmusic:
All i want to do is when i plug the arduino (any arduino) into the USB port of any computer, i want it to automatically open a specified URL. Thats it. Like an autorun.bat function of a usb thumbdrive.
When you say 'any Arduino' and 'any computer' that's obviously impossible, because either the Arduino or the computer or both have to do something to make this happen, so your solution can only work for those Arduinos or those computers which implement your solution. If you really only need it to work with specific Arduinos on specific computers that would be possible. If that's your goal, how do you intend the Arduino to access the network? If it's via the computer then the methods to do that depend entirely on software on the computer.
Regarding the Arduino appearing as a storage device, the simplest way to achieve that would be to use a separate USB storage device. You could use a USB hub to connect it to the same USB port as the Arduino.
lmbmusic:
All i want to do is when i plug the arduino (any arduino) into the USB port of any computer, i want it to automatically open a specified URL. Thats it. Like an autorun.bat function of a usb thumbdrive.
When you say 'any Arduino' and 'any computer' that's obviously impossible, because either the Arduino or the computer or both have to do something to make this happen, so your solution can only work for those Arduinos or those computers which implement your solution. If you really only need it to work with specific Arduinos on specific computers that would be possible. If that's your goal, how do you intend the Arduino to access the network? If it's via the computer then the methods to do that depend entirely on software on the computer.
Regarding the Arduino appearing as a storage device, the simplest way to achieve that would be to use a separate USB storage device. You could use a USB hub to connect it to the same USB port as the Arduino.
Ive seen examples where plugging in an arduino into the USB port will start typing in a word document. Id like to do the same but instead open a webpage.
Youre right...any computer...any arduino..too vague.
But so far no one has really offered solutions..just attempted to pick up my initial question.
Arduino nano...completely independent of any other device/power supply/shield...plugged into a windows xp/7 PC..instead of starting to type...or a key logger...or minic a mouse..open a URL...hows that?
lmbmusic:
Arduino nano...completely independent of any other device/power supply/shield...plugged into a windows xp/7 PC..instead of starting to type...or a key logger...or minic a mouse..open a URL...hows that?
Do you mean that the Arduino will download from the URL via the computer's network connection? Do you need the content of the returned document at the Arduino, or is it sufficient that the document was downloaded at the PC?
You might be able to do something using an autorun file on the storage device - but any sensible person would disable the autorun capability. If you're willing and able to persuade your users to leave it enabled, this opens up some options that you could implement without getting into the depths of USB drivers.
Can we assume that the PC already has the Arduino USB serial drivers installed?
lmbmusic:
Arduino nano...completely independent of any other device/power supply/shield...plugged into a windows xp/7 PC..instead of starting to type...or a key logger...or minic a mouse..open a URL...hows that?
Do you mean that the Arduino will download from the URL via the computer's network connection? Do you need the content of the returned document at the Arduino, or is it sufficient that the document was downloaded at the PC?
You might be able to do something using an autorun file on the storage device - but any sensible person would disable the autorun capability. If you're willing and able to persuade your users to leave it enabled, this opens up some options that you could implement without getting into the depths of USB drivers.
Can we assume that the PC already has the Arduino USB serial drivers installed?
no, the aduino doesnt download anything...its simply opening a website...thats it....the pc will not have usb drivers....What im looking to do is build my own thumbstick if you will that i can give to customers...that links them to my website...thats as simple as it gets
lmbmusic:
What im looking to do is build my own thumbstick if you will that i can give to customers...that links them to my website...thats as simple as it gets
I that case I don't see how the Arduino is involved at all. If you really want to make the customer's PC open your website when they plug your memory stick in to a Windows PC then you can just set up an autorun installation on the memory stick to open the specified URL in the default browser. It will need their cooperation to allow the autorun to be executed. This would be windows specific. If you want it to work on other operating systems too, perhaps you could set up a Joliet file system.
Wouldn't it be simpler just to give them a QR code?