기본적으로 N56V 에는 등신같은 Windows 8 이 설치되어있다.
물건을 사자마자 SSD 도 장착했고 Windows 7 을 설치하려 했더니 Starting Windows 라고 나오더니 뻣어버린다.
Bios setup에서 CSM 을 Enable 시키고 pxe 뭐시기도 Enable 시키고 설치하면 설치가 된다.
끝~
Wednesday, May 15, 2013
Tuesday, May 7, 2013
dialogic api 로 녹음중 통화 끊김 감지. dialogic api detect disconnected using dual tone
dialogic global call api를 이용한 녹음.
녹음 중 전화를 끊어버린 상황을 감지하는 소스플그램임.
This source program presents how to detect disonnected while recording.
dual tone (480, 30, 620, 40) is korean standard. find your self what tone using in your country.
//CH_DEV는 LINE 번호임. 1채널인경우 1임.
#define CH_DEV 1
CString CDialogicLib::Record(CString savefilename, int timeout_sec )
{
CString result="";
DV_TPT tpt[10]; /* termination parameter table */
DX_XPB xpb;
xpb.nSamplesPerSec = DRT_11KHZ;
xpb.wFileFormat = FILE_FORMAT_WAVE;
xpb.wDataFormat = DATA_FORMAT_ALAW;
xpb.wBitsPerSample = 8;
#define TID_1 101
dx_clrtpt(tpt,4);
tpt[0].tp_type = IO_CONT;
tpt[0].tp_termno = DX_MAXDTMF;
tpt[0].tp_length = 1;
tpt[0].tp_flags = TF_MAXDTMF;
// Terminate on Loop Current Drop (call disconnect)
tpt[1].tp_type = IO_CONT;
tpt[1].tp_termno = DX_LCOFF;
tpt[1].tp_length = 1; // I have also tried 3
tpt[1].tp_flags = TF_LCOFF;
tpt[2].tp_type = IO_CONT;
tpt[2].tp_termno = DX_MAXTIME; /* Function Time */
tpt[2].tp_length = (timeout_sec * 10); /* 10 seconds (100 msec resolution timer) */
tpt[2].tp_flags = TF_MAXTIME; /* Edge-triggered */
tpt[3].tp_type = IO_EOT;
tpt[3].tp_termno = DX_TONE;
tpt[3].tp_length = TID_1;
tpt[3].tp_flags = TF_TONE;
tpt[3].tp_data = DX_TONEON;
dx_deltones(CH_DEV);
dx_blddt(TID_1, 480, 30, 620, 40,TN_LEADING );
dx_addtone(CH_DEV,NULL,0);
dx_enbtone( CH_DEV, TID_1, DM_TONEON | DM_TONEOFF );
dx_clrdigbuf(CH_DEV);
dx_setevtmsk(CH_DEV, GCEV_DISCONNECTED);
/* Start 11KHz A-law recording */
if (dx_recwav(CH_DEV, savefilename, tpt, &xpb,PM_TONE|EV_SYNC) == -1)
{
return "ERROR";
}
else
{
dx_clrdigbuf(CH_DEV);
switch(ATDX_TERMMSK(CH_DEV))
{
case TM_MAXDTMF:
return "SUCCESS";
case TM_LCOFF :
result = "LCOFF";
break;
case TM_TONE:
result ="TONE";
break;
case TM_MAXTIME:
result = "MAXTIME";
break;
}
return "UNKNOWN";
}
}
Thursday, May 2, 2013
dx_gtcallid 가 전화번호를 못알아내는 경우. (dx_gtcallid not working)
Ring 이 3번 정도 울린 후에 dx_gtcallid 를 호출하면 상대방의 전화번호를 알 수 있다.
Call dx_gtcallid after ring more then 3 times.
example)
if (dx_wtring(CH_DEV, 3, DX_OFFHOOK, 10000) != -1)
{
dx_gtcallid( ..... );
return true;
}
else
return false; //timeout
Tuesday, April 23, 2013
V-Ray for Sketchup 에서 displacement 가 안될때 ( v-ray for sketchup displacement not working )
해결1. Displacement 는 물체가 Group이 되어있어야 된다.
solution 1. convert to group for object, try render.
해결1. 1번 후에도 마찬가지라면 Surface 를 Reverse 시켜보자.
solution 2. after solution 1, In sketchup. Reverse surface and try again.
그래도 안된다면 Sketchup 의 번전을 살펴보자. 8.0.3117 버전에는 displacement mapping 이 안되는 버그가 있는듯하다.
Check your sketchup version. If you have 8.0.3117 then uninstall fucking that version. and install 8.0.4811 version or higher.
Monday, March 18, 2013
Friday, March 15, 2013
COG-C144MVGI-08's LCD Controller S6B3306 datasheet
COG-C144MVGI-08's LCD Controller S6B3306 datasheet
click bellow link for download.
Good luck electronic guys!.
https://drive.google.com/file/d/1AClOnNoDKKZzJaRbcxFQfkYtMWj--m-6/view?ths=true
click bellow link for download.
Good luck electronic guys!.
https://drive.google.com/file/d/1AClOnNoDKKZzJaRbcxFQfkYtMWj--m-6/view?ths=true
Monday, February 25, 2013
STM32F103에서 PB3를 GPIO로 사용
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd (RCC_APB2Periph_GPIOB | RCC_APB2Periph_AFIO, ENABLE);
// Remap 기능을 사용하기 위해서는 RCC_APB3Periph_AFIO를 Enable시켜야 한다.
GPIO_PinRemapConfig (GPIO_Remap_SWJ_JTAGDisable, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3
GPIO_InitStructure.GPIO_Speed = 알아서;
GPIO_InitStructure.GPIO_Mode = 알아서;
GPIO_Init (GPIOB, & GPIO_InitStructure);
만약 Jtag 관련 GPIO를 설정 한 후 JTAG 이나 SWD 기능이 동작하지 않게 되어 프로그램을 주입할 수가 없게되면
CPU의 리셋 스위치를 연타해가며 주입해보면 들어가짐.
If you cannot download a program to STM32F103 CPU cause wrong Port B setting (all jtag disabled ), try press reset button of target board many times very fast while download.
RCC_APB2PeriphClockCmd (RCC_APB2Periph_GPIOB | RCC_APB2Periph_AFIO, ENABLE);
// Remap 기능을 사용하기 위해서는 RCC_APB3Periph_AFIO를 Enable시켜야 한다.
GPIO_PinRemapConfig (GPIO_Remap_SWJ_JTAGDisable, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3
GPIO_InitStructure.GPIO_Speed = 알아서;
GPIO_InitStructure.GPIO_Mode = 알아서;
GPIO_Init (GPIOB, & GPIO_InitStructure);
만약 Jtag 관련 GPIO를 설정 한 후 JTAG 이나 SWD 기능이 동작하지 않게 되어 프로그램을 주입할 수가 없게되면
CPU의 리셋 스위치를 연타해가며 주입해보면 들어가짐.
If you cannot download a program to STM32F103 CPU cause wrong Port B setting (all jtag disabled ), try press reset button of target board many times very fast while download.
Subscribe to:
Posts (Atom)
