Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi All
How we can send one message to multiple numbers by using ISMS and ISMSStorage.

Generally we add the option for destination number like
sms_opt[1].nId = MSGOPT_TO_DEVICE_SZ;
sms_opt[1].pVal =(void*)"1234567890";

It is possible to set multiple destination number by using ISMS and ISMSMsg ?
If yes, How ?

you have to sent it in multiple gos (if u want to send to n nos, send it n times).
same behavior can be seen in native.
thanks.

you have to sent it in multiple gos (if u want to send to n nos, send it n times).
same behavior can be seen in native.
thanks.

Hi,
I am developing a application to send the sms to the GSM network using Brew Phones.
Can you tell me what are the option i have to take care.
I have set properly to number, from number, service center no. encoding, payload.
but it is still returning the error.
please tell me the option which i have to take care when sending sms on to the GSM network?
Thanks
Amit

Hi,
I am developing a application to send the sms to the GSM network using Brew Phones.
Can you tell me what are the option i have to take care.
I have set properly to number, from number, service center no. encoding, payload.
but it is still returning the error.
please tell me the option which i have to take care when sending sms on to the GSM network?
Thanks
Amit

Hi Amit ,
I am able to send sms through the following option setting, check the following code fragment, hope it will help you.
void smsapps_ConfigureSMS(smsapps* pMe){
TAPIStatus tp;
int nErr=0;
SMSMsgOpt sms_opt[8];
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*)"9718017242";
sms_opt[3].nId = MSGOPT_PRIORITY;
sms_opt[3].pVal =(void*)AEESMS_PRIORITY_NORMAL;
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;
ISMSMSG_AddOpt(pMe->pISMSMsg,sms_opt);
CALLBACK_Init(&pMe->sendCallBack,(PFNSMSSTATUS)SMSSendCB,pMe);
ISMS_SendMsg(pMe->pISMS,pMe->pISMSMsg,&pMe->sendCallBack,&pMe->dwResult);

Hi Amit ,
I am able to send sms through the following option setting, check the following code fragment, hope it will help you.
void smsapps_ConfigureSMS(smsapps* pMe){
TAPIStatus tp;
int nErr=0;
SMSMsgOpt sms_opt[8];
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*)"9718017242";
sms_opt[3].nId = MSGOPT_PRIORITY;
sms_opt[3].pVal =(void*)AEESMS_PRIORITY_NORMAL;
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;
ISMSMSG_AddOpt(pMe->pISMSMsg,sms_opt);
CALLBACK_Init(&pMe->sendCallBack,(PFNSMSSTATUS)SMSSendCB,pMe);
ISMS_SendMsg(pMe->pISMS,pMe->pISMSMsg,&pMe->sendCallBack,&pMe->dwResult);

Nothing special for GSM but you have to take care that the values specified (for example encoding) make sense for the GSM protocol.

Nothing special for GSM but you have to take care that the values specified (for example encoding) make sense for the GSM protocol.

Hi,
I have properly set the SMSC No. (Service Center no.).
It is returning 0x80 in error code.
The error code denotes it is a Low Layer Rejection.
Can you please share your thoughts on this one?
or Can you please share with me any sample code which is working on the GSM netowrk?
-Amit

Hi,
I have properly set the SMSC No. (Service Center no.).
It is returning 0x80 in error code.
The error code denotes it is a Low Layer Rejection.
Can you please share your thoughts on this one?
or Can you please share with me any sample code which is working on the GSM netowrk?
-Amit

Can you try sample code available on https://brewmobileplatform.qualcomm.com/devnet/index.jsp
Search for "Using SMS" and follow the link.

Can you try sample code available on https://brewmobileplatform.qualcomm.com/devnet/index.jsp
Search for "Using SMS" and follow the link.

Hi,
This sample application is wokring fine :)
Thanks a lot for your help.
Still i have queires.....;)
In the test application i am not able to find MSGOPT_SC_ADDRESS_SZ.
So does it mean for sending SMS on GSM network it is not needed?
Thanks
Amit

Hi,
This sample application is wokring fine :)
Thanks a lot for your help.
Still i have queires.....;)
In the test application i am not able to find MSGOPT_SC_ADDRESS_SZ.
So does it mean for sending SMS on GSM network it is not needed?
Thanks
Amit

Hi,
I have one more query.
I have seen that in the msg option it has used MSGOPT_TO_NUMBER_PLAN.
and if i remove this option it doesn't work.
can u please share your thoughts on this one also?
Thanks
-Amit

Hi,
I have one more query.
I have seen that in the msg option it has used MSGOPT_TO_NUMBER_PLAN.
and if i remove this option it doesn't work.
can u please share your thoughts on this one also?
Thanks
-Amit

Hi,
i have one more query.
Suppose i have created a packet(TPDU).
And want to send with out setting any other ISMSMsg option.
Can you help me on this one?
-Amit

Hi,
i have one more query.
Suppose i have created a packet(TPDU).
And want to send with out setting any other ISMSMsg option.
Can you help me on this one?
-Amit

