Libelium Waspmote 3G Plus GPS Скачать руководство пользователя страница 51

-51-

v4.9

GPS

To get the GPS data in stand alone and MS-based mode use the function 

getGPSinfo()

. The GPS data from MS_assisted mode 

are stored in 

buffer_3G

.

Example of use:

{

  // Gets GPS data and shows it:

  _3G.getGPSinfo();

  USB.println(_3G.buffer_3G);

}

These functions returns:

 •

‘1’ on success

 •

‘0’ if error

 •

‘-2’ if info it’s not available

10.4. Stopping the GPS

To stop the GPS use the function 

stopGPS()

;

Example of use:

{

  // Stops GPS:

 _3G.stopGPS();

}

These functions returns:

 •

‘1’ on success

 •

‘0’ if error

10.5. Managing GPS data

The GPS data given by the 3G/GPRS module has 2 formats. The function 

getGPSinfo()

  (stand-alone and MS-based) returns 

the GPS info in specific variables with this units:

Variable

Format

Example

latitude

 ±ddmm.=north and -= south
d: degree; m: minute

4140.831527 

longitude

±dddmm.=east and -= west
d: degree; m: minute

-00053.173495

date

ddmmyy
d: day; m: month; y: year

020812

UTC_time

hhmmss.s 
h: hour; m: minute; s: seconds

083418.0

altitude

meters

257.00

speedOG

Knots (1knot = 1852m/s)

0

course

degrees

0

Figure: Format and example of GPS variables in stand- alone and MS-based modes

Содержание Waspmote 3G Plus GPS

Страница 1: ...Waspmote 3G GPS Networking Guide ...

Страница 2: ...e 3G GPRS module 12 2 4 Switching 3G off 13 2 5 Checking the GSM connection 13 2 6 Setting time and date from RTC 13 2 7 Setting operator parameters 14 3 SIM related functions 15 3 1 Setting the PIN 15 3 2 Changing PIN number 15 3 3 Getting IMSI 15 3 4 Getting IMEI 16 4 GSM related functions 17 4 1 Setting information returned when receiving a call 17 4 2 Making calls 17 4 3 Making lost calls 17 4...

Страница 3: ...ng the camera 26 6 3 Stopping the camera 27 6 4 Configuration of the camera 27 6 4 1 Resolution 27 6 4 2 Brightness 28 6 4 3 Rotation 28 6 4 4 FPS 29 6 4 5 Picture name 29 6 4 6 Adding time stamp on pictures 29 6 5 Taking pictures 30 6 6 Recording videos 30 6 7 Making videocalls 31 6 8 Setting the video quality 32 6 9 Sending DMTF tones 32 7 FTP and FTPS 33 7 1 Creating your own FTP server 33 7 2 ...

Страница 4: ... email 43 8 2 5 Deleting an email 43 9 HTTP and HTTPS 44 9 1 HTTP connections 44 9 1 1 GET method 44 9 1 2 POST method 44 9 1 3 Server response 45 9 2 Reading an URL 45 9 3 Sending a frame to Meshlium 46 9 4 HTTPS connections 47 9 4 1 HTTPS function 48 10 GPS 49 10 1 Differences between GPS modes 49 10 2 Technical data from the GPS receiver 49 10 3 Starting GPS 50 10 4 Stopping the GPS 51 10 5 Man...

Страница 5: ...ing serving cell radio parameters 63 12 6 Setting preferred service domain 63 12 7 Scanning the network band channels 64 12 8 Getting UE system information 65 12 9 Show network system mode 66 12 10 Shows system information in WCDMA 66 12 11 Setting network system mode preference 67 12 12 Setting the preferences for order of acquisitions 67 12 13 Choosing the storage location 68 12 14 Changing the ...

Страница 6: ...lementing internally several application layer protocols which make easier to send the information to the cloud We can make HTTP and HTTPS secure mode navigation downloading and uploading content to a web server In the same way FTP and FTPS secure mode protocols are also available which is really useful when your application requires handling files You can even send and receive mails directly from...

