Home

Data Sheet and User Manual - TNS010 Easy TCP/IP chip for GPRS

image

Contents

1. 6 Rx into phone Siemens C55 2 Gnd SNP 4 Rx Ericsson T65 68 200 connector s pin out 1 Charge Gnd Gnd o0 m BR 9 N TX out from phone RX into phone Power ON TRIG LOW ONLY ERICSSON T65 T68 Quick Start Guide TNSO101 works well with any GPRS phone or GPRS modem module Such as Ericsson T65 T68 T200 Siemens S45 C55 Wavecom Integra GPRS GPRS module Etc Recommendation for Wavecom integra 1 Set GPRS modem to baudrate 57600 by send AT IPR 57600 and 2 Save this setting value in it s EEPROM by send AT amp W 3 Send AT WOPEN 0 Following is the sample how to start TNSO101 with Ericsson Siemens phone Testing phone parameters 1 Ensure that the GPRS phone have been activated and tested to verify the connection In case of Ericsson and Siemens C55 you need to purchase a data link cable built in RS232 IC available from it s dealer 2 Set the phone parameter according to the recommendations from your GPRS service provider You may consult a sample web page of how to set at http www mobilelife co th mobilelife t customertools mobilesetting manual gprs index htm or from your local GRPS provider web site Note that the parameters may be vary from country to another and from one provider to another 3 Add New Hardware GPRS phone modem to your PC you will need GPRS phone driver that should come with the phone 4 Add New Internet Connection Ch
2. HTTP EAE SMTP POP3 TCP IP socket Typical testing circuit 1000 bytes 512 bytes 2 500 bytes 1 000 bytes Support Not support Support Support Not support Support Support Support MCU A TNSO10 5 V Summary of Commands e 19 200 BPS command baud rate MCU controller TCP IP Chip N 8 1 1 200 57 600 BPS GPRS modem baud rate TCP IP Chip GPRS Modem N 8 1 Dark color are main commands and the Gray color are Option commands e CR Carriage Return Code 13 or in hex format 0x0d Chip test Command at i lt CR gt Response I OK Open a PPP connection Command attiopen lt CR gt Response Success I OK BIOL BUUCCSSE I ERROR 1 PPP NOT ESTABLISH can t connect to PPP server I ERROR 3 DIAL NOT SET no dial number set up I ERROR 4 MODEM NOT RESPONSE no modem response I ERROR 7 PASSWORD NOT GOOD invalid password Close a PPP connection Command at iclose lt CR gt Response Success I OK Not success I ERROR 4 MODEM NOT RESPONSE can t disconnect modem Display a current assigned IP address Command qud Tec Response CLIENT IP x x x x SERVER IP x x x x I OK Set up a dialing number Command attisetd ISP dialing number lt CR gt Response I OK Example attisetd 99 1 lt CR gt I OK Display a dialing number Command at tisetd lt CR gt Response lt DIAL NUMBER gt I OK Example attisetd CR 99 14 I OK Set up DNS se
3. TNS0101 TCP IP Stack Chip Data Sheet and User Manual Rev 010 04 10 2011 Firmware 4 07 Checkout http www tcpiochip com for details and updates TNS010i TCP IP stack Chip Description TNS0101 TCP IP stack chip is a complete single turnkey product that enables the Internet connection Not only does it reduce development time to market the TNSO10i allows several real time efficient transmissions of data and commands between an 8 16 32 bit micro controller MCU and the core TCP IP software engine With no priori information about the Internet protocol or networking this device allows the MCU to send and receive web pages data and commands in a form of scripting phrases through its built in TCP IP protocol engine Executing only a few simple commands from an MCU through serial pins of TNSO101 and you will be able to transmit and receive data to from web application program Each command sent across the TNS0101 will invoke TNS0101 to response back to an MCU with a message This debugging information helps users keep track of every step during the connection attempt This device can connect to the GPRS phone directly with no additional components Even the MCU needs to set up or read out the GPRS parameters this device automatically bypasses those AT commands to the phone thus eliminating The need for two serial port hardware on the MCU side and e A complex circuit for switching among the three modules MCU TNS0101 and
4. GPRS Features Support basic protocols including TCP IP PPP DNS HTTP SMTP POP3 and TCP IP socket Easy interface to GPRS phone or Modem nput commands length as long as 1 000 bytes No need for external RAM or ROM Minimal components Requires only one 18 432 MHz Xtal and 3 Capacitors e 19 200 BPS Command communicates with micro controller MCU Information exchanges rate with GPRS 1s variable from 1 200 BPS to 57 600 BPS low power consumption 44 pin PLCC and LQFP package The Connection Diagram TCP IP CHIP TNS010 Electrical Characteristics Symbol Description Min Type Max Unit VIL Input Low Voltage 0 5 0 9 V VIH Input High Voltage 1 9 s V VIH_ Input High Voltage XTAL1 RST 3 5 99 v Tere Power supply current 60 mA VCC Power supply voltage 4 5 932 V Pin Description Symbol PLCC LQFP In Out Name and Function Wee 4435 38 29 Power Supply power supply voltage for operation fe e ewm XA a 1 orar 9222 morana bmz m a 9 ez reasons oupa osoarena sees t Seerne noemmen sassa pmo oo eeeswemeasmuzes gt m 3 o pemmemeememenee m mos pmememmmeenemeses gt o o meme pepe qemmee ime 3 o fiosan eomma rors s o Te TCP IP Software Specifications Maximum at i command length include atti itself Maximum TCP segment size Serial RX buffer length Ring buffer Serial TX buffer length PAP CHAP DNS
5. data gt lt CR gt Response I OK lt RESPONSE NONE gt Example attsock HELO r n lt CR gt I OK 250 HELLO CR 3 CLOSE TCP IP SOCKET Command at isockclose lt CR gt Response I OK EMAIL SEND RECEIVE SMTP amp POP3 l1 OPEN gt SEND gt CLOSE Mail Command at ismtpsend lt mailserver gt lt port gt lt from gt lt to gt lt subject gt lt data gt lt CR gt Response I OK or I ERROR 10 MAIL ERROR Note port default value is 25 Example att tismtpsend mail server com sender aaa com recv bbb com My subject Hello how are you lt CR gt I OK 2 READ EMAIL POP3 2 1 OPEN gt List all mails and show mail s number in Inbox Command at tlpopoopen smallsetver l eporto suser nhame gt lt passworco gt lt CR gt Response lt mail number list gt I OK Or I ERROR 10 MATL ERROR Notre lt port gt default value is 110 Example at ipop3o0pen pop3 server com david 1234 lt CR gt L2 3 5 5 I OK 2 2 READ EMAIL Command atrlpoporeddg smarll number gt lt Ck gt Response mail content I OK OY I ERROR 10 MAIL ERROR Example at ipop3read 4 lt CR gt From sender aaa com Subject Test Hello How are you I OK 2 3 CHECK MAIL Command attipop3check CR Response lt mail number list gt I OK oja I ERROR 10 MAIL ERROR Example at ipop3check lt CR gt 1 2 3 4 5 I OK 2 4 DELETE MAIL Command attipop3delete ma
6. to enter modem s internet connecting state CONNECT response from modem and then type atti lt cer gt to enter TNSO0O10i s commands mode I OK the response from TNSO101 Turn on DEBUG mode Debug mode on print out some more information when chip is in Processing Command atti cebugl lt CR gt Response I OK Turn off DEBUG mode Command attidebugO CR Response I OK Set up TCP time out Command attisettcpto TCP time out value gt lt CR gt Response I OK tcpto 8 CR 1 255 Sec Example attiset I OK Display TCP time out value Command at isettcpto lt CR gt Response lt Time out value gt I OK Example attisettcpto CR 8 I OK Set up DNS time out Command at isetdnsto lt DNS time out value gt lt CR gt Response I OK Example attisetdnsto 8 CR 1 255 Sec I OK Display DNS time out value Command at isetdnsto lt CR gt Response lt Time out value gt I OK Example att tisetdnsto lt CR gt 8 I OK Set up Modem time out Command att tisetmodemto lt time out value gt lt CR gt Response I OK Example att tisetmodemto 8 lt CR gt 1 255 Sec I OK Display Modem time out Command at isetmodemto lt CR gt Response lt Time out value gt I OK Example at 1setmodemto lt CR gt 8 I OK Detect and automatic set modem interfacing baudrate Command at idetect lt CR gt Response XXXX I OK Example attidetect CR 96
7. 00 I OK Manual set up GPRS modem interfacing baud rate Command at isetbaud lt baud rate gt lt CR gt Response I OK Available Baud rate list 57600 BPS default 38400 19200 9600 4800 2400 1200 Example at isetbaud 9600 lt CR gt I OK Display GPRS modem interfacing baud rate Command at isetbaud lt CR gt Response lt baud rate value gt I OK Example attisetbaud CR 9600 I OK Data counter Check amount of total data transfer Command sql T Count 7 lt ChR gt Response lt data transfer counter gt Bytes I OK Example at icount 1371 I OK Reset data transfer counter Command atT1co untsS0 cCR Response I OK Example at icount 0 lt CR gt I OK note the data counter command available only in ver 4 03 up Modem s flow Control Setting Modem s data flow control Command atticomlctrl hard none lt CR gt Response I OK Example atticomlctrl none lt CR gt I OK Read Modem s flow control status Commmand at icomlctrl 2 CR Response HARD NONE I OK Example atticomlctrl lt CR gt NONE I OK note default none Dev 010i B s modem connection is null modem type Power Down mode for energy saving Put TNSO101 into power down mode Command at ipwrdwn lt CR gt Response I OK In power down mode TNSO10i will reduce the consume current to 25 uA return to active mode by sending a reset pulse GRPS phone Modem Time Out Whe
8. ield 3 d display only date field 4 default port number is 80 Example attihttp www google com 1 lt CR gt I OK Content Length 2998 lt html gt lt head gt lt meta http equiv content type content text html charset windows 874 gt lt title gt Google lt title gt lt style gt lt body td a p hn font family h font size 20px q text decoration none color 0000cc lt html gt Example attihttp www myserver com 123 doc htm d 1 lt CR gt I OK Date Mon 29 Dec 2003 12 29 09 GMT Content Length 3203 MIPS d do Cd o e SUR o HTML How to request the next HTTP After successfully retrieving the first web page the successive request needs no further initial set up commands Just send same command again Command at Exhttbo2s urlL path r eport space s H s l s7d CR In case a connection is broken 1 Close the existing connection first with Command at iclose lt CR gt 2 Then re open PPP connection with Command attiopen CR 3 Followed by requesting a web page Command ABttibhbttbpi url pathslreporte s spacee mW LNSCR TCP IP SOCKET 1 OPEN TCP IP SOCKET Command at isockopen lt url gt lt port gt lt CR gt Response I OK lt RESPONSE NONE gt Note lt port gt is required no default value Example at sockopen mail server com 25 lt CR gt I OK 220 SMTP Service ready 2 SEND DATA ON TCP IP SOCKET Command att tisock lt
9. il number gt lt CR gt Response lt mail number gt I OK OF I ERROR 10 MAIL ERROR Note mail number all delete all messages numl num2 num3 delete specific messages numl num2 delete range of messages Example at ipop3delete 1 2 6 lt CR gt 3 4 5 display undelete message I OK at ipop3delete all lt CR gt I OK at ipop3delete 4 10 lt CR gt 1 2 3 display undelete message I_OK 2 5 CLOSE READING EMAIL SERVER Command at ipop3close lt CR gt Response I OK or I ERROR 10 MAIL ERROR Read firmware version of TNSO101 Command at iver lt CR gt Response VERX xx I OK Fxample at iver lt CR gt VER0 07 I OK Bypass to modem s AT commands mode lst Step type and cr to make it is ready for modem s AT commands mode Command lt CR gt Response I OK 2nd step Casel if modem is not connected to internet Type at cr to initiate and enter modem s commands mode OK response from modem Case2 if modem is connected to internet Type and wait for 2 3 sec and then type at lt cr gt to initiate and enter modem s commands mode OK response from modem From this state you can communicate to modem with it s AT Commands To quit from modem s AT commands mode and enter TNSO10i commands mode Casel if modem is not connected to internet Type atti lt cr gt to enter TNSOl10i s commands mode I OK response from TNSO101 Case2 1f modem is connected to internet Type ato
10. n power on reset TNSO101 will load a modem time out default value according to the logic level below GPRS sel high or no connect LAND LINE MODEM sel Low connect to GND Note GPRS modem time out default value 10 Sec Land line modem time out default value 60 Sec you can change these default value by issue attisetmodemto xxx Error message response I ERROR 0 PPP CLOSED I ERROR 1 PPP NOT ESTABLISH I ERROR 2 DNS IP NOT SET I ERROR 3 DIAL NOT SET I ERROR 4 MODEM NOT RESPONSE I ERROR 5 TCP TIME OUT I ERROR 6 DNS TIME OUT I ERROR 7 PASSWORD NOT GOOD I ERROR 8 CONNECT LOST Development board DEV 010i B wiring guide Power on off Input DC 8 24v Modem s RS232 TTL Logic Selector Controller s RS232 TTL Logic Selector Reset Controller Land line GPRS time out Selector o C s v2 v a I A Ha Init a4 SUK T LR a J oer Ee RS232 3c TNSO107 Seh eo VER x 12 Jonnoci repo GND Aux To Modem s Rx TNSO10 s reset From Modem s Tx From Controller s Tx Aux To Controller s Rx SV output GND DEV 010i B schematic oy 90 CES FR RSF RF z Ta C DC L a ponj md sero tL az T w po U 12 3 Uu x Liao ra o tr IYU e upo X uyd WXL Some old GPRS phone data link details Siemens S45 connector s pin out 1 Gnd 2 3 Charge 4 5 Tx out from phone
11. nitiate modem s commands mode lt OK at cgdcont xxx xxx GPRS parameter setting Example 1 1p Internet lt lt OK gt atti lt ENTER gt Enter TNSO10i s commands mode lt I OK at risetd2xxx xxx ISP dial number Example 99 I OK at iopen connect to ISP and open the TCP IP socket I OK attihttp xxx xxx url IP url domain name Example atihttp 203 130 155 66 test php content12123 amp content22345 l d h I OK suffix L d h is for showing data s length present date or full header or nothing default ur lt html gt HTTP response data Products Distributor http www es co th Products Website http www tcpipchip com Technical Support and Sales tnstns gmail com c TRONICS SERVE
12. oose your GPRS phone as a modem 5 Connect the GPRS phone via its data link cable built in RS232 IC and connect to Internet by choosing a GPRS modem 6 Try surfing the web page via your GPRS phone If you are successful in surfing the web page with the GPRS phone then proceed to the next step Testing the TNS0101 chip on Window s Hyperterminal program As an alternative to reduce the overall manufacturing cost and the package size a data link cable with no RS232IC in its cable can be used given that there 1s the same logic voltage level to and from the MCU and the GPRS phone 7 Close all the Internet connections in PC including any web browser Then remove the data link cable 8 Open Hyper terminal program in the Windows N 8 1 19 200 BPS 9 Connect the GPRS phone to the a new development board s data link cable no RS232 IC and turn the power on 10 As soon as the development board Is powered up the I READY sign should appear on the Hyper terminal screen 11 Type the following sequence of commands in its order gt atti lt ENTER gt TCP IP chip response testing lt I OK at tidetect lt ENTER gt detect set modem baudrate 57600 modem s baud rate I OK Skip the following gray colour steps if your GPRS modem s parameter was set correctly ENTER quit TNSO10 s commands mode I OK walt 0 3 Sec depend on brand model of modem at lt ENTER gt I
13. rver s IP address in case of ISP does not assign DNS automatically Command attisetdns ip address gt lt CR gt Response I OK Example at t isetdns 203 155 33 1 CR I OK Display DNS server s IP address Command at isetdns lt CR gt Response lt DNS SERVER IP ADDRESS gt I OK Example attisetdns CR 203 155 33 1 I OK set up PPP user name Command attisetuser lt username gt lt CR gt Response I OK Example attisetuser David CR I OK Display PPP user name Command at isetuser lt CR gt Response lt USER NAME gt I OK Example attisetuser CR David I OK Set up PPP password Command at isetpass lt password gt lt CR gt Response I OK Example attisetpass David password lt CR gt I OK Display PPP password Command attisetpass CR Response lt PASSWORD gt I OK Example att tisetpass lt CR gt David password I OK HTTP Request Command att ihttp lt url gt lt path gt lt port gt lt space gt lt h gt lt 1 gt lt d gt lt CR gt Response Success I OK lt WEB PAGE CONTENT Not Success I ERROR 2 DNS IP NOT SET If call url domain name instead of IP address Have to initial set a DNS IP address by attisetdns command I ERROR 5 TCP TIMEOUT server is busy I ERROR 0 PPP CLOSED PPP is not established yet must open with attiopen Note Le J4 display all header field 2 e xL display only length f

Download Pdf Manuals

image

Related Search

Related Contents

IGLOO FR832-BLACK Use and Care Manual    Vigo VG6042RBCL42 Instructions / Assembly  Manuale d`uso del Fun Shell Nokia Xpress  Infographie - format : PDF  Acer Aspire 572G-54RD  EM 200  Mode d`emploi Ariane    Inhaltsverzeichnis Einführung Stückliste Spezifikationen  

Copyright © All rights reserved.
Failed to retrieve file