1. MSGOPT_SC_ADDRESS_SZ is for GSM. If it is not specified, BREW will try to read the SC address from CFGI_SMS_GW_SCADDRESS (this can be configured by OEMs if desired). And if that is not configured, wms will try to fill in the SC address from templates from either SIM or NV in that order. The SC address should be in at least one of these places for the message to be sent successfully.
2. If MSGOPT_TO_NUMBER_PLAN is not specified, BREW will fill in the number plan as “Unknown”. This works on some networks but we have noticed that for Airtel and some other GSM networks, it is a mandatory parm, ie. “Unknown” is not acceptable. So it is better to add it.

1. MSGOPT_SC_ADDRESS_SZ is for GSM. If it is not specified, BREW will try to read the SC address from CFGI_SMS_GW_SCADDRESS (this can be configured by OEMs if desired). And if that is not configured, wms will try to fill in the SC address from templates from either SIM or NV in that order. The SC address should be in at least one of these places for the message to be sent successfully.
2. If MSGOPT_TO_NUMBER_PLAN is not specified, BREW will fill in the number plan as “Unknown”. This works on some networks but we have noticed that for Airtel and some other GSM networks, it is a mandatory parm, ie. “Unknown” is not acceptable. So it is better to add it.

Hi,
Thanks, for your information.
Yes, I was using the Airtel GSM network.
I am facing one more issue related to network connection.
I am using INetmgr, IWeb and ISocket for client-server communication.
For using this i need to initialize the network first by browsing any url like goolge.com form native browser. after these Iweb or ISocket get able to make a connection else they give connection error.
As i have read in the APIs referneces using Isocket or IWeb first its automaticaly initialize the network. But in my case it is not initializing the network.
Again i am using Airtel GSM network.
Can you please share your though on this one.
Many Thanks
-Amit

Hi,
Thanks, for your information.
Yes, I was using the Airtel GSM network.
I am facing one more issue related to network connection.
I am using INetmgr, IWeb and ISocket for client-server communication.
For using this i need to initialize the network first by browsing any url like goolge.com form native browser. after these Iweb or ISocket get able to make a connection else they give connection error.
As i have read in the APIs referneces using Isocket or IWeb first its automaticaly initialize the network. But in my case it is not initializing the network.
Again i am using Airtel GSM network.
Can you please share your though on this one.
Many Thanks
-Amit

I think you need to explicitly start the n/w using INETWORK_Start().
Refer UMTS doc..may be useful
https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/knowledgebas...

I think you need to explicitly start the n/w using INETWORK_Start().
Refer UMTS doc..may be useful
https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/knowledgebas...

Thanks Atul for this valuable information.

Thanks Atul for this valuable information.

Hi Atul,
Thanks for your information.
I have tried with the INETWORK_Start();
But it is returing AEE_NET_WOULDBLOCK.
after this i have set callback in the INetwork_AddRetryCB().
In the callback it again return AEE_NET_WOULDBLOCK.
andafter 2-3 attempts it returns AEE_NET_ENETNONET.
Can you please share your thoughts on this one?
and i have also asked one more question that if i have created a ready SMS TPDU.
And want to send it to using ISMS . Is there any option in ISMS or ISMSMsg by which we can send SMS TPDU directly.
Thanks
-Amit

Hi Atul,
Thanks for your information.
I have tried with the INETWORK_Start();
But it is returing AEE_NET_WOULDBLOCK.
after this i have set callback in the INetwork_AddRetryCB().
In the callback it again return AEE_NET_WOULDBLOCK.
andafter 2-3 attempts it returns AEE_NET_ENETNONET.
Can you please share your thoughts on this one?
and i have also asked one more question that if i have created a ready SMS TPDU.
And want to send it to using ISMS . Is there any option in ISMS or ISMSMsg by which we can send SMS TPDU directly.
Thanks
-Amit

Hi Atul,
The network is working after using
WEBOPT_NETWORK
AEE_NETWORK_*
which is suggested by the URL which you have given.
Thanks for your support.
Can you please give answer of SMS TPDU issue.
Thanks
-Amit

Hi Atul,
The network is working after using
WEBOPT_NETWORK
AEE_NETWORK_*
which is suggested by the URL which you have given.
Thanks for your support.
Can you please give answer of SMS TPDU issue.
Thanks
-Amit

Hi Atul,
For HTTP the network is working after using
WEBOPT_NETWORK
AEE_NETWORK_* with using proper PDP count.
But when i am setting the same PDP count for INETMGR_SetDefault() or INETMGR_SetOpt() It is not initializing the network for socket?
Can you give some suggestion on this one?
-Amit

Hi Atul,
For HTTP the network is working after using
WEBOPT_NETWORK
AEE_NETWORK_* with using proper PDP count.
But when i am setting the same PDP count for INETMGR_SetDefault() or INETMGR_SetOpt() It is not initializing the network for socket?
Can you give some suggestion on this one?
-Amit

Are you using INETMGR_SelectNetwork to select the n/w?
Regarding SMS TPDU: No, You cannot send SMS TPDU; You can only receive a TPDU. Support for sending TPDU is planned for future release of Brew MP.

Are you using INETMGR_SelectNetwork to select the n/w?
Regarding SMS TPDU: No, You cannot send SMS TPDU; You can only receive a TPDU. Support for sending TPDU is planned for future release of Brew MP.

HI Atul,
Yes, i am using INETMGR_SelectNetwork.
Thanks
Amit

HI Atul,
Yes, i am using INETMGR_SelectNetwork.
Thanks
Amit