TODOPIC
Microcontroladores PIC => Todo en microcontroladores PIC => Mensaje iniciado por: kuropatula en 23 de Febrero de 2012, 13:25:51
-
Hola,
Tal cual dice el título, necesito una placa o sistema embebido que me permita, independientemente del router hacer un dynimic DNS. Esto es poder acceder a la IP de la placa desde cualquier parte cuando se cuenta con una IP dinámica.
Otras opciones que yo no haya tenido en cuenta, menos configurar el router o tener una PC cerca, también son bienvenidas.
Alguien sabe qué placa debo comprar? Yo utilicé por muchos años RCM3700 de Rabbit Semiconductor, pero cualquier otra me va servir. Si no me equivoco, el software que se instala en la PC envía una solicitud a algún servidor del estilo de DynDNS. Creo que se podría enviar la misma petición, pero no sé cómo. Espero su ayuda :)
Gracias y saludos!
-
Hoy hay routers que hacen login a DYNDNS o el sistema que elijas, pero en realidad no se que servicio utilizan para hacerlo.
El tema es muy interesante, por lo menos para mi, que hoy acudo al NAT del router para abrir el camino a mi servidor Web basado en PIC.
Uso los servicios de DYN DNS y de NoIP también.
-
Hola! Gracias por la respuesta.
Supongo el soft que está en la PC para DynDNS, NoIP o algún otro, envían un paquete por un socket a una IP dada con la consulta. Si supiera qué es lo que se envía se puede conectar una Rabbit, por ejemplo, directamente a cualquier router sin necesidad de que este tenga que soportar DynDNS. De esta forma, a un cliente le podemos instalar el HW independientemente del modelo del router.
En fin... creo que comenté de nuevo lo que ya había escrito :P Si alguien sabe qué es lo que se envía, o por lo menos cómo averiguarlo es bienvenido :)
Saludos
-
Hola, me parece que tenes que implementar esto:
http://dyn.com/support/developers/api/perform-update/
Saludos !
-
Hola.
La "PIC32 Ethernet Starter Kit" creo que se ajusta a tus necesidades... o cualquier placa de desarrollo que use PIC32+Ethernet, PIC24+Ethernet, PIC18+Ethernet.
Porque lo que necesitas es la correcta configuración del Stack.
Saludos
-
Hola, me parece que tenes que implementar esto:
http://dyn.com/support/developers/api/perform-update/
Saludos !
Creo que ganaste el premio a la mejor respuesta Richi!! :-/ :-/ :-/ :-/
When a change in IP address is found or a user alters any of their settings, the client should perform an update. All updates are sent using a well-formed HTTP request. Dyn will pass back a return code that the client needs to parse. The update API is a REST-based system.
If you have questions about the syntax, please contact Dyn support.
The HTTP Request
Hostname: members.dyndns.org
HTTP ports: 80, 8245
HTTPS port: 443
Updates can be performed over HTTP or SSL-encrypted HTTPS (preferred).
All requests should be sent to members.dyndns.org. Hard coding the IP address is not acceptable as the IP address may change.
The update interface listens on ports 80 and 8245 for HTTP, and 443 for HTTPS. Port 8245 may be used to bypass transparent HTTP proxies. It is not necessary to open any incoming ports (or allow incoming ICMP) for updating.
All clients must send a well-formed user agent that includes company name, model number, and software build revision. An example would be: Mellenium Inc. - Router 25001 - 1.1
Examples
These examples are provided only as samples. See RFC 2616 for information about the HTTP Protocol.
Authentication in URL
For web-browsers or utility programs (fetch, curl, lwp-request) that can parse authentication section in URL.
http://username:password@members.dyndns.org/nic/update?hostname=yourhostname&myip=ipaddress&wildcard=NOCHG
Raw HTTP GET Request
Actual HTTP request should look like following fragment. Note that there is the bare minimum set of headers. Request should be followed by sending an empty line.
Fragment base-64-authorization should be represented by Base 64 encoded username:password string.
GET /nic/update?hostname=yourhostname&myip=ipaddress&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG HTTP/1.0
Host: members.dyndns.org
Authorization: Basic base-64-authorization
User-Agent: Company - Device - Version Number
Please note that although POST requests are permitted and will be processed, we don’t encourage developers to use them. We might stop processing of POST requests at any time, without notice.
Update Parameter
Field Description Additional Info
hostname
Comma separated list of hostnames that you wish to update (up to 20 hostnames per request). This is a required field.
Each hostname specified will be updated with the same information, and the return codes will be given one per line, in the same order as given.
Example:
hostname=test.dyndns.org,customtest.dyndns.org
myip
IP address to set for the update.
If this parameter is not specified, the best IP address the server can determine will be used (some proxy configurations pass the IP in a header, and that is detected by the server). If the IP address passed to the system is not properly formed, it will be ignored and the system’s best guess will be used.
wildcard
Parameter enables or disables wildcards for this host. (Deprecated: Flag is currently ignored)
ON should be used to enable wildcard. NOCHG value will keep current wildcard settings. Any other value will disable wildcard for hosts in update.
Parameter is ignored for Dyn Standard DNS hosts.
mx
Specifies an eMail eXchanger for use with the hostname being modified. (Deprecated: Flag is currently ignored)
The specified MX must resolve to an IP address, or it will be ignored. Specifying an MX of NOCHG will cause the existing MX setting to be preserved in whatever state it was previously updated via a client or the Dyn website.
Parameter is ignored for Dyn Standard DNS hosts.
backmx
Requests the MX in the previous parameter to be set up as a backup MX by listing the host itself as an MX with a lower preference value. (Deprecated: Flag is currently ignored)
YES activates preferred MX record pointed to hostname itself, NOCHG keeps the previous value, any other value is considered as NO and deactivates the corresponding DNS record.
Parameter is ignored for situations when no MX value is set for host and for Dyn Standard DNS hosts.
offline
Sets the hostname to offline mode.
YES activates feature and turns on offline redirect for hostname (if set). NOCHG could be used to keep current state.
Parameter is ignored for static DNS hosts.
This feature is only available to credited users. The !donatorreturn will be used if the account is not credited.
-
Richi!! DEmasiado acertada tu respuesta!! Muchas gracias!
Ahora voy a intentar hacer esto con Rabbit y publico los resultados.
Gracias a todos!
Saludos :)
-
Yo probé el ejemplo con el navegador y lo hace perfecto !!
Si lo logras con Rabbit, por favor postea el trozo de código que usaste, para tenerlo como guia...
Lo mio es con PIC, pero en C se puede adaptar muy fácilmente de una plataforma a otra.
-
Estamos para ayudar !
Saludos !
-
Y que ayuda!! ((:-)) ((:-)) ((:-)) ((:-))
Yo debo haber entrado unas 500 veces a la pagina de DYN DNS, y jamas me percate de esta información !!
-
Te cuento que no conocía exactamente como era el protocolo de DynDNS, pero como hace estuve puteando bastante para que un micro de 8 bits puede procesar un request http del geocoder del google maps lo busque por ese lado.
Saludos !
-
Bien!
Esto lo voy a hacer en los ratos libres en el trabajo, espero que no me demore mucho. También en casa luego del trabajo, por lo que no prometo ser óptimo con los tiempos.
Saludos