ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

PRO
Canada
#1  

Yes, you can create a script in ARC to handle camera reconnection if it disconnects. While I cannot provide you with the actual code, I can guide you on how to approach this within ARC.

You can use the ControlCommand() script function to start and stop the Camera Device skill. If you detect that the camera has disconnected, you can issue a command to stop and then start the camera again.

Here's a general approach to how you might handle this:

  1. Use a loop in your script to periodically check the status of the camera.
  2. If the camera is not connected, use the ControlCommand() to stop the camera.
  3. Then use another ControlCommand() to start the camera again.

You can find the specific ControlCommand() syntax for the Camera Device skill by using the Cheat Sheet in the script interface within ARC. The Cheat Sheet will list all available commands for the skills you have added to your project.

Remember to handle this with care, as you don't want to create a script that continuously restarts the camera unnecessarily, which could cause other issues.

For more information on scripting and using ControlCommand(), you can refer to the ARC Scripting documentation on the Synthiam website: https://synthiam.com/Support/Skills/Scripting/ARC-Scripting

If you need further assistance with scripting or have other questions about your project, you can explore the support section on the Synthiam website for additional resources and guides.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
#2  

In addition to what @athena said, I would also like to add that you should find the cause of the disconnection. A USB camera or TCP wifi camera connection will be maintained for years if it is not disconnected. The cause of the disconnection should be identified, as a reconnect script is a bandaid to a much larger problem.

Since you have IoTiny selected, one would assume you have a wifi camera connected to the IoTiny. If that is the case, you should look into a few things for diagnosing.

  1. Power. The power consumption of your robot may be exceeding the power supply. When this happens, the IoTiny and camera may brown out. This will disconnect the camera.

  2. Servos Stalling. The servos are stalling, which means they are attempting to move further than their limits or lifting something too heavy. If this is the case, it's essentially shorting out the power supply, which will cause a brownout

  3. wifi saturation. Depending on your environment, you may be experiencing wifi saturation. This is when too many wifi devices are within a localized area, causing interference. You can use a wifi scan tool to find a free wifi channel. We have a tool and info available on this page: https://synthiam.com/Support/troubleshooting/Troubleshoot-WiFi-Connections  (scroll down to find WiFi Channel/Signal Scan)

  4. WiFi Open Network. If your IoTiny is in access point mode, it may allow connections from anyone with a wifi device. That means a phone, laptop, TV, dishwasher, etc.. Without a passphrase or password on the wifi network, anyone can connect to it. Having more connections can cause the IoTiny to drop other connections.

PRO
Canada
#3  

Thank you for the additional insights. It's indeed crucial to identify the root cause of the camera disconnection to ensure a stable and reliable robot operation. Addressing the underlying issue will provide a more permanent solution than a script that repeatedly attempts to reconnect the camera.

As mentioned, power issues, servo stalling, Wi-Fi saturation, and open network vulnerabilities can all contribute to camera disconnections. Investigating these potential causes and taking appropriate measures to resolve them will help maintain a consistent connection to the camera.

If you need further assistance with troubleshooting or have other questions about your IoTiny or camera setup, please refer to the support section on the Synthiam website for additional resources and guides: https://synthiam.com/Support

Remember, maintaining a stable power supply, ensuring servos are not overloaded, optimizing Wi-Fi settings, and securing your network are all important steps in creating a reliable robot experience.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
PRO
USA
#4  

I use the ez robot camera with iotiny.

PRO
Synthiam
#5  

Support and Athena are correct - once you nail down the reason for disconnecting, it'll be one less thing to worry about. If only all the hardware played nice with each other! I'm leaning toward either Wi-Fi or power-related. Oh and like support said, make sure you start using a password on the IoTiny wifi to keep sneaky people out haha

PRO
USA
#6  

Yes all wifi connections  are secure. I will scan network. Thanks