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.
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.
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/.
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);
A: If it's about the color, the possible causes are:
Sensor Data line alignment setting are wrong. You need to add parameters according to SCH design, such as insmod:
insmod sensor_jxh42.ko sensor_gpio_func=1,parameters value
The reason for the image to be partially green may be because: the bin file is not placed in the file system(/etc/sensor/xxx.bin), in this case, kernel will display the following message:ISP: open %s file for isp calibrate read failed or Sensor bin file and ISP driver don't match,it will display as follows:
####################################################################
#### The version of ov9750.bin doesn't match with driver! ####
#### The version of ov9750.bin is xxx, the driver is yyy ####
####################################################################
The image might be partially red if you don't add IR-Cut
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.
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()
A: There are two ways to do so:
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.
A: mainly includes the following points:
Interface IMP_AI_SetVol (int audioDevId, int aiChn, int aiVol) note: AiVol range is -30 ~ 120, each increase(value) of 1, increases the volume of 0.5dB. If the aiVol is 60, the software sets the volume of the critical point, at this point software does not affect the volume (increase or decrease), if aiVol < 60, each fell by 1 the Volume decreases by 0.5dB; if aiVol > 60, then each rise of 1, the volume increases by 0.5dB.
Interface IMPAISetGain (int audioDevId, int aiChn, int aiGain) and IMPAOSetGain (int audioDevId, int aoChn, int aoGain): Hardware gain interface, the gain settings of the interface will be different depending on the chip, please refer to the corresponding SDK header file.
Software sets up the volume interface and hardware sets up the gain interface should be coordinated with each other, otherwise it will cause damage or sound quality might be too low.
According to the sound of the noise suppression and automatic gain, The effect of high pass filtering is only effective when the echo cancellation function is not turned on, otherwise it will not be functional.
Please ensure that the audio data into SDK is an integer multiple of the 10ms audio data (EXP:8K sampling rate, so input data: 8000 x 2 / 100 = 160byte = integer).