ISVP FAQ


Q-1001: uclibc's Toolchain

A: ISVP's Toolchain is multilib's ,It includes both the glibc and uclibc's link library. Therefore, the applications of glibc and uclibc are applied to compiled toolchain. Refer to 002-ToolchainGuide.md and 003-CompilingGuide.md for further instructions.


Q-1002: T10 failed to start or peripherals(TF card)initialization problems

A: T10 due to the SMIC's problem,if the power has to go completely down, it will leak from IO port to the T10'power network. If you insert the serial port while the board is not powered up, it will leak to the various peripherals. The drain voltage may be in a logic unstable state, which might cause the logical error of the peripheral, and "invalid state". Under such circumstances, if the system is powered up, the peripherirals might not work properly, for instance the TF card initialization might fail. So, it is recommended to first power up the system then insert the serial port.


Q-1003: rmmod error

A: error that occures while removing the ko:
rmmod: can't change directory to '/lib/modules': No such file or directory, or rmmod: can't change directory to '3.10.14-00310-g4e55a44': No such file or directory. The new release's busybox relies on /lib/modules/[uname] folder,A reference approch is located in the created modules's soft link which is in lib/ directory, and then use SDK's mkkodir.sh file(tools/device/script/mk_ko_dir.sh),Once the device is on, it will automatically create this folder /lib/modules/3.10.14-00310-g4e55a44/.


Q-1004: watchdog close file handler prompts 'watchdog watchdog0:watchdog dit not stop'

A:Our wdt driver supports Magic Close,Before "close", you need to write a capital letter "V" to wdt, otherwise it will not be closed(timeout and restart),this prevents accidental withdrawal, and system crash.

Codes:

int fd,retval;  
int timeout = 0;
char a = 'V'; 

fd = open("/dev/watchdog",O_WRONLY);  
if(fd < 0){  
    perror("/dev/watchdog");  
    return -1; 
}   


if (argc > 1) {
    timeout = atoi(argv[1]);
    retval =  ioctl(fd, WDIOC_SETTIMEOUT,&timeout);
    if (retval == -1) {
        perror("WDIOC_SETTIMEOUT ioctl");
        exit(errno);
    }   
}   

for(;;){  
    printf("feed wdt \n");
    retval =  ioctl(fd, WDIOC_KEEPALIVE); 
    if (retval == -1) {
        perror("WDIOC_KEEPALIVE ioctl");
        exit(errno);
    }   
    sleep(4);  
}   

if (write(fd,&a,1) != 1); 
    printf("write error\n");

close(fd); 

Q-2001: Image display is not normal

A: If it's about the color, the possible causes are:

if the night vision image is not normal, you need to check:
if there is no image:
Image vertical stripes:
Image flicker:

Q-2002: About setting the interface of the Frame rate, How to define the Frame rate? What is the difference between FPS and Encoder or contact Sensor FPS?

A: ISVP's Frame rate is in the form of a fraction, consisting of two data: num, den, where num is numerator(dividend), den is the denominator (divisor), therefore, FPS=Num/Den. For example: for FPS=25, Num=25, Den=1, for FPS=12.5, Num=25, Den=2. in addition, it is a must to ensure that the greatest common divisor of the num, den should be 1.

What is the difference or connection between FPS Encoder and FPS Sensor:

Sensor FPS, for system input Frame rate, is achieved through the sensor configuration parameters of VTS. Generally, we need to reduce the sensor's Frame rate in night vision, in order to obtain enough exposure in case of low gain.

Encoder (H264) FPS is the output of H264 video stream Frame rate. By reducing the Encoder FPS, we can effectively reduce the bit rate.

Encoder FPS is achieved by losing Frame, so encoder FPS < = sensor FPS, it is worthy to note that, when changing the sensor FPS, encoder FPS will be automatically changed, change encoder FPS, sensor FPS will not be automatically changed.

Modification of the Encoder's frame can also achieve two encoders of different frame.


Q-2003: How to modify the default Frame rate Sensor

A: open ISP data flow operations are as follows:

IMP_ISP_Open();
IMP_ISP_AddSensor();
IMP_ISP_EnableSensor();
IMP_ISP_EnableTuning();
/**
 *If you want to change the original ISP output Frame rate, then please call IMP_ISP_Tuning_SetSensorFPS ();
 * if you do not change the original ISP output Frame rate, then do not this function.
 */
FrameSourceInit()
IMP_FrameSource_CreateChn()
IMP_FrameSource_EnableChn()

Q-2004: T10, how to process the three way H264 coding?

A: There are two ways to do so:


Q-2005: T10 second stream, how to procee D1's resolution?

A: T10 ISP second stream's maximum output is:640x480, If D1 resolution encoding is needed, then set the Encoder Channel's resolution to D1. If the Encoder and the previous level of Group resolution are not consistent, then use the Scale.


Q-3001: audio parameters setup

A: mainly includes the following points: