Firmware update
77
Bonito PRO Technical Manual V1.0.0
Firmware upload via FileAccess
Step 1: Open the device with your frame grabber SDK
Step 2: Open the firmware file and load it into a
std::vector
Step 3: Open the firmware camera file
Euresys frame grabber
Active Silicon frame grabber
template <typename T>
static bool OpenCameraFile(EGrabber<T> &frameGrabber,const std::string &fileName)
{
// basically fopen( fileName,"w")
frameGrabber.setString<RemoteModule>("FileSelector", fileName);
if( frameGrabber.getString<RemoteModule>("FileStatus") != "Closed")
{
CloseCameraFile(frameGrabber, fileName );
}
frameGrabber.setString<RemoteModule>("FileOperationSelector","Open");
frameGrabber.setString<RemoteModule>("FileOpenMode", "Write");
frameGrabber.execute<RemoteModule>("FileOperationExecute");
if( frameGrabber.getString<RemoteModule>("FileOperationStatus") == "Success"
&& frameGrabber.getString<RemoteModule>("FileStatus") == "Open")
{
return true;
}
return false;
}
Code snippet: Euresys code snippet example
void open(const std::string& fileName, OpenMode mode)
{
if( FileStatus() != "Closed")
{
close( fileName );
}
m_FileSelector->FromString( fileName.c_str() );
m_FileOperationSelector->FromString("Open");
m_FileOpenMode->FromString( toString(mode) );
m_FileOperationExecute->Execute();
if( FileStatus() != "Open")
{
throw RUNTIME_EXCEPTION( fi " could not be opened");
}
}
Code snippet: Active Silicon code snippet example