Go Down

Topic: How can I change arduino behaviour when I connect it? (Read 537 times) previous topic - next topic

1uberhunter1

Hi everyone,

When I connect arduino from USB to computer I want my computer sees arduino only when I press some combination of keys on keyboard.

For example, after connection I want my computer see arduino only when I press Ctrl+T+S.


Is this possible?

Thanks for reading and sorry for bad English.

ballscrewbob

#1
Mar 24, 2017, 03:48 pm Last Edit: Mar 24, 2017, 03:51 pm by Ballscrewbob
It sounds like you want to interrupt the USB enumeration process.

There is a method for flash drives etc. but I am unsure if that would work well for the Arduino as it also involves a COM port emulation process.

Maybe if you include lots more information somebody can help but you don't really give enough to make an informed guess even.

You really should read this section and come back with more information.

If its on WINDOWS and you are a FULL administrator of that computer you could use a GPO to take some control.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

1uberhunter1

#2
Mar 24, 2017, 03:52 pm Last Edit: Mar 24, 2017, 03:58 pm by 1uberhunter1
Thanks for answering.

I do not know how to explain anymore my problem.

Moderators can be removed if this post does not comply with the rules.

I will work with arch linux and also I want to work this combination in all computers.

I try to say i want to change something in arduino not operation system.

DrAzzy

I think this is an X-Y problem. What are you actually trying to *do*?
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

ballscrewbob

#4
Mar 24, 2017, 04:07 pm Last Edit: Mar 24, 2017, 04:08 pm by Ballscrewbob
If its a clone board you may have no option but to use a GPO on the computer.

If its a REAL arduino and you are very comfortable with changing the bootloader and have the knowledge then it "may" be possible.

Otherwise then the answer must be NO I am afraid.

What you are asking to do is essentially password or key stroke the bootloader.

EDIT

The computer would still need to talk to the ARduino and enumerate it in some form even to key stroke it.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.


Go Up