Страница 7: ...ecure Yes No No HTTP Yes Yes Yes HTTPS Secure Yes No No TCP UDP Sockets Yes Yes Yes Mails Yes No No GPS Yes A GPS S GPS NMEA No Yes but only NMEA stand alone mode Video Camera Yes Photo Video No No Video Calls Yes No No Protocols 3G WCDMA HSPA UMTS GPRS GSM GPRS GSM GPRS GSM Frequency Bands 850 900 1800 1900 2100MHz 850 900 1800 1900MHz 850 900 1800 1900MHz SD Card Yes up to 32GB No No Figure Comp...

Страница 8: ...z 2W DCS1800MHz PCS1900MHz 1W Sensitivity 106dBm Antenna connector UFL External Antenna 0dBi Consumption in sleep mode 1mA Dimensions 3G GPRS module 33 x 62 x 12 mm Dimensions 3G GPRS module plugged on Waspmote 73 x 62 x 20 mm NoteforUSAusers Wehavetestedthenew3GshieldwiththeAT TnetworkwhichsupportsnativellytheGSMand3Gprotocolos With other carriers may also work although we haven t tried and thus ...

Страница 9: ...g Sending Receiving SMS Single connection and multiple connections TCP IP and UDP IP clients TCP IP server HTTP and HTTPS service FTP and FTPS Service downloading and uploading files Sending receiving email SMTP and POP3 OTA feature can be performed now by Waspmote s 3G GPRS module Refer to the Over the Air Programming Guide for more information http www libelium com development waspmote documenta...

Страница 10: ...the module socket1 by default _pwrMode specifies the power mode _3G_ON by default 1 4 3 Working Modes Some constants have been defined to set the different working modes for the 3G GPRS module 1 _3G_ON Module is powered on Starts the module in full functionality 2 _3G_FULL Module is set in full functionality power consumption around 50mA with peaks around 1 1 4A 3 _3G_MINIMUM Module deactivates RF...

Страница 11: ...tants FTP_FUSE must be 1 too For deactivate a section change the 1 in the related fuse by 0 Note If you use a function with the related fused with a value of 0 the compiler will give you an error Please be carefully when you use the fuses Note If you do not use the Videocamera Board switch the Videocamera fuse to 0 1 4 5 Debug modes The library have two debug modes implemented that allows to the e...

Страница 12: ... _3G_OFFLINE _3G_SLEEP and _3G_ OFF The function setMode will set up the pwrMode variable to one of the five values but also configures the Waspmote s pins and sends the serial command to the 3G GPRS module It returns 1 on success 0 and 2 if error and 3 when the module starts succesfully with low battery in which case the user should expect future failures due to not enough power The function getM...

Страница 13: ...ork The timeout may vary depending on the network range and quality of service If the user detects this timeout does not allow his 3G GPRS to connect he can experiment with higher values 120 seconds would be the maximum advised timeout if the 3G GPRS module cannot connect in 2 minutes it is better to stop trying and check again in the next loop NoteforUSAusers Wehavetestedthenew3GshieldwiththeAT T...

Страница 14: ...ameters like APN login and password There are two ways to configure these settings The first one is to use the definitions into the file Wasp3G h define _3G_APN apn define _3G_LOGIN login define _3G_PASSW password The second one is to use the function set_APN Example of use If only APN is necessary _3G set_APN provider_APN If APN login and password are necessary _3G set_APN provider_APN login pass...

Страница 15: ... to the SIM _3G setPIN 1234 This function returns 1 on success 0 if error 3 2 Changing PIN number It changes PIN number of SIM card Example of use Changes the PIN number from 1234 to 4321 _3G changePIN 1234 4321 This function returns 1 on success 0 if error 1 if CME code are available 3 3 Getting IMSI It gets the IMSI from the SIM card and it stores the IMSI into buffer_3G variable Example of use ...

