SmartMX Camera - Firmware Update Bug

SmartMX Camera - Firmware Update Bug

After updating to firmware 1.2.0+, the SmartMX camera may turn on at boot and then minutes later power off for no apparent reason, this could be a symptom of a firmware update bug. 
If the Vehicle has been added to Black Moth Universe then a patch will be deployed shortly after boot to rectify this. 

This is a technical guide and not recommended without instruction.

First Check - Reset Network Switch

The vehicle must be turned on but the affected camera must now be offline to detect if this is the bug. 
Set the vehicle's IP Address:
  1. Tigerip={vehicleIpAddress}
Find the camera's IP address. This can be found in the API : $Tigerip:8080/config/camera/
or through command prompt: 
  1. curl -s http://$Tigerip:8080/config/camera/ | python -m json.tool
Set the camera's IP address and try to ping it.
  1. ssh root@$Tigerip
  2. cam_ip={cameraIpAddress}
  3. ping $cam_ip
Expect no response, if you do get a response this is not the firmware bug - contact support. 
If there's no response we can now reset the network switch and then ping again. 
Note: This will reboot all cameras at once. 
  1. mv88e6097 reset
  2. ping $cam_ip
You should shortly begin to see a network ping, it should be almost immediate, but it may take a minute or 2. If the camera does start to ping you've confirmed that it was the firmware bug. 

Update Firmware

Once it's online stop the rtsp-server and the camera will force itself to download the latest firmware from the TigerMX. 
Your SSH connection may get refused if the camera is still loading, just keep trying. 
  1. ssh root@$cam_ip
  2. systemctl stop rtsp-server
Now the system will try to update the camera uninterrupted:
  1. journalctl -lfu firmware-upgrade
Wait for this process to run it's course until you get the following output, it may take a few minutes:
  1. [Info ] image download OK
If the engine is not turned on you may to restart the poe via API to keep the camera online to complete the firmware update:
http://$Tigerip:8080/shutdown/powerup/poe/

Reboot and Test

Once the download is complete restart the rtsp-server go restart the video stream. 
  1. systemctl restart rtsp-server
It may be take 5 minutes of uptime to ensure if the camera is now stable and not rebooting.

Camera rebooting after the update

This can occur when the power state gets confused , the fix is to power cycle the POE via the API. 
Note: This turns off all cameras at once.
First, remove power from the POE.
  1. /shutdown/powerdown/poe/
followed by returning the power.
  1. /shutdown/powerup/poe/