not able to create the .sim file | developer.brewmp.com not able to create the .sim file | developer.brewmp.com

Developer

not able to create the .sim file

Forums:

hi all,

i am trying to make an app , that will send sms.

here is the code
::::::::::::::::::

void send_sms(cApp * pMe)
{
SMSMsgOpt sms_opt[8];
int ret_val = 0;

Free_Sms(pMe);
sms_Init(pMe);

sms_opt[0].nId = MSGOPT_END;
sms_opt[0].pVal = NULL;

sms_opt[1].nId = MSGOPT_COPYOPTS;
sms_opt[1].pVal = (void *)TRUE;

sms_opt[2].nId = MSGOPT_TO_DEVICE_SZ;
sms_opt[2].pVal =(void*)"9320019998";

sms_opt[3].nId = MSGOPT_PRIORITY;
sms_opt[3].pVal =(void*)AEESMS_PRIORITY_NORMAL;

sms_opt[4].nId = MSGOPT_FROM_DEVICE_SZ;
sms_opt[4].pVal = (void*)"9967619998";

sms_opt[5].nId = MSGOPT_PAYLOAD_SZ;
sms_opt[5].pVal = (void*)"Hellow world";

sms_opt[6].nId=MSGOPT_MOSMS_ENCODING;
sms_opt[6].pVal=(void*)AEESMS_ENC_ASCII;

sms_opt[7].nId=MSGOPT_PAYLOAD_ENCODING;
sms_opt[7].pVal=(void*)AEE_ENC_ISOLATIN1;

ret_val = ISMSMSG_AddOpt(pMe->sms.pISmsMsg,sms_opt);
CALLBACK_Init(&pMe->sms.sms_callback,(PFNSMSSTATUS)sms_status,pMe);

ISMS_SendMsg(pMe->sms.pISms,pMe->sms.pISmsMsg,&pMe->sms.sms_callback,&pMe->sms.sms_result);
DBGPRINTF("sendsms ret_val= %d ",pMe->sms.sms_result);

}

////call back function
void sms_status(cApp * pMe)
{
uint32 error_code = EFAILED,error_type = 0;

error_code = AEESMS_GETERROR(pMe->sms.sms_result);
error_type = AEESMS_GETERRORTYPE(pMe->sms.sms_result);

DBGPRINTF("ercde =%d , ertype = %d",error_code,error_type);

}

////

i am getting following values , which shows success
error_code = 0
error_type = 0

//////in Brew_Emu.dat

SMSLogDirName="C:\SMSLogs\"

[SMS]
; 1 - UASMS
; 2 - WMS-CDMA
; 3 - WMS-GSM
SMSImplementation = 2 // i also tried with SMSImplementation = 1

but i am not getting the .sim file

please suggest me, if anything wrong i am doing.. any help is appreciated

::::::::::::::::::

if possible , please post working source code!!!!!!!!!!!!!!!!!

"

error_code = 0 error_type = 0 means your code is perfect. Problem is in your BREW_Emu.dat file.
Replace SMSLogDirName="C:\SMSLogs\" with SMSLogDirName=C:\SMSLogs\
No double quotes."

error_code = 0 error_type = 0 means your code is perfect. Problem is in your BREW_Emu.dat file.
Replace SMSLogDirName="C:\SMSLogs\" with SMSLogDirName=C:\SMSLogs\
No double quotes."

Shakthi wrote:error_code = 0 error_type = 0 means your code is perfect. Problem is in your BREW_Emu.dat file.
Replace SMSLogDirName="C:\SMSLogs\" with SMSLogDirName=C:\SMSLogs\
No double quotes.
thanks shakti , i tried your suggestion but failed. i also tried with c:\smslogs
I AM ALSO GETTING FOLLOWING LINE IN OUTPUT WINDOW
*sim_dssocket2.:1348 - DSIFace_SendEvent pif=6693736, event=QOS_UNAWARE_SYSTEM"

Shakthi wrote:error_code = 0 error_type = 0 means your code is perfect. Problem is in your BREW_Emu.dat file.
Replace SMSLogDirName="C:\SMSLogs\" with SMSLogDirName=C:\SMSLogs\
No double quotes.
thanks shakti , i tried your suggestion but failed. i also tried with c:\smslogs
I AM ALSO GETTING FOLLOWING LINE IN OUTPUT WINDOW
*sim_dssocket2.:1348 - DSIFace_SendEvent pif=6693736, event=QOS_UNAWARE_SYSTEM"

you have to include SMSLogDirName in the [General] section of BREW_Emu.dat as below. undo all other changes you made to BREW_Emu.dat.
[General]
Converted=1
Location=55,-10,1216,802
SMSLogDirName=C:\Program Files\BREW315\sdk\examples
also u may search your system for '*.sim' files. By default these files would get created under:-
C:\Documents and Settings\\Local Settings\Temp
refer: ISMSStorage simulation in BREW SDK 3.1.5 API ref.
thanks,
Shivendra

you have to include SMSLogDirName in the [General] section of BREW_Emu.dat as below. undo all other changes you made to BREW_Emu.dat.
[General]
Converted=1
Location=55,-10,1216,802
SMSLogDirName=C:\Program Files\BREW315\sdk\examples
also u may search your system for '*.sim' files. By default these files would get created under:-
C:\Documents and Settings\\Local Settings\Temp
refer: ISMSStorage simulation in BREW SDK 3.1.5 API ref.
thanks,
Shivendra

hi shivendra,
your suggestion worked!!!!!! greate!!!!!!!man
now i am able to get the sim file in temp directory
m also able to get the .sim file without any change
Thanks man

hi shivendra,
your suggestion worked!!!!!! greate!!!!!!!man
now i am able to get the sim file in temp directory
m also able to get the .sim file without any change
Thanks man

Hi guys,
Can any 1 say how to create .sms file using SMS Emulation option in Tools in simulator?
I want a .sms file. Actually i'm writing an app which retrieves native messages... So i need to create .sms file and try...
Thanks in advance.

Hi guys,
Can any 1 say how to create .sms file using SMS Emulation option in Tools in simulator?
I want a .sms file. Actually i'm writing an app which retrieves native messages... So i need to create .sms file and try...
Thanks in advance.

Not possible to save from simulator options.

Not possible to save from simulator options.