Страница 16: ... 16 v4 9 SIM related functions 3 4 Getting IMEI It gets the IMEI from the SIM card and it stores the IMEI into buffer_3G variable Example of use _3G getIMEI This function returns 1 on success 0 if error ...

Страница 17: ... returns 1 on success 0 if error 2 if error with CME error code available 4 2 Making calls It makes a call to the given telephone number Note the number can be using the country code or only the phone number Example of use Makes a call to the desired number _3G makeCall This function returns 1 on success 0 if error 2 if no carrier 4 3 Making lost calls It makes a specified duration lost call to th...

Страница 18: ...tation of the incoming call Example of use _3G setCLIPresentation ENABLE This function returns 1 on success 0 if error 2 if error with CME error code available 4 6 Setting CLI restriction in outcoming calls This function restricts or enables the presentation of the CLI to the called party when originating a call Allowed modes DEFAULT_CLIR INVOKE_CLIR or SUPPRESS_CLIR Example of use Restricts the C...

Страница 19: ...swer This function enables or disables the auto answer function of the 3G GPRS module The function wait a number of rings and the answer the call If the number of rings is 0 disables the autoanswer Example of use Enables autoanswer for wait 2 rings _3G autoAnswer 2 This function returns 1 on success 0 if error 4 9 Answer a call This function answers an incoming call Example of use Answers an incom...

Страница 20: ...for B key duration 100ms 13 DTMF tone for C key duration 100ms 14 DTMF tone for D key duration 100ms 15 DTMF tone for key duration 100ms 16 DTMF tone for key duration 100ms 17 Subscriber busy sound duration always 18 Congestion sound duration always 19 Error information sound duration 1330 3ms 20 Number unobtainable sound duration 1330 3ms 21 Authentication failure sound duration 1330 3ms 22 Radio...

Страница 21: ...he information returned by the module when an SMS is received It is useful to generate interruptions or to store data from the incoming SMS Example of use Sets information returned by the module when incoming SMS _3G setInfoIncomingSMS This function returns 1 on success 0 if error 2 if error with CMS error code available 3 if error setting the memory 4 if error setting the memory with CMS error co...

Страница 22: ...ard This function gets the number of total SMS stored in the SIM card Example of use uint8_t total_SMS 0 Gets the total SMS in SIM card total_SMS _3G getTotalSMS This function returns 1 on success 0 if error 2 if error with CMS error code available 4 16 Deleting SMS This function deletes an SMS stored in the SIM card It s advisable use first the function getTotalSMS in order to know the number of ...

Страница 23: ...cording by camera and VideoCall is used to store media file which is recorded during a video call The size of the C unit is 64MB The microSD card store up to 32GB of information Some functions have been developed to work with this file system 5 2 Go to the root directory of desired unit The function goRoot unit selects the unit to work 0 for C unit and 1 for D not for save the files created by the...

Страница 24: ...e file txt This function returns The size of the file 2 if error 5 5 Deleting files It deletes a file in the current directory Example of use deletes file txt _3G del file txt This function returns 1 on success 0 if error 5 6 MicroSD is present It checks if the microSD card is present Example of use uint8_t present checks if microSD is present present SD isSD This function returns 1 if is present ...

Страница 25: ...rror 2 if no data 5 8 Getting files from 3G GPRS to Waspmote The function getXModemFile origin_file destiny_path allows to get files from the current directory of the 3G GPRS Board and saves it in Waspmote s microSD card origin_file is the name of the file to get destiny_path is the path with the name to store the file in Waspmote s microSD card Example of use Gets the test1 txt from 3G GPRS board...

Страница 26: ...r with a IR light filter The board has two sockets for a luminosity sensor and a IR sensor With the information of these sensors the users can select the proper filter and if is necessary to use the IR LEDs The Video Camera Sensor Board also includes a presence sensor PIR to generate an interruption on Waspmote and take a picture or record a video when a person passes by this feature is specially ...

Страница 27: ... to start the configuration 6 4 1 Resolution The camera can be configured with 6 different resolutions The next table shows the resolution the number of horizontal and vertical pixels and the library parameter to use with the function Resolution H x V pixels library parameter STAMP 80x48 0 QQVGA 160x120 1 QCIF 176x144 2 QVGA 320x240 3 CIF 352x288 4 VGA 640x480 5 Figure Resolutions and library para...

Страница 28: ...unction returns 1 on success 0 if error 2 if camera not started 3 if camera is in invalid state 6 4 3 Rotation The image of the camera can be rotated in steps of 90 degrees 0 90 180 and 270 Example of use Rotates the camera 90 degrees _3G cameraRotation 90 This function returns 1 on success 0 if error 2 if camera not started 3 if camera is in invalid state Figure Video Camera Sensor Board with 0º ...

Страница 29: ...ave up to 20 characters The name is only a part of the whole name the whole name is namexxxx jpg where xxxx is an index of the picture after user defined name Example of use Sets the name of the pictures The final name is Test_name_xxxx jpg _3G pictureName Test_name_ This function returns 1 on success 0 if error 6 4 6 Adding time stamp on pictures The function pictureTimeStamp allows to add a time...

Страница 30: ...cording videos There are 4 functions related with recording a video startVideo Starts the recording of the video pauseVideo Pauses the recording of the video resumeVideo Resumes the recording of the video stopVideo Stops the recording of the video Example of use Starts the recording _3G startVideo Records 15 seconds and pauses delay 15000 _3G pauseVideo Waits 5 seconds and resumes the record delay...

Страница 31: ... end video 2 only record near end video and 3 record both far end and near end The video files have been saved in the folder VideoCall Example of use Makes a videocall and record both far end and near end _3G makeVideoCall 3 This function returns 1 if success 0 if error 1 if error connecting to the other party 2 if error with setup or the other party hangs the call 3 if error connecting the videoc...

Страница 32: ...tion profile Note This function can be used only when videocall is in idle state and the setting is available until power off Example of use Sets high quality image _3G VideoCallQuality 5 This function returns 1 if success 0 if error 6 9 Sending DMTF tones DMTF tones can be sent during a videocall Allowed tones are 0 9 and Example of use Sends an example string _3G VideoCallDMTF 0123456789 This fu...

Страница 33: ... use of this server hosting provider to obtain good results to upload and download files but we can t guarantee the perfect performance of the FTP server Also Libelium has tested with Guebs hosting www guebs com with good results Follow the next steps to create your own FTP server using the terminal 1 Install the pure ftpd server sudo apt get install pure ftpd 2 Stop the server sudo etc init d pur...

Страница 34: ...server The parameters in order are server address can be an IP address or a domain name port user name password mode 1 for passive and 0 for proactive and type A for ASCII or I for binary Example of use Setting FTP parameters _3G configureFTP ftp_address ftp_port user_name password 1 I This function returns 1 on success 2 if error setting the connection parameters APN 3 if error setting the FTP se...

Страница 35: ...le from the SD card of the 3G GPRS module you can use the function uploadFile 3G_folder FTP_ destination_path 3G_folder is a number that indicates the folder that contains the file to upload Allowed values for 3G_folder 0 current directory 1 C Picture directory 2 C Video directory 3 C VideoCall directory 4 D Picture directory 5 D Video directory 6 D VideoCall directory 7 C Audio directory 8 D Audi...

Страница 36: ...les to 3G GPRS module To download a file to the SD card of the 3G GPRS module you can use the function downloadFile FTP_path SD_ destination_folder max_time SD_destination_folder is a number that indicates the destiny folder to the downloaded file Allowed values for SD_destination_folder 0 current directory 1 C Picture directory 2 C Video directory 3 C VideoCall directory 4 D Picture directory 5 D...

Страница 37: ...ort user_name password This function returns 1 on success 2 if error setting the connection parameters APN 3 if error acquiring the SSL stack 4 error login into the server 5 if timeout when logs in 7 3 2 Uploading files from Waspmote To upload a file from Waspmote s SD card you can use the function uploadDataSecure SD_origin FTPS_destination SD_origin and FTPS_destination are strings that contains...

Страница 38: ...ctory filename Example of use Uploading a file from Video directory in the 3G microSD card _3G uploadFileSecure 5 FTPS_path FTPS_file_name This function returns 1 on success 0 if error 2 if error with CME code FTP error 3 if error getting the file of the size to upload 7 3 4 Downloading files to Waspmote TodownloadafiletoWaspmote sSDcardyoucanusethefunctiondownloadDataSecure FTPS_origin SD_destina...

Страница 39: ...D Audio directory FTPS_desitanion is a string that contains the complete path with the file name The string must be start with the character for example filename or directory filename max_time is the total time in seconds to download the file from the server Example of use Downloading a file from FTPS to Video directory _3G downloadFileSecure FTPS_path FTPS_file_name 5 180 This function returns 1 ...

Страница 40: ...rror setting username and password 1 if error setting server and port 8 1 2 Setting the sender address and name This function sets the sender mail address and name Sets the sender mail address and the name setSMTPfrom senders_mail email com sender This function returns 1 if success 0 if error 8 1 3 Setting the recipient address and name The function setSMTPrecipient kind index mail_address name se...

Страница 41: ...uccess 0 if error 8 1 5 Attaching files The 3G GPRS module can attach up to 10 files 0 to 9 to the email The total size of all attachments can t exceed 10MB To attach a file to the email the file must be in the current directory Please refer to the File system related functions chapter to know how to go to the correct folder If the process of sending an e mail is ongoing these functions will retur...

Страница 42: ... available 8 2 2 Getting a list of emails This function get a list with the total number of emails Example of use Configures the SMTP server total_email getPOP3list This function returns the total number of emails 2 if error logging in the POP3 server 3 getting the e mail number and total size 8 2 3 Getting the header of an email This function gets the header of the email specified in index and st...

Страница 43: ... directory Example of use Configures the SMTP server getPOP3mail 6 This function returns 1 on success 1 if error logging in the POP3 server 2 if error getting the e mail 8 2 5 Deleting an email This function deletes the e mail specified in index The function only marks an email on the server to delete it and after POP3 client logs out POP3 server and closes the session normally the marked email is...

Страница 44: ...value1 It is a couple with the variable name and value which we want the web service to parse view html It is an optional argument It shows a pretty response HTML formatted All arguments must be separated by The variable name and value must be separated by Some examples pruebas libelium com getpost_frame_parser php var1 3 1415 pruebas libelium com getpost_frame_parser php var1 3 1415 view html pru...

Страница 45: ...e downloads libelium com waspmote html get post php parser tester zip The user may find it interesting to copy this code and make it run on his own server physical or virtual If the user wants to go further he can complete the code For example once the couples are parsed the user can modify the PHP to save data into a txt file or insert couples into a database or include a timestamp 9 2 Reading an...

Страница 46: ...ode available 16 if error opening a HTTP session with CME_error code available Reading an URL using GET and POST methods example http www libelium com development waspmote examples 3g 15 getting url 9 3 Sending a frame to Meshlium The function sendHTTPframe url port data length method has been developed to send a frame fromWaspmote to Meshlium Meshlium will parse the frame and will store in the in...

Страница 47: ... example http www libelium com development waspmote examples 3g 15b sending a frame to meshlium 9 4 HTTPS connections Hypertext Transfer Protocol Secure HTTPS is a combination of the Hypertext Transfer Protocol HTTP with SSL TLS protocol to provide encrypted communication and secure identification of a network web server HTTPS is the result of simply layering the Hypertext Transfer Protocol HTTP o...

Страница 48: ...80 GET index HTTP 1 1 r nHost www urls com r nUser Agent Waspmote r nContent Length 0 r n r n Shows the answer from www urls com USB println _3G buffer_3G This function returns 1 on success 1 if unknown error 2 if 3G module is busy 3 if server closed 4 if timeout 5 if transfer failed 6 if memory error 7 if invalid parameter 8 if network error 10 if error setting APN username and password 11 if err...

Страница 49: ...lish a location MS Based 3G GPRS module is connected to the network and uses the GPS signals and a location signal from the network GPS mode will transform to standalone mode automatically after get the ephemeris information from the server MS Assisted 3G GPRS module is connected to the network uses GPS signals and a location signal then relays its fix to the server MS based and MS assisted mode d...

Страница 50: ...e the auto start GPS _3G enableAutoGPS Disable the auto start GPS _3G disableAutoGPS These functions returns 1 on success 0 if error The function startGPS are used to start the GPS in the 3 working modes If the function is called without parameters the GPS will start in stand alone mode To work in MS based 2 and MS assisted 3 the user need to give the URL of a A GPS server and the port The selecte...

Страница 51: ...ctions returns 1 on success 0 if error 10 5 Managing GPS data The GPS data given by the 3G GPRS module has 2 formats The function getGPSinfo stand alone and MS based returns the GPS info in specific variables with this units Variable Format Example latitude ddmm mmmmmm north and south d degree m minute 4140 831527 longitude dddmm mmmmmm east and west d degree m minute 00053 173495 date ddmmyy d da...

Страница 52: ...tude date time Variable Format Example latitude Unit is in 10 8 degree 4168050885 longitude Unit is in 10 8 degree 88618039 altitude meters 293 date ddmmyyyy d day m month y year 28092012 UTC_time hhmmss s h hour m minute s seconds 081611 0 Figure Format and example of GPS variables in MS assited mode ...

Страница 53: ...xtra information about the reason of the error To know the signification of the code see the appendix CME error codes TCP connections maybe need more time than UDP connections The main reason is the feedback received by the module from the server indicating that the data have been sent successfully or not With UDP connections there aren t that feedback 11 1 Configuration of the 3G GPRS module for ...

Страница 54: ...dule The function getIP gets the IP assigned to the module by the network provider The IP address is stored in buffer_3G Example of use Gets the IP assigned _3G getIP This function returns 1 on success 0 if error 2 if error with IP error code available 11 3 Query a IP address from a domain name This function obtains the IP address from a given domain name The IP address is stored in buffer_3G Exam...

Страница 55: ...ating a socket A socket can be created with the function createSocket The parameters needed for create aTCP or UDP socket are different For a TCP socket you need to specify working mode TCP_CLIENT IP address of the server and port of the server For an UDP socket only need to specify the working mode Example of use Creating a TCP socket _3G createSocket TCP_CLIENT 90 12 54 132 5566 Creating a UDP s...

Страница 56: ...ions and returns a number with the type of data For IP data this function returns 3 The IP address of the sender is stored in IP_dir and the data in buffer_3G For more information about the function manageIncomingData see the description of the function at this guide 11 5 3 Closing the socket To close an opened socket the function closeSocket must be used This function doesn t need parameters Exam...

Страница 57: ... the number of the link and the listen port Example of use Creates a TCP connection in multi client mode _3G createMultiSocket 2 90 12 54 132 5566 Creates a UDP connection in multi client mode _3G createMultiSocket 1 156 This function returns 1 on success 0 if error 2 if not configured in multi client mode 3 if network is closed 4 error opening the connection with CME error code available 5 error ...

Страница 58: ... Closes the specify socket _3G closeMultiSocket 2 This function returns 1 on success 0 if error 2 if error with IP error code available 11 7 Working in TCP server mode The 3G GPRS module can be used as a TCP server In this working mode the 3G GPRS module can accept up to 10 TCP clients 11 7 1 Creating the server A TCP server can be created with the function createSocket The parameters needed are t...

Страница 59: ...on returns 1 on success 0 if error 2 if error with IP error code available 11 7 3 Activate a client To send and receive data from a client first must activated The number of client starts in 0 Example of use Opens the client number 2 _3G openClient 2 This function returns 1 on success 0 if error 2 if error with IP error code available 11 7 4 Sending and receiving data To send data to an active cli...

Страница 60: ...ncomingData see the description of the function at this guide 11 7 5 Disconnecting a client The function closeClient closes an active client Example of use Opens the client number 2 _3G closeClient 2 This function returns 1 on success 0 if error 2 if error with IP error code available 11 7 6 Closing the server To close the TCP server the function closeSocket must be used This function doesn t need...

Страница 61: ...or IP data Stores the IP address from the sender in IP_dir and the data in buffer_3G 0 for error or not data Note 1 the phone number has a maximum length of 15 characters including country code Note 2 the SMS text and the TCP UDP data string has a maximum size of buffer_3G length 12 2 Getting RSSI level This function gets the RSSI level from the network and stores it in buffer_3G in dBm Example of...

Страница 62: ...ation identification code RXLev received signal strength in dBm TA timing advance C1 Coefficient for base station selection C2 Coefficient for Cell re selection TXPWR UE TX power in dBm If no TX the value is 0 When the 3G GPRS module is in dedicated mode for example in a call is in progress the parameters MCC MNC LAC ID C1 and C2 for the neighbour cells are not showed 12 4 Getting cell channel inf...

Страница 63: ...tion returns 1 on success 0 if error Information is stored in buffer_3G with this format ARFCN 9 RXLevFull 96dbm RXLevSub 96dbm RXQualFull 4 RXQualSub 3 PWRC 1 DTX 1 RLT 32 ARFCN assigned radio channel RXLevFull received full signal strength in dBm RXLevSub received sub signal strength in dBm RXQualFull full quality of reception RXQualSub sub quality of reception PWRC power control DTX DTX indicat...

Страница 64: ...dBm_value Information is stored in buffer_3G with this format when numeric output is selected For BCCH Carrier arfcn_value bsic_value dBm_value mcc_value mnc_value lac_value cellId cellStasus num_afrcn list of arfcns num_channel list of channels For non BCCH Carrier arfcn_value dBm_value arfcn_value carrier assigned radio channel BCCH Broadcast Control Channel bsic_value base station identificatio...

Страница 65: ... a 3G cell System Mode Operation Mode MCC MNC LAC Cell ID Frequency Band PSC Freq SSC EC IO RSCP Qual RxLev TXPWR System Mode System mode values NO SERVICE GSM or WCDMA Operation Mode UE operation mode values Online Offline Factory Test Mode Reset Low Power Mode MCC Mobile Country Code first part of the PLMN code MNC Mobile Network Code second part of the PLMN code LAC Location Area Code hexadecim...

Страница 66: ..._3G buffer_3G This function returns 1 on success 0 if error Information is stored in buffer_3G with this format Active SET ActiveSET Cells Num ActiveSET Cell1 PSC ActiveSET Cell1 Freq ActiveSET Cell1 SSC ActiveSET Cell1 Sttd ActiveSET Cell1 TotEcio ActiveSET Cell1 Ecio ActiveSET Cell1 Rscp UTMS_SETS Cell TPC UTMS_SETS Cell SecCpichOvsf ActiveSET Cell1 WinSize more active cells Sync Neighbor SET Sy...

Страница 67: ...UTMS_SETS contains ActiveSET active set SyncSET neighbour monitored set for neighbours whose timing is known AsyncSET neighbour monitored set for neighbours whose timing is unknown 12 11 Setting network system mode preference This function sets network system mode preference The values for the input parameter are 0 for automatic 13 for GSM only and 14 for WCDMA only Example of use Sets network sys...

Страница 68: ... 3G GPRS module This function also changes the UART s baudrate in Waspmote The allowed baudrates are 300 600 1200 2400 4800 9600 19200 38400 57600 115200 Higher values don t work properly in Waspmote Example of use Sets baudrate to 38400 bauds _3G changeBaudrate 38400 This function returns 1 on success 0 or 2 if error 12 15 Sending AT commands to the 3G GPRS module This function allows to the user...

Страница 69: ...hone This function sets the gain level of the microphone The input values are 0 for mute and 1 to 16 for gain level Mute only can be used into a call Example of use Sets max gain for the microphne amplifier _3G micGain 16 This function returns 1 on success 0 if error 12 18 Setting the loudspeaker volume This function sets the level of the loudspeaker The input values are 0 for mute and 1 to 5 for ...

Страница 70: ... it in buffer_GPRS The function firmware_version get the firmware of the module and saves it in buffer_GPRS These functions return 1 on success 0 if error Example of use USB print F WhoamI GPRS_Pro whoamI USB println GPRS_Pro buffer_GPRS USB print F Firmware version GPRS_Pro firmware_version USB println GPRS_Pro buffer_GPRS ...

Страница 71: ... PHP Extract the PHP script on your computer You must change the Google Maps API v3 key in the PHP script http maps googleapis com maps api js key your_key sensor false To show the map with the marker you need to access to the next URL http your_IP_or_domain demo_sim908 php The IP address or server domain must be the same used in the example code of Waspmote in case you are running the demo on you...

Страница 72: ... n Speed OTG speed n Course course if file_put_contents file person FILE_APPEND LOCK_EX echo n t Error saving Data n else echo n t Data Save n else DOCTYPE html html head Load Jquery script language JavaScript type text javascript src jquery 1 10 1 min js script Load Google Maps Api IMPORTANT change the API v3 key script src http maps googleapis com maps api js key your_key sensor false script Ini...

Страница 73: ...ation google maps Animation BOUNCE google maps event addDomListener window load initialize script head body php echo Draw information table and Google Maps div div center br b SIM908 GPS position DEMO b br br div id superior style width 800px border 1px solid table style width 100 tr td Time td td Satellites td td Speed OTG td td Course td tr tr td id time date Y M d H m td td id sat td td id spee...

Страница 74: ... 74 v4 9 API changelog 14 API changelog Keep track of the software changes on this link www libelium com development waspmote documentation changelog 3G ...

Страница 75: ...v4 3 to v4 4 Added new section HTTP connections added in chapter HTTP and HTTPS Added new section GET method added in chapter HTTP and HTTPS Added new section POST method added in chapter HTTP and HTTPS Added new section Server response added in chapter HTTP and HTTPS Section HTTP changes to Reading an URL From v4 2 to v4 3 API changelog updated From v4 1 to v4 2 New section Getting module informa...

Страница 76: ...index 275 invalid parameter combination 22 not found 201 Unknown error for FTP 23 memory failure 202 FTP task is busy 24 text string too long 203 Failed to resolve server address 25 invalid characters in text string 204 FTP timeout 26 dial string too long 205 Failed to read file 27 invalid characters in dial string 206 Failed to write file 30 no network service 207 It s not allowed in current stat...

Страница 77: ...wed 318 SIM PUK2 required 303 Operation not supported 320 Memory failure 304 Invalid PDU mode parameter 321 Invalid memory index 305 Invalid text mode parameter 322 Memory full 310 SIM not inserted 330 SMSC address unknown 311 SIM PIN required 331 no network service 312 PH SIM PIN required 332 Network timeout 313 SIM failure 340 NO CNMA ACK EXPECTED 314 SIM busy 342 SMS size more than expected 315...

Отзывы: