GPRS Class Library
Reference Manual
Bar Code Handy Terminal
BHT-700-WM
Page 1: ...GPRS Class Library Reference Manual Bar Code Handy Terminal BHT 700 WM...
Page 2: ...tion may be reproduced in any form or by any means without permission in writing from the publisher Specifications are subject to change without prior notice All products and company names mentioned i...
Page 3: ...1 0 March 2009 First Release 2 0 July 2009 Added Operating Precautions Modified following parameters of functions GetSIMPINPUKCounter SetNecessarySIMPIN SetRadioBand GetOperatorInfo SendSMS 3 0 Septem...
Page 4: ...ls for further information BHT 700 WM Class Library Reference Manual Contacts Please forward any opinions or questions that you may have regarding this manual to the address below or contact us by tel...
Page 5: ...Contents 1 Programing 1 2 GPRS class 2 3 SMS information structure 31 4 Operator list structure 35 5 Operator structure 36 6 Time structure 37 7 error code 38 ii...
Page 6: ...use OpenCom method Step4 Check the authentication status of SIM PIN authentication use GetSIMPINStatus method Step5 Input PIN code If PIN code is necessary at 4 use SetSIMPIN method Step6 Set a radio...
Page 7: ...istration SetRadioBand Select radio frequency band GetSignalStrength Get the RSSI GetModuleVersion Get the firmware version of module GetAllOperatorCnt Acquire the number of total operator GetAllOpera...
Page 8: ...rn the power of GPRS module on Syntax VB Public Shared Function PowerOn As UInt32 C public static UInt32 PowerOn Return value error code 0 Normal end Other than 0 Abnormal end For more detail refer to...
Page 9: ...n the power of GPRS module off Syntax VB Public Shared Function PowerOff As UInt32 C public static UInt32 PowerOff Return value error code 0 Normal end Other than 0 Abnormal end For more detail refer...
Page 10: ...the COM port for GPRS function Syntax VB Public Shared Function OpenCom As UInt32 C public static UInt32 OpenCom Return value error code 0 Normal end Other than 0 Abnormal end For more detail refer t...
Page 11: ...Close the COM port of GPRS Syntax VB Public Shared Function CloseCom As UInt32 C public static UInt32 CloseCom Return value error code 0 Normal end Other than 0 Abnormal end For more detail refer to 7...
Page 12: ...red Function GetSimPINStatus _ ByRef status As EN_SIMSTATUS As UInt32 C public static UInt32 GetSimPINStatus out EN_SIMSTATUS staus Parameters status out Authentication state Return value error code 0...
Page 13: ...UInt32 _ ByRef PUKCount As UInt32 As UInt32 C public static UInt32 GetSIMPINPUKCounter out UInt32 PINCount out UInt32 PUKCount Parameters PINCount out available attempts number for entering the PIN co...
Page 14: ...ration Syntax VB Public Shared Function SetSIMPIN ByVal PIN As String As UInt32 C public static UInt32 SetSIMPIN string PIN Parameters PIN in SIM PIN Return value error code 0 Normal end Other than 0...
Page 15: ...IN As String ByVal newPIN As String As UInt32 C public static UInt32 ChangeSIMPIN string PIN string newPIN Parameters PIN in old PIN newPIN in new PIN Settable value string which length is from 4 digi...
Page 16: ...cessarySIMPIN _ ByVal req As Boolean ByVal PIN As String As UInt32 C public static UInt32 SetNecessarySIMPIN bool req string PIN Parameters req in PIN is necessary true or unncessary false PIN in SIM...
Page 17: ...on Syntax VB Public Shared Function SetSIMPUK _ ByVal puk As String ByVal pin As String As UInt32 C public static UInt32 SetSIMPUK string puk string pin Parameters puk in PUK code pin in new SIM PIN c...
Page 18: ...nd selection The selectable band is as following table enableBand in permitted band selection The selectable band is as following table band specification GSM900 GSM900MHz GSM1800 GSM1800MHz GSM900 GS...
Page 19: ...2 C public static UInt32 GetSignalStrength out UInt32 RSSI out UInt32 BER Parameters RSSI out signal strength rssi specification 0 113 dBm or less 1 111 dBm 2 30 109 53 dBm 31 51 dBm or greater 99 Not...
Page 20: ...ion GetModuleVersion _ ByVal version As System Text StringBuilder As UInt32 C public static UInt32 GetModuleVersion System Text StringBuilder version Parameters version out F W version Return value er...
Page 21: ...ared Function GetAllOperatorCnt _ ByRef opeCount As UInt32 As UInt32 C public static UInt32 GetAllOperatorCnt out UInt32 opeCount Parameters opeCount out the number of operator Return value error code...
Page 22: ...OperatorInfo opeInfo Parameters opeInfo out array storing operator information refer to 5 Operator structure Return value error code 0 Normal end Other than 0 Abnormal end For more detail refer to 7...
Page 23: ...Shared Function GetOperatorListCnt _ ByRef listCnt As UInt32 As UInt32 C public static UInt32 GetOperatorListCnt out UInt32 listCnt Parameters listCnt out the number of operator Return value error cod...
Page 24: ...torListInfo opeInfo Parameters opeInfo out array storing operator information refer to 4 Operator list structure Return value error code 0 Normal end Other than 0 Abnormal end For more detail refer to...
Page 25: ...OperatorInfo _ ByVal opeInfo As System Text StringBuilder As UInt32 C public static UInt32 GetOperatorInfo System Text StringBuilder opeInfo Parameters opeInfo out operator name Return value error cod...
Page 26: ...nction SetSMSStorageDest _ ByVal store As EN_STORAGESMS As UInt32 C public static UInt32 SetSMSStorageDest EN_STORAGESMS store Parameters store in destination Settable value One of EN_STORAGESMS membe...
Page 27: ...index As UInt32 As UInt32 C public static UInt32 DeleteSMS EN_STORAGESMS storeDelSMS UInt32 index Parameters storeDelSMS in storage area storing delting SMS Settable value one of EN_STORAGESMS member...
Page 28: ...As UInt32 C public static UInt32 ReadSMS EN_STORAGESMS SMSDest UInt32 index out SMSInfo info Parameters SMSDest in destination storing short message settable value one of EN_STORAGESMS member index i...
Page 29: ...ByRef msgRef As UInt32 As UInt32 C public static UInt32 SendSMS string SMSDest string SMSText out UInt32 msgRef Parameters SMSDest in destination of short message SMSText in contents of short message...
Page 30: ...static UInt32 WriteSMSToMem EN_STORAGESMS SMSDestStorage string SMSDestAddr string SMSText out UInt32 index Parameters SMSDestStorage in destination storing short message settable value one of EN_STO...
Page 31: ...msgRef As UInt32 As UInt32 C public static UInt32 SendSMSFromMem EN_STORAGESMS SMSSrcStorage UInt32 index out UInt32 msgRef Parameters SMSSrcStorage in source storage settable value one of EN_STORAGES...
Page 32: ...32 C public static UInt32 GetSMSListCnt out UInt32 inSIM out UInt32 totalInSMS out UInt32 inME out UInt32 totalInME Parameters inSIM out the number of SMS stored in SIM totalInSMS out the number of SM...
Page 33: ...VB Public Enum EN_SIMSTATUS C public enum EN_SIMSTATUS Members Member Name Description NEED Wait for SIM PIN enter READY PIN has already been entered LOCK PIN was disabled after three failed attempts...
Page 34: ...cifies the Radio band Syntax VB Public Enum EN_RADIOBAND C public enum EN_RADIOBAND Members Member Name Description GSM900 GSM 900 MHz GSM1800 GSM 1800 MHz GSM1900 GSM 1900 MHz GSM850 GSM 850 MHz Clas...
Page 35: ...EN_STORAGESMS Specify destination storing short message Syntax VB Public Enum EN_STORAGESMS C public enum EN_STORAGESMS Members Member Name Description SIM SIM card ME ME terminal Class DNWA BHT700CL...
Page 36: ...cture Fields Field Name Description Status Status of SMS DestAddr Destination address SMSData Contents of short message tm Times stamp of short message Enumeration Enumeration Name Description EN_STAT...
Page 37: ...32 Status Status of short message Syntax VB Public Status As EN_STATUS C public EN_STATUS Status DestAddr Destination address Syntax VB Public DestAddr As string C public string DestAddr...
Page 38: ...SData Contents of short message Syntax VB Public SMSData As String C public string SMSData tm Time Stamp of short message Syntax VB Public SCTimeStamp As tm C public tm SCTimeStamp Refer to 6 Time str...
Page 39: ...tus of short message Syntax VB Public Enum EN_STATUS C public enum EN_STATUS Members Member Name Description REC_UNREAD not read yet REC_READ already read STO_UNSENT not sent yet STO_SENT already sent...
Page 40: ...35 4 Operator list structure Fields Field Name Description OpeInfo operator information OpeInfo Operator information Syntax VB Public OpeInfo As OperatorInfo C public OperatorInfo OpeInfo...
Page 41: ...36 5 Operator structure Fields Field Name Description OperatorName Operator name OperatorName Operator name Syntax VB Public OperatorName As String C public string OperatorName...
Page 42: ...37 6 Time structure Fields Field Name Description tm_year Year tm_mon Month tm_mday Date tm_hour Hour tm_min Minute tm_sec second...
Page 43: ...38 7 error code Value Explanation 0 normal end 20000 COM port has not been opened 20001 Fail to open COM port 20003 Argument value is invalid 20005 Timeout error...
Page 44: ...39 BHT 700 WM GPRS Class Library Reference Manual Third Release September 2009 DENSO WAVE INCORPORATED Automatic Data Capture Division...