Asked — Edited

Auto Boot And Connect To Ezb

I have a fortune teller I built a couple of years ago, powered by an EZB. The computer which operates it is mounted in the cabinet. This allow security as it sits in a barn open to the public.

To turn the fortune teller on, we have to open the cabinet, start the computer, go to EZ builder, make the connection, etc. then lock it up again. Few know how to navigate the startup steps required in the ARC software to get it running.

My question: is there a way an automatic start file can be made, so when the computer is turned on everything can be loaded and the program starts?

I already have the EZB, start a run script when it connects. which starts the builder program.

I have no clue if or how this can be done. Any ideas? I am sure others, have robots, which would like a feature allowing it to be turn on with a switch, and the robot could "self start".


ARC Pro

Upgrade to ARC Pro

Unlock the true power of automation and robotics by becoming a proud subscriber of Synthiam ARC Pro.

#9  

hmm...it doesn't auto-reconnect when the EZ-B (or the computer) powers up?

What is the architecture? Are you using one dongle for internet (or home network through a router) and hte other for EZ-B's network? If that is the case, I would put the EZ-B in client mode, and in your router, assign it a static IP so it is always the same IP n the project.

Alan

#10  

Tomorrow I will pull the network dongle so there is only the one for the EZb and see if it connects. I only need the EZB. I don't need the network.

#11  

It is working great ! I changed out the dongle and it works fine. It connects and runs perfect with the computer booting from scratch. All that is left is I need to re-do the switch on the EZB and it will be done. I can still connect to the network too.

Alan, thanks for the help !

#13  

Hi @the tech guru & @Richard_R

Thanks for the autoconnect script.

It works great if I choose to manually disconnect from ARC.

However, with that script looping if I turn off the power on the EZB robot, ARC thinks the robot is still connected and when the robot is turned back on the script will not reconnect the robot!

A way to demo the issue is use the script on a blank program, connect to the EZB and then turn off the robot. Note that the Connection Control will still indicate the robot is connected (isconnected(0) =TRUE) and the script will not reconnect

After running some tests, I found that the way to make it work in this situation is to add an additional script that tries to exercise the connection so that ARC will declare the connect disconnected.


:loop
if (isconnected(0) = FALSE)
  ControlCommand("Connection", Connect0)
  Print("reconnecting")
else 
  print("...")
endif 

ControlCommand("WatchDog", ScriptStart) # exercise connection
Sleep( 5000 ) 
goto(loop)

and here is the Watchdog script to exercise the connection. This code can't be in the looping script as it will crash when no connection is found


# cause an activity to take place on EZB 
servo(d0,GetServo(d0))

Regards, Frank

#14  

Coolest, kinda like in olden days when we had to send a ping to keep a connection open. :)

#15  

Hi Dave, What I especially like about this approach is that I can keep a low cost Windows tablet (NuVision) running ARC with a program on it for a robot and turn on that robot and have ARC automatically connect to it!

Its almost like having the program resident in the EZB on the robot...:)

Just turn on the robot and it starts operating

Regards, Frank