Home

User Manual

image

Contents

1. 6 3 3 LCD_BackLight_Off Description Turn off the LCD backlight Syntax void LCD_BackLight_Off void Parameter None Return None 73 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 4 LCD ShowText Description Display one character on the LCD panel and the cursor will right shifted by one character position automatically Syntax void LCD ShowText uchar Text Parameter Text Display character Return None 74 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 5 LCD_DisplayNumber Description After calling either the LCD_SetNumber or LCD ClrNumber it is necessary to call LCD DisplayNumber to display number on the the LCD panel Syntax void LCD DisplayNumber void Parameter None Return None 75 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 6 LCD_SetNumber Description Display one number on the specified position Syntax void LCD_SetNumber int Line int Offset int Number Parameter Line One of two line numbers 1 to 2 Offset Cursor position 1 to 5 Number Display number Return None Example LCD_SetNumber 1 1 0 LCD_SetNumber 1 2 1 LCD_DisplayNumber 76 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 7 LCD CirNumber Description Clear the displayed number by one character position Syntax void LCD ClrNumber int Line int Offset Param
2. Description Read all DI values of the G 4500 Syntax int X30510 Read All Dl void Parameter None Return 0x00 0x07 Example When DIO Ground DI1 Open DI2 Open value X30510 Read All DI value 0x6 43 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 7 X30510 Read One DI Description Read the value from the assign DI channel Syntax int X30510 Read One Dl int iChannel Parameter iChannel 0 2 gt chO ch2 Return Return 1 gt open Logic high level 3 5V 30V Return 0 gt close to GND Logic low level OV 1V 44 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 8 X30510 Write All DO Description Write to all DO values of the G 4500 series Syntax void X30510 Write All DO int iOutValue Parameter iOutValue 0x0 0x7 Return None Example X30510 Write All DO 6 After function execute DOO OFF DO1 ON DO2 ON 45 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 9 X30510 Write One DO Description Write the specific value to the assign DO channel Syntax void X30510 Write One DO int iChannel int iStatus Parameter iChannel 0 2 gt chO ch2 iStatus 1 gt Status is ON iStatus 0 gt Status is OFF Return None 46 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 10 X30510 Read All DO Description Read all DO values of the
3. Initialize the library LCD_BackLight_On Turn on the LCD backlight LCD_BackLight_Off Turn off the LCD backlight LCD ShowText Display one character on the LCD panel LCD DisplayNumber Display number on the the LCD panel LCD SetNumber Display one number on the specified position LCD ClrNumber Clear the displayed number by one character position LCD CirScrn Clear the LCD panel LCD StandByMode Enter the stand by mode LCD NormalMode Restore the LCD to normal mode LCD GotoPosition Move the cursor to the specified position LCD CursorDisplay Set the Cursor display status LCD LineReverse Select one of four line and reverse the display LCD LineRestore Select one of four line and restore the display LCD GetLibDate Gets the create date of funciton library LCD GetLibVersion Gets the version number of function library 70 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 1 LCD_Init Description Initialize parameters about LCD functions in the library Syntax void LCD Init void Parameter None Return None 71 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 2 LCD_BackLight_On Description Turn on the LCD backlight Syntax void LCD_BackLight_On void Parameter None Return None 72 Publication August 2013 Ver 1 15 G 4500 Series User Manual
4. bits to float 37 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 1 X3051O Init Description Initial X30510 Syntax int X30510 Init void Parameter None Return Return value 0 gt SUCCESS lt gt 0 gt error 38 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 2 X30510 GetLibVersion Description Get X30510 Lib Version Syntax unsigned X305lO GetLibVersion void Parameter None Return Version Number 39 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 3 X30510 Read AD CalibrationGain Description Read the A D Calibration Gain Syntax float X30510 Read AD CalibrationGain void Parameter None Return Calibration Gain of the AD channels 40 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 4 X30510 Read AD CalibrationOffset Description Read the A D Calibration Offset Syntax float X305I0_Read_AD_CalibrationOffset void Parameter None Return Calibration Offset of the AD channels 41 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 5 X30510 Analogin Description Read the value from the assign Al channel Syntax float X30510 Analogln int iChannel Parameter iChannel 0 7 gt chO ch7 Return 0 0mA gt 20 0mA 42 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 6 X305I0_Read_All DI
5. 1 15 G 4500 Series User Manual 6 1 4 X30510 Read AD CalibrationOffset 41 6 1 5 XIOSIO ANaIOGIN eins oiii ee 42 6 1 6 X30510 Read All DL 43 6 1 7 X30510 Read One DI mmm 44 6 1 8 X30510 Write All DO eaten 45 6 1 9 X30510 Write One DO 46 6 1 10 X30510 Read All DO 47 6 1 11 X30510 Read One DO 1 1 ee 48 6 1 12 X30510 Analogln SetChannel 49 6 1 13 X3051O Analogln Hex sse 50 6 1 14 X305I0_Analogin_HexToFloat 51 6 2 MMC SD Library Function Definition and Description 52 5 2 1 PC ES Ini soe a QU e nr 53 6 2 2 PC Open kenne 54 62 3 PC Redd SI SR ne RS aa ia kota in 56 624 PC Writ sedeo es ett na kas end kodak na ie 57 02 5 BC GIO SC ee 58 62 8 Get EI NO eoe de iioi toe esiti eher 59 6 2 7 PC SEK pe 60 628 PC MIDI se u un aaa m Rs late Ora ras 61 620PCG RM DI ss 62 6 210 PC delle ridare lia 63 6 2 11 PCE MV naeh ea 64 6212 PG ISDIE as ae 65 0213 PO Pwd lalla 66 6 2 14 PC Get Attributes 67 6 2 15 PC Set Attributes eese 69 6 3 LCD Library Function Definition and Description 70 GS AN ECD IHIE soos oe bote WA o 71 6 3 2 LCD BackLight ON ii iori se Se be Men 72 6 3 3 LCD BackLight
6. battery backup data valid up to 10 years EEPROM 16 KB retention gt 40 years 1 000 000 erase write cycles COM ports COM1 5 wire RS 232 COM2 RS 485 COM3 3 wire RS 232 Ethernet 10 100 Base TX Ethernet controller Frequency Band Quad band 850 900 1800 1900 MHz GPRS connectivity GPRS class 10 8 GPRS station class B SMS MT MO CB Text and PDU mode Support Channels 32 Tracking up to 159 dBm with external LNA Sensitivity Cold start up to 146 dBm with external LNA Hot start Open Sky 2 s typical Acquisition Time Cold start Open Sky 36 s typical Protocol Support NMEA 0183 version 3 01 Effective 80 61 mm x 14 37 80 61 mm x 14 37 mm display area mm W x H W x H General Module 93 mm x 70 mm x 93 mm x 70 mm x 1 6 Dimension 1 6 mm Wx Hx T mm WxHxT Expected life is more than 100 000 Life Time than 100 000 hours hours under Expected life is more n under normal operation normal operation 16 Publication August 2013 Ver 1 15 G 4500 Series User Manual Output Channel 3 Output Type Open Collector Sink NPN Load Voltage 30 VDC max Load Current 100 mA max Isolated Voltage Non isolated Input Channel 3 Input Type Source Dry Type Common Ground Off Voltage Level 1 V max On Voltage Level 3 5 30 V Isolated Voltage Non isolated Input Channel 8 Resolution 12 bit Input Range Type 0 20 mA Sample Rate 1 KHz max Read one channel Accuracy 2 LS
7. off 1 Display on 0 Display off Blink Character blink on off 1 Display on 0 Display off e Return None 82 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 13 LCD_LineReverse Description Select one of four line and reverse the display Syntax void LCD_LineReverse int Line Parameter Line One of four line numbers 0 to 4 Return None 83 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 14 LCD_LineRestore Description Select one of four line and restore the display Syntax void LCD_LineRestore int Line Parameter Line One of four line numbers 0 to 4 Return None 84 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 15 LCD_GetLibDate Description Gets the create date of funciton library Syntax void LCD_GetLibDate unsigned char LibDate Parameter LibDate Gets the create date of funciton library Return None 85 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 16 LCD GetLibVersion Description Get the version number of function library Syntax unsigned LCD GetLibVersion void Parameter None Return Return the current version number 86 Publication August 2013 Ver 1 15 G 4500 Series User Manual Chapter 7 Program Download Procedure Here it is considered that how to build an execution file and how to run this program on the G 4500 ser
8. test1 txt amp attribs if attribs amp ARDONLY Print File is ARDONLY if attribs amp AHIDDEN Print File is AHIDDEN if attribs amp ASYSTEM Print File is ASYSTEM if attribs amp AVOLUME Print File is AVOLUME 67 Publication August 2013 Ver 1 15 G 4500 Series User Manual if attribs amp ADIRENT Print File is ADIRENT if attribs amp ARCHIVE Print File is ARCHIVE if attribs amp ANORMAL Print File is ANORMAL 68 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 15 PC_Set_Attributes e Description Set File Attributes Given a file or directory name set the directory entry attributes associated with the entry One or more of the following values may be or ed together BIT Nemonic 0 ARDONLY 1 AHIDDEN 2 ASYSTEM 5 ARCHIVE e Syntax BOOLEAN pc set attributes char path byte attributes Parameter Path The file path in MMC SD card attributes Set the directory entry attributes e Return Returns TRUE if successful otherwise FALSE and get_errno will return one of these values PENOENT Couldn t find the entry PENOSPC Write failed Example byte attribute char fname test1 test1 txt attribute ARDONLY AHIDDEN pc_set_attributes fname attribute 69 Publication August 2013 Ver 1 15 G 4500 Series User Manual Function definition 6 3 LCD Library Function Definition and Description Description LCD_Init
9. 0 2222222222 22200000 oooooooooQ l LED Indicators LED Indicators 10 100M Ethernet Ethernet Link Act CN2 Pin Assignment EINEN EINEN ao ena font fon CN1 Pin Assignment Pend EXO ens 001 Digital Output fnr ooo esr eroe for COM1 RS 232 Pins o COM2 RS 485 Power Input Power Input 10 Voc 30 Voc 10 Voc 30 Voc na we 22200202902 oooooooooQ 27 Publication August 2013 Ver 1 15 G 4500 Series User Manual 4 2 Hardward Dimensions eo G 4500 SIM300 Series MAIA epis 145013 MAIA 10044 e a w pum MAIA 6 ww HUN MAIA epis yon mala doy M E E mol Wonog 28 Publication August 2013 Ver 1 15 G 4500 Series User Manual G 4500 SIM340 Series MAIA SPIS 1451 MAIA 10044 MAIA ww JUN MOIA SPIS 497 mala dop N MU ST malA wonog 29 Publication August 2013 Ver 1 15 G 4500 Series User Manual e GD 4500 Series MAIA epis 14013 MAIA 1 MAIA 9pIS yan ww un MAIA 8 main dop MAIA WONog 30 Publication August 2013 Ver 1 15 G 4500 Series User Manual 4 3 Operation Mode Switch EES A RUN Lock INIT Operation Mode Switch OS can execute autoexec bat RUN Flash can be read wirte OS can ex
10. 00 000 hours Life Time 100 000 hours under normal under normal operation 13 Publication August 2013 Ver 1 15 G 4500 Series User Manual operation Output Channel 3 Output Type Open Collector Sink NPN Load Voltage 30 VDC max Load Current 100 mA max Isolated Voltage Non isolated Input Channel 3 Input Type Source Dry Type Common Ground Off Voltage Level 1 V max On Voltage Level 3 5 30 V Isolated Voltage Non isolated Input Channel 8 Resolution 12 bit Input Range Type 0 20 mA Sample Rate 1 KHz max Read one channel Accuracy 2 LSB 0 01 mA Protection Power reverse polarity protection Frame Ground Protection ESD Surge EFT Hi Pot Power Requirement 15W Unregulated 10 VDC 30 VDC Power Consumption Idle 75 mA 24 VDC Data Link 150 400 mA peak 24 VDC System Red GPRS Yellow GPS Green Yes Casing Metal Dimensions 47 mm x 142 mm x 168 mm W x Lx H Installation DIN Rall and wall mount 14 Publication August 2013 Ver 1 15 G 4500 Series User Manual Operating Temperature 20 gt 70 C 15 55 C 20 70 C 15 55 C Storage Temperature 40 80 C 20 gt 70 C 40 80 C 20 70 C Humidity 5 90 RH non condensing 15 Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 2 3 GD 4500 SIM340 Specifications 80 MHz internal microprocessor SRAM Flash 512K 512K real time clock watchdog timer NVRAM 31 bytes
11. 1 15 G 4500 Series User Manual 6 2 7 PC Iseek e Description Move file pointer e Syntax long pc Iseek PCFD fd long offset int origin e Parameter fd file desc offset offset value origin PSEEK_SET offset from begining of file PSEEK_CUR offset from current file pointer PSEEK_END offset from end of file e Return If success Returns new offset value otherwise 1 If 1 is returned get_errno will return one of these values PEBADF Invalid file descriptor PEINVAL Seek to negative file pointer attempted 60 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 8 PC_MKDir Description Create a subdirectory Syntax BOOLEAN pc mkdir char name Parameter Name Name of directory to be created Return Returns TRUE if the subdirectory was created otherwise FALSE If FALSE is returned get errno will return one of these values PENOENT Directory not found PEEXIST File or directory already exists PENOSPC Write failed Example pc mkdir USRWLIB 61 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 9 PC_RMDir Description Delete the directory specified in path Fails if path is not a directory is read only or is not empty Syntax BOOLEAN pc_rmdir char name Parameter Name Name of directory to be deleted Return TRUE if the directory was successfully removed otherwise FALSE If FALSE is returned get_errno will retu
12. 2013 Ver 1 15 G 4500 Series User Manual gt Current Input Wire Connection 34 Publication August 2013 Ver 1 15 G 4500 Series User Manual 5 2 GPRS GSM Installation SIM Card Installation GPRS GSM Antenna Installation GSM antenna 35 Publication August 2013 Ver 1 15 G 4500 Series User Manual 5 3 GPS Installation GPS Antenna Installation GPS antenna 36 Publication August 2013 Ver 1 15 G 4500 Series User Manual Chapter 6 Function Introduction Function definition 6 1 IO Library Function Definition and Description Description X30510 Init Initial I O X305lO GetLibVersion Get X30510 LIB Version X305lO Read AD CalibrationGain Read AD Calibration Gain X30510 Read AD CalibrationOffset Read AD Calibration Offset X30510 Analogln Read value from assign Al channel X30510 Read All DI Read All DI X305lO Read One DI Read the value form assign DI channel X30510 Write All DO Write All DO X305lO Write One DO Write the value to the assign DO channel X30510 Read All DO Read All DO state X305lO Read One DO Read the DO state form the assign DO channel X30510 Analogln SetChannel Set the Al channel that users want to read X30510 Analogln Hex Read the value from the specific A D channel 12 bits X30510 Analogln HexToFloat Transfer the Al value from 12
13. 40 80 C 20 70 C Humidity 5 90 RH non condensing 21 Publication August 2013 Ver 1 15 G 4500 Series User Manual Chapter 3 Application architecture gt On motion type equipment application Motorcade management The police usage the equipment gt On stationary equipment application Remote POS Point Of Sale terminals Automatically trading machine Water quality monitor E GIS system 3 g GPS rese e mA A Application Server DIO RS 232 AI RS 485 PLC 2 G 4500 POS Data base Server 22 Publication August 2013 Ver 1 15 G 4500 Series User Manual 3 1 Car Monitor System CAR monitor system RO Internet AS Database CAR safe system Server 23 Publication August 2013 Ver 1 15 G 4500 Series User Manual 3 2 Remote Control Monitor System Internet Database Server 24 Publication August 2013 Ver 1 15 G 4500 Series User Manual 3 3 GIS system G 4500 Remote system Internet Ua DESS SN N Database QV Server G 4500 Remote system 25 Publication August 2013 Ver 1 15 G 4500 Series User Manual 3 4 Redundance Communication system Primary Ethernet Applicatio eu Server PLC b G 4500 NN p POS e GPRS Second 26 Publication August 2013 Ver 1 15 G 4500 Series User Manual Chapter 4 Hardware Appearance 4 1 Pin Assignments 2220020
14. B 0 01 mA Protection Power reverse polarity protection Frame Ground ESD Surge EFT Hi Pot Protection Power Requirement 15W Unregulated 10 VDC 30 VDC Power Consumption Idle 75 mA 24 VDC Data Link 150 400 mA peak 24 VDC System Red GPRS Yellow GPS Green Yes Casing Plastic Dimensions 60 mm x 140 mm x 172 mm W x L x H Installation DIN Rall and wall mount Operating Temperature 20 70 C 15 55 C 20 gt 70 C 15 55 C 17 Publication August 2013 Ver 1 15 G 4500 Series User Manual Storage Temperature 40 80 C 20 70 C 40 80 C 20 70 C Humidity 5 90 RH non condensing 18 Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 2 4 G 4500 2G Specifications 80 MHZ internal microprocessor SRAM Flash 512K 51 2K real time clock watchdog timer NVRAM 31 bytes battery backup data valid up to 10 years EEPROM 16 KB retention gt 40 years 1 000 000 erase write cycles COM ports COM1 5 wire RS 232 COM2 RS 485 COM3 3 wire RS 232 Ethernet 10 100 Base TX Ethernet controller Frequency Band Quad band 850 900 1800 1900 MHz GPRS connectivity GPRS class 10 8 GPRS station class B SMS MT MO CB Text and PDU mode Support Channels 32 Tracking up to 159 dBm with external LNA Sensitivity Cold start up to 146 dBm with external LNA Hot start Open Sky 2 s typical Acquisition Time Cold start Open Sky 36 s typic
15. G 4500 SIM300 Specifications 10 2 2 2 G 4500 SIM340 Specifications 13 2 2 3 GD 4500 SIM340 Specifications 16 2 2 4 G 4500 2G Specifications 19 Chapter 3 Application architecture 22 3 1 Car Monitor System 23 3 2 Remote Control Monitor System 24 3 9 GIS SVEN ee 25 3 4 Redundance Communication System 26 Chapter 4 Hardware Appearance 27 4 1 Pin Assignments lansiiksva lika ks 27 4 2 Hardward Dimensions 28 4 3 Operation Mode Switch 31 4 4 LED indicators ss 32 Chapter 5 Hardware Wire Connection 33 5 1 Wire Connection 33 5 2 GPRS GSM Installation n 35 5 3 GPS Installatloh rela 36 Chapter 6 Function Introduction 37 6 1 IO Library Function Definition and Description 37 6 1 1 X30510 MA eee een ce a canine eue LI 38 6 1 2 X3051O GetLibVersion eee 39 6 1 3 X30510 Read AD CalibrationGain 40 2 Publication August 2013 Ver
16. G 4500 Series User Manual G 4500 Series User Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assumes no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2008 by ICP DAS Co LTD All rights reserved worldwide Trademark The names used for identification only may be registered trademarks of their respective companies 1 Publication August 2013 Ver 1 15 G 4500 Series User Manual Tables of Content Chapter 1 Introduction 5 Chapter 2 Hardware specifications 6 2 1 G 4500 Hardware 1 see 6 2 1 1 G 4500 SIM300 Series 6 2 1 2 G 4500 SIM340 Series 7 2 1 3 GD 4500 SIM340 Series 8 2 1 4 G 4500 2G Series rr rrrrrrrr 9 2 2 G 4500 specifications sss 10 2 2 1
17. G 4500 series Syntax int X30510 Read All DO void Parameter None Return 0x0 0x7 Example When DOO OFF DO1 ON DO2 ON Value X30510 Read All DO Value 0x6 47 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 11 X30510 Read One DO Description Read the state from the assign DO channel Syntax int X30510 Read One DO int iChannel Parameter iChannel 0 2 gt chO ch2 Return Return 1 gt ON Return 0 gt OFF 48 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 12 X30510 Analogin SetChannel Description Set the specific Al channel that users want to read Syntax int X30510 Analogln SetChannel unsigned iChannel Parameter iChannel 0 7 gt chO ch7 Return Return 0 gt Set up success Return 1 gt Set iChannel number error 49 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 13 X30510 Analogin Hex Description Read the value of the assign Al channel assigned by X30510 Analogln SetChannel function Syntax int X30510 Analogln Hex void Parameter None Return After Read assign Al channel value Example X30510 Analogln SetChannel 0 Set channel 0 X30510 Analogln Hex 50 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 1 14 X30510 Analogin HexToFloat Description Set the Al value from 12 bits to float format Syntax float X30510 Analogln HexToFlo
18. Of sauna 73 6 3 4 LCD SHOWTOXE 1 bella dale lia eae vtta 74 6 3 5 LCD_DisplayNumber 1 eene 35 6 3 6 LCD SetNumber 1 T essere enne seen ena 76 0 3 7 LCD CilrNumb r eicere ede a rdi edi 77 6 3 8 LED ElfSscern ee 78 6 3 9 LCD _StandByMode 79 6 3 10 LCD NormalMode n 80 6 3 11 LCD GotoPosition 81 3 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 12 LCD CursorDisplay seen 82 6 3 13 LCD LineReverse ode een 83 6 3 14 LCD LineRestore i 84 6 3 15 LCD GeikibD te Lula es 85 6 3 16 LCD GetLibVersion 86 Chapter 7 Program Download Procedure 87 4 Publication August 2013 Ver 1 15 G 4500 Series User Manual Chapter 1 Introduction The G 4500 series provided by ICP DAS are M2M Machine to Machine embedded controller with a cellular transceiver can monitoring industrial equipment that sends live data to the monitoring system providing real time status With optional GPS model the G 4500 can also be a GPS tracking system It can be used in vehicle management system or maritime system Within the high performance CPU the G 4500 series can handle a large of data and are suit for the hard in
19. al Protocol Support NMEA 0183 version 3 01 Effective 80 61 mm x 14 37 80 61 mm x 14 37 mm display area mm W x H W x H General 93 mm x 70 mm x Module 93 mm x 70 mm x 1 6 16mm WxHx Dimension n mm W xH x T Expected life is Expected life is more more than than 100 000 hours Life Time 100 000 hours under normal under normal operation 19 Publication August 2013 Ver 1 15 G 4500 Series User Manual operation Output Channel 3 Output Type Open Collector Sink NPN Load Voltage 30 VDC max Load Current 100 mA max Isolated Voltage Non isolated Input Channel 3 Input Type Source Dry Type Common Ground Off Voltage Level 1 V max On Voltage Level 3 5 30 V Isolated Voltage Non isolated Input Channel 8 Resolution 12 bit Input Range Type 0 20 mA Sample Rate 1 KHz max Read one channel Accuracy 2 LSB 0 01 mA Protection Power reverse polarity protection Frame Ground Protection ESD Surge EFT Hi Pot Power Requirement 15W Unregulated 10 VDC 30 VDC Power Consumption Idle 75 mA 24 VDC Data Link 150 400 mA peak 24 VDC System Red GPRS Yellow GPS Green Yes Casing Metal Dimensions 47 mm x 142 mm x 168 mm W x Lx H Installation DIN Rall and wall mount 20 Publication August 2013 Ver 1 15 G 4500 Series User Manual Operating Temperature 20 gt 70 C 15 55 C 20 70 C 15 55 C Storage Temperature 40 80 C 20 gt 70 C
20. at int iValue Parameter A value want to 12 bits transform float Return The transferred Al value by float format Example Set the channel 0 to read and then transform the value to float float Ad Value X30510 Analogln SetChannel 0 AdValue X30510 Analogln HexToFloat X30510 Analogin Hex 51 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 MMC SD Library Function Definition and Description Function definition Description PC_Ertfs_Init Configure ERTFS drive letter device mapping and initialize device drivers PC_Open Open a file PC_Read Read bytes from the file PC_Write Write Bytes to the file PC_Close Close the file and flush the file allocation table Get_ErrNo Get Error code PC Iseek Move file pointer PC MKDir Create a subdirectory PC RMDir Delete a directory PC deltree Delete a directory tree PC MV Rename a file or directory PC IsDir Test if a path is a directory PC Pwd Return the current working directory PC Get Attributes Get File Attributes PC Set Attributes Set File Attributes Note Before using these functions users must format the MMC SD card as FAT16 from the PC 52 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 1 PC Ertfs Init Description Configure ERTFS drive letter device mapping and initialize device drivers Synt
21. ax BOOLEAN pc ertfs init void Parameter None Return Return value True gt success Fail gt no success 53 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 2 PC_Open e Description Open Create the file from MMC SD card with the specific mode e Syntax PCFD pc_open char name word flag word mode Parameter Name The file path in MMC SD card Flag PO_APPEND Seek to eof on each write PO_BINARY Ignored All file access is binary PO_TEXT Ignored PO_RDONLY Open for read only PO_RDWR Read write access allowed PO_WRONLY Open for write only PO_CREAT Create the file if it does not exist PO_EXCL If flag has PO_CREAT PO_EXCL and the file already exists fail and set get_errno to PEEXIST PO_TRUNC Truncate the file if it already exists PO_NOSHAREANY Fail if the file is already open PO_NOSHAREWRITE Fail if the file is already open for write Mode PS_IWRITE Write permitted PS IREAD Read permitted Always true anyway e Return Returns a non negative integer to be used as a file descriptor for calling po_read po write po Iseek po flush po_truncate and po close otherwise it returns 1 and get errno e Example 54 Publication August 2013 Ver 1 15 G 4500 Series User Manual This example below would show to open test1 file and set the file allowing read or write char fname test1 test1 txt pc_ertfs_init pc_open fna
22. bf 129 bff 129 long testcnt 0 int len pc ertfs init out fd pc open fname word PO BINARYJPO RDWR PO CREATIPO APPEND word PS IWRITE PS IREAD len sprintf bf Line 09lu r n testcnt pc_write out_fd bf len 57 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 5 PC_Close Description Close a file Syntax int pc_close PCFD fd Parameter fd file desc Return Returns 0 if all went well otherwise 1 If 1 is returned get_errno will return one of these values PEBADF Invalid file descriptor PENOSPC Write failed Presumably because of no space 58 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 6 Get_ErrNo Description Get error code Syntax int get_errno void Parameter None Return 2 gt PENOENT File not found or path to file not found 9 gt PEBADF Invalid file descriptor 13 gt PEACCESS Attempt to open a read only file or a special directory 17 gt PEEXIST Exclusive access requested but file already exists 22 gt PEINVAL _ Seek to negative file pointer attempted 24 gt PEMFILE No file descriptors available too many files open 28 gt PENOSPC Write failed Presumably because of no space 30 gt PESHARE Open failed do to sharing 31 gt PEDVICE No Valid Disk Present 32 gt PEBADDIR DELTREE Directory structure corrupt 59 Publication August 2013 Ver
23. dustrial environment The G 4500 series feature GPRS GSM module Ethernet interface optional GPS module 3 digital inputs 3 digital outputs 8 analog inputs 2 RS 232 and 1 RS 485 port That can be used in various application fields to transfer data by GPRS SMS Ethernet or serial bus In traditional application users need a master controller to integrate aGPRS GSM modem with developing GPRS or SMS programs into the host That would waste much time to integrate the various communication interfaces Now we have G 4500 series to solve the hardware integration problems with easy to used libraries The G 4500 series built in MiniOS7 provide the same development environment with 1 7188 1 7186 series It is more easy for 1 7188 1 7186 users to apply the G 4500 series Using G 4500 M2M communications a machine can be installed virtually anywhere but still be connected to a support centre to signal performance or need for service M2M data will improve the service quality and reduce operating costs Many application areas can be improved using G 4500 The G 4500 series applications can be divided into 2 parts One part is the fixed intelligent remote management equipment such as water monitor system vending machine system remote machine monitor home security POS system power measurement system and etc Another kind of application is movement management equipment such as vehicle management system maritime system taxi dispatch system and etc Anyway t
24. ecute autoexec bat Lock Flash is read only lock OS can not execute autoexec bat INIT Flash can be read wirte 31 Publication August 2013 Ver 1 15 G 4500 Series User Manual 4 4 LED indicators v 0 0 0 si L GPS Without GPS With GPS There are three LED indicators to help users to judge the various conditions of G 4500 The description is as follows SYS Red System LED is users programmable GSM Yellow The modem LED can indicate the status of GSM module Modem normal Modem fail Off Blanking 3 sec or Blanking not 3 sec GPS Green Option The GPS LED can indicate the status of GPS module GPS Fail Search GPS Receive GPS data Always off Always on Blanking 1 sec 32 Publication August 2013 Ver 1 15 G 4500 Series User Manual Chapter 5 Hardware Wire Connection 5 1 Wire Connection gt Digital Input Wire Connection ON State OFF State Input Type DI value as 0 DI value as 1 Relay Contact Relay Close Q Relay Open Q DIx GND TTL CMOS Logic Logic er Logic Falls m Logic GND GND Logic GND v 2 px Open Collector Ig ork I GND I gt Digital Output Wire Connection Ix 3 3 m 5 Ix 3 ON State OFF State Input Type DO value as 1 DO value as 0 DO PWR Drive Relay DOx GND A E NON dE A Resistance Load ENT 33 Publication August
25. een Yes Casing Metal Dimensions 47 mm x 142 mm x 168 mm W x Lx H Installation DIN Rall and wall mount 11 Publication August 2013 Ver 1 15 G 4500 Series User Manual Operating Temperature 20 70 C 15 55 C 20 gt 70 C 15 55 C Storage Temperature 40 80 C 20 70 C 40 80 C 20 70 C Humidity 5 90 RH non condensing 12 Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 2 2 G 4500 SIM340 Specifications 80 MHZ internal microprocessor SRAM Flash 512K 51 2K real time clock watchdog timer NVRAM 31 bytes battery backup data valid up to 10 years EEPROM 16 KB retention gt 40 years 1 000 000 erase write cycles COM ports COM1 5 wire RS 232 COM2 RS 485 COM3 3 wire RS 232 Ethernet 10 100 Base TX Ethernet controller Frequency Band Quad band 850 900 1800 1900 MHz GPRS connectivity GPRS class 10 8 GPRS station class B SMS MT MO CB Text and PDU mode Support Channels 32 Tracking up to 159 dBm with external LNA Sensitivity Cold start up to 146 dBm with external LNA Hot start Open Sky 2 s typical Acquisition Time Cold start Open Sky 36 s typical Protocol Support NMEA 0183 version 3 01 Effective 80 61 mm x 14 37 80 61 mm x 14 37 mm display area mm W x H W x H General 93 mm x 70 mm x Module 93 mm x 70 mm x 1 6 16mm WxHx Dimension n mm W xH x T Expected life is Expected life is more more than than 1
26. er 1 15 G 4500 Series User Manual 6 2 12 PC_IsDir Description Test if a path is a directory Syntax BOOLEAN pc_isdir char path Parameter Path The file path in MMC SD card Return Returns TRUE if path points to a valid existing directory otherwise FALSE 65 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 13 PC_Pwd Description Return the current working directory Syntax BOOLEAN pc_pwd char drive char path Parameter Drive Path return the current working directory Return Returns TRUE if a valid path was returned in path otherwise no if the current working directory could not be found Note Return buffer must contain enough space to hold the full path 66 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 14 PC Get Attributes e Description Get File Attributes Give a file name Return the directory entry attributes associated with the entry One or more of the following values will be or ed together BIT Nemonic 0 ARDONLY 1 AHIDDEN 2 ASYSTEM 3 AVOLUME 4 ADIRENT 5 ARCHIVE e Syntax BOOLEAN pc get attributes char path byte p return Parameter Path The file path in MMC SD card p return Return the directory entry attributes e Return Returns TRUE if successful otherwise it returns FALSE and get_errno returns one of these values PENOENT Example byte attribs if oc_get_attributes test
27. eter Line One of two line numbers 1 to 2 Offset Cursor position 1 to 5 Return None Example LCD ClrNumber 2 3 LCD DisplayNumber 77 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 8 LCD CirScrn Description Clear the LCD panel Syntax void LCD ClrScrn void Parameter None Return None 78 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 9 LCD_StandByMode Description Enter the stand by mode and it can be terminated by either LCD_NormalMode or other function Syntax void LCD StandByMode void Parameter None Return None 79 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 10 LCD_NormalMode Description Restore the LCD to normal mode when it is in the stand by mode Syntax void LCD_NormalMode void Parameter None Return None 80 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 11 LCD_GotoPosition Description Move the cursor to the specified position Syntax void LCD_GotoPosition int Line int Offset Parameter Line One of four line numbers 1 to 4 Offset Cursor position 1 to 8 Return None 81 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 3 12 LCD CursorDisplay e Description Set the Cursor display status e Syntax void LCD_CursorDisplay int Display int Blink Parameter Display Cursor display on
28. g info in OBJs gt EE ENSE Step6 Click the Option Debugger to set the Source Debugging parameter Here 89 Publication August 2013 Ver 1 15 G 4500 Series User Manual select the None for the Source Debugging Step7 Click the Option Directories to set the Output Directory parameter Here set the C MyDemo for the Output Directory parameter Compiler Transfer ae _ibrary Directories Steps After finishing all the parameters setting click the Compile build all toproduce the execution file name TEST exe 90 Publication August 2013 Ver 1 15 G 4500 Series User Manual cx C A TC BIN IC EXE Edit Search Run RE Project II 1a Line 5 E D Step9 Copy the file 7188XW exe into the MyDemo folder Then double click the 7188XW exe file The 7188XW exe can be found in the Osimage folder And G 4500 series COM1 connected to the PC RS 232 t 7188XW 1 14 COM1 115200 N 8 1 DIR C MyDemc o x Current set Use COMi 115200 N 8 1 AutoRun Autodownload files None Current work directory C MyDemo 1290 Step10 Key the command load in the 7188xw exe program Then follow the hint command to press Alt E and input the file name TEST exe to download the execution file 91 Publication August 2013 Ver 1 15 G 4500 Series User Manual urrent set Use COM1 115288 N 8 1 AutoRun utodownl
29. he G 4500 can save the cost and development time for users Control Center 5 Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 1 G 4500 Hardware 2 1 1 G 4500 SIM300 Series Chapter 2 Hardware specifications G 4500 SIM300 G 4500D SIM300 G 4500P SIM300 G 4500PD SIM300 Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 1 2 G 4500 SIM340 Series G 4500 SIM340 G 4500D SIM340 G 4500P SIM340 G 4500PD SIM340 Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 1 3 GD 4500 SIM340 Series efs wa l 69 4500P IN308 N GD 4500 SIM340 GD 4500D SIM340 GD 4500P SIM340 GD 4500PD SIM340 Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 1 4 G 4500 2G Series G 4500 2G G 4500D 2G G 4500P 2G G 4500PD 2G Publication August 2013 Ver 1 15 G 4500 Series User Manual 2 2 G 4500 specifications 2 2 1 G 4500 SIM300 Specifications 80 MHz internal microprocessor SRAM Flash 512K 512K real time clock watchdog timer NVRAM 31 bytes battery backup data valid up to 10 years EEPROM 16 KB retention 40 years 1 000 000 erase write cycles COM ports COM1 5 wire RS 232 COM2 RS 485 COM3 3 wire RS 232 Ethernet 10 100 Base TX Ethernet controller Frequency Band Tri band 900 1800 1900 MHz GPRS co
30. ies Library Description Remark G4500 LIB G 4500 and DI O gt Al functions GPRS LIB GPRS functions MMC FS4 LIB MMC SD functions TCP DM32 LIB Ethernet functions LCD LIB LCD functions Step1 Create a folder name MyDemo in the C disk and copy the lib folder and users program into the MyDemo folder Oi Des Dam M LT ges our BRRAHRLIF EL a RS SU ARA Step2 Run the TC 1 01development Click the Project Open project create new project named TEST PRJ 87 Publication August 2013 Ver 1 15 G 4500 Series User Manual ndou Gi Cc elp Enter directory path and file mask Step3 Use the Add function to add the library file into MyDemo project Fi Help ns Add JDel Delete O Options Space Includes 4 Edit F1 Menu Step4 Following the step3 add another library and into MyDemo project 88 Publication August 2013 Ver 1 15 G 4500 Series User Manual Ex CATCIBING NIC EXE of x ompile Debug TCNBINNA Fi Help Ins Add Del Delete O Options Space Includes Edit Fi Menu Display Swappin Er iler ode generation he large mode Click ERE ne point and I nspector options parameters The Emulation and 80186 will be used respect a 5 button to save the configuration Options efines TAN aum UE HEN Fi Hely T Point de Convention Instruction Set 1 Debu
31. me word PO_BINARY PO_RDWR PO_CREAT PO_APPEND word PS_IWRITE PS_IREAD 55 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 3 PC_Read Description Read bytes from a file Syntax int pc_read PCFD fd byte buf word count Parameter fd file desc buf data buf Count data length Return Returns the actual number of bytes read or Oxffff on error If the return value is Oxffff get errno will return one of the following PEBADF Invalid file descriptor PENOSPC Write failed Presumably because of no space Example char fname test1 test1 txt PCFD out fd char bff 129 pc ertfs init out fd pc open fname word PO BINARYJPO RDWR PO CREAT PO APPEND word PS IWRITE PS IREAD pc read out fd bff 512 56 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 4 PC_Write Description Write Bytes to a file Syntax int pc_write PCFD fd byte buf word count Parameter fd file desc buf write data buf Count data length Return Returns the actual number of bytes read or Oxffff on error If the return value is Oxffff get_errno will return one of the following PEBADF Invalid file descriptor PENOSPC Write failed Presumably because of no space Example This example will open test1 file and set read write is allowed And write a data char fname test1 test1 txt PCFD out fd char
32. nnectivity GPRS class 10 8 GPRS station class B SMS MT MO CB Text and PDU mode Support Channels 32 Tracking up to 159 dBm with external LNA Sensitivity Cold start up to 146 dBm with external LNA Hot start Open Sky 2 s typical Acquisition Time Cold start Open Sky 36 s typical Protocol Support NMEA 0183 version 3 01 Effective display 80 61 mm x 14 37 80 61 mm x 14 37 area mm W x H mm W x H General 93 mm x 70 mm x Module 93 mm x 70 mm x 1 6 16mm WxHx Dimension n mm W xH x T Expected life is Expected life is more Life Time more than 100 000 than 100 000 hours 10 Publication August 2013 Ver 1 15 G 4500 Series User Manual hours under under normal normal operation operation Output Channel 3 Output Type Open Collector Sink NPN Load Voltage 30 VDC max Load Current 100 mA max Isolated Voltage Non isolated Input Channel 3 Input Type Source Dry Type Common Ground Off Voltage Level 1 V max On Voltage Level 3 5 30 V Isolated Voltage Non isolated Input Channel 8 Resolution 12 bit Input Range Type 0 20 mA Sample Rate 1 KHz max Read one channel Accuracy 2 LSB 0 01 mA Protection Power reverse polarity protection Frame Ground Protection ESD Surge EFT Hi Pot Power Requirement 15W Unregulated 10 VDC 30 VDC Power Consumption Idle 75 mA 24 VDC Data Link 150 gt 400 mA peak 24 VDC System Red GPRS Yellow GPS Gr
33. oad files None sk directory C MyDemo 4583 1oad StartAddr gt AB G 42EA Press ALT E t dowrdsed filet Input filename TEST exe Step11 After finishing the download procedure key in the command run to implement the execution file TEST exe urrent set Use COMI 115288 N 8 1 AutoRun utodownload files None File will save to A42E G06B StartAddr gt ABBG 42EA Press ALT_E to download filet Input filename TEST exe Load file TEST exe total 275 blocks Transfer time is 12 266086 seconds uP 459Q0Xrun Publication August 2013 Ver 1 15 G 4500 Series User Manual Version Record Version By Date Description 1 0 1 Yide 2008 07 14 1 0 2 Yide 2008 09 12 1 0 3 Yide 2008 10 08 1 0 4 Yide 2008 10 15 1 05 Yide 2009 04 09 1 06 Yide 2009 05 13 1 07 Yide 2009 10 08 1 08 Yide 2009 11 30 1 09 Yide 2009 12 29 1 10 Yide 2010 06 10 1 11 Yide 2010 07 26 1 12 Yide 2010 08 24 1 13 Yide 2010 11 10 1 14 Yide 2011 11 09 1 15 Kane 2013 08 01 93 Publication August 2013 Ver 1 15
34. rn one of these values PENOENT Directory not found PEACCES Not a directory not empty or in use PENOSPC Write failed 62 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 10 PC_deltree Description Delete the directory specified in name all subdirectories of that directory and all files contained therein Fail if name is not a directory is read only or is currently in use Syntax BOOLEAN pc deltree char name Parameter Name Name of directory tree to be deleted Return Returns TRUE if the directory was successfully removed If FALSE is returned get_errno will return one of these values PENOENT Directory not found or path to file not found PEACCES Not a directory not empty or in use PENOSPC Write failed 63 Publication August 2013 Ver 1 15 G 4500 Series User Manual 6 2 11 PC_MV Description Renames the file oldpath to newname Fails if newname is invalid already exists or oldpath is not found Syntax BOOLEAN pc_mv char name char newname Parameter Name the file oldpath Newname New the file name Return Returns TRUE if the file was renamed otherwise FALSE If FALSE is returned get_errno will return one of these values PENOENT Directory not found PEEXIST File or directory already exists PENOSPC Write failed Example if pc_mv TEXT LETTER TXT TEXT NEWLETTER TXT Print Can t rename LETTER TXT n 64 Publication August 2013 V

Download Pdf Manuals

image

Related Search

Related Contents

Samsung CE118PF-X1 microwave  C。NCERT  User's Guide - Extech Instruments  

Copyright © All rights reserved.
Failed to retrieve file