BASIC PARA SEMPRE
       Home
       Modem GSM
       BlueTOOTH
       802.11
       Quick AVR64
       voIP
       ARM9 LINUX
       ARMBasic
       UnetEthernet
       Unetserial
       BABuino
       ARM
       VGA_PS2
 
       Contato
       Webmaster




uNetSerial

Description

The uNetSerial is coprocessor that is connected between the microcontroller and the Internet. The uNetSerial connects to Internet with dialup modem or via the wireless phone infrastructure (i.e. CDMA, CDPD, GPRS, GSM, PIAFS, TDMA and other protocols). uNetSerial works with the modems and telephones GPRS of the Siemens, the WAVECOM, SONY, the ERICSON, the NOKIA and the others. UnetSerial can negotiate connection PPP using standard PAP or the method of SCRIPT authentication. It negotiates name-address of the server and supports the complete resolution. Protocols of the Internet and the parameters of the configuration are stored in the FLASH and memory EEPROM and can be updated. uNetSerial makes the complexity of TCP/IP protocol be simple. The interface with IR command enables protocols as PPP, DNS, ICMP, UDP, TCP, SMTP, POP and HTTP with the simple text chains. These IR commands supply a long-range functionality (multiple connections TCP) in the serial port. The IR commands are flexible and efficient, any protocol of the Internet can be put in execution. Take control of complexity of TCP/IP protocol with simple commands.

Features

Robust PPP and PAP authentication and auto negotiation of DNS addresses
PING
Automatic resolution name (DNS)
Configuration of the parameter (timeout, speed) safe in non-volatile memory
Send and receive UDP packets
Connection of 2 TCP sockets
The serial port fully controlled with the halting??? auto negotiation? of baudrate
Firmware that can be updated
Few external components (crystal of 7.3728Mhz, 4 condensers, 1 electrical resistance and a regulator 3,3 or 5volt)

Circuit Diagram

Typical Commands

COMMAND ANSWER FUNCTION
IRS6=200.138.196.2 [CR] 200.138.196.2 DEFINE DNS SERVER
IRC login,senha [CR] CONNECT, FAIL PPP ou AUTH FAIL PPP DEFINE LOGIN E PASSWORD AND TRY AUTHENTICATION
IRT0 www.nchip.com:80 [CR] CONNECT OPEN HTTP CONEXION
IR [CR] OK SEE IF uNetSerial IS PRESENT
IRX0 [CR] OK CLOSE THE SOCKET 0
IRD [CR] OK CLOSE THE PPP CONEXION
GET http://www.pp.com/parm.par [crtl-j] PAGE CONTENTS HTTP PROTOCOL

[crtl-j] = ENTER+LINE FEED (EMULATOR) [CR]=ENTER

Reading an e-mail

irt0 pop.bol.com.br:110 [CR]
OK
+OK POP server ready.
USER compiladorbasic [CR]
+OK Password required for compiladorbasic@bol.com.br [CR]
PASS mcs8031 [CR]
+OK Mailbox ready
STAT [CR]
+OK 61 251834
RETR 1 [CR]
250 ok
+OK Message follows
here the e-mail text.........
.........
SOCKET CLOSED

Environment Work

Macro Diagram of circuit (with modem)

Click to enlarge the image

uNetSerial Simulator

Before buy the uNetSerial, you can evaluate it by using the uNetSerial Emulator software. How it works? This software run on MS Windows and simulates the operation of a uNetSerial Module. The uNetSerial Emulator will connect via PPP and a serial port and allow you to try all the functions of the uNetSerial module.It opens a communication with one modulates virtual TCP/IP, anytime ,if you type something and it answers. In the same time, it opens the serial channel of your computer (in which the modem must be installed). Soon, send commands IR that the modem uNetSerial will answer. Download here (includes Datasheet). In order to execute the program, type ppp 19200 1, if modem is in the com1. Type, for example, IR [ CR ] and the emulator will answer with OK if the module TCP/IP is present. Any different IR command (initials), it will be directed directly to the MODEM, for example, type AT [CR] (HAYES command) and the modem will answer with the OK. See a practical experiment:

  • irs6=200.138.196.2 [CR]                        [ANSWER 200.138.196.2]

  • IR [CR]                                                   [ANSWER OK]

  • AT [CR]                                                  [ANSWER OK]

  • ATDT XXXXXXX [CR]                         [ANSWER CONNECT]

  • IRC XXXX,XXXX [CR]                         [ANSWER CONNECT]

  • IRT0 www.furb.br:80 [CR]   [ANSWER OK]
  • GET  http://www.furb.br/index.html [crtl-j] [ANSWER PÁGINA]

  • IRD [CR]                                                 [ANSWER OK]

  • +++                                                        [ANSWER OK]

  • ATH1 [CR]                                              [ANSWER OK]

For more details, see the datasheet

Using the terminal emulator

If you acquired uNetSerial, there are 2 ways to test it, using the serial channel of your microcontroller or of your personal computer. Please, observe, the signals of the module are TTL, good to used to use with the microcontroller, connect TX and RX direct; but, if are to be used with your the personal computer, you must to use TTL to CMOS converter (MAXIM 232).

BASIC (DIGIMOK and MELABS) and C SAMPLES (CCS)

Chip Module

Lot production

For lot production, acquire the integrated circuit only.

Conexion con celulares GSM/GPRS

TCP/IP connection to GSM/GPRS is possible?

"I am actually pleased to discuss about the problem via email. However, there are many people email me and ask me quite the same question for the problem they are having...
It might be good to post here for all to know.

Connecting to GPRS network, your mobile operator acts like ISP, use PPP.

1. APN (Access Point Name). This is an information provided by your mobile operator in your country. For example, "www.yourapn.com". This could be any string upon your mobile opertator. You can find this out from you mobile operator.

2. Dial number. To dial to normal ISP your send "ATDxxxxxxx" (x represents your ISP's telephone number). But with GPRS network, the dial string is a little different from normal ISPs.
Ex. "ATD*99***1#" is dial string to GPRS network. Check out the exact dial string from your mobile operator. It may be different from my example.

3. Authentication requirment. In my country, the mobile operators don't require the authentication to logon to GPRS network due to SIM card identifies the SIM's owner and mobile operator's network knows this automatically from their database.
However,in some counteries may require the authentication before GPRS access allowed. Check this out from mobile operator whether your mobile operator require it or not.

4. Type of authentication PAP or CHAP. If the authentication is required, you need to add the the authentication process in your code.

Few things keep in your mind. If you have SIMs card which are able to make normal voice call, it doesn't mean that those all your SIMs are allowed to access GPRS network. This can be done (enable/disable GPRS network access) by your mobile operator and get them enanbled first.
If your SIMs are disable GPRS network access you will be able to connect to mobile operator as normal but you will fail when you are trying to establish PPP connection,this will cause you get no IP address from mobile operartor.

If GPRS network is granted then you will be ,in most case, assigned an IP address from your mobile operator dynamically. Once PPP connection is successfully established, you are ready to creat TCP/IP session via PPP connection.

PPP connection is like a pipeline linking you from your location to your mobile opeartor through RF network".

Here are parameters that you have to set up before you dial.

AT+CGDCONT=1, "ip", "apn"

Ex-: AT+CGDCONT=1, "IP", "claro.com.br"


E-MAIL

Contact me:



Home   | Imprimir   |   Fechar Janela