Re: Lantronix Matchport and the PIC
- From: Alan Nishioka <alan@xxxxxxxxxxxx>
- Date: Thu, 12 Jun 2008 08:22:32 -0700 (PDT)
murdoc wrote:
I am trying to connect the Lantronix Matchport b/g attached to a 18F452 to
the internet. I know it is meant to be used as a server, but it should be
possible. I am having a couple of problems with the design.
It can be used as a server, but I expect most people use it as a
client.
1.) Im trying to connect to www.google.com and trying to get its homepage.
Im using one of the google IPs and setting the Matchport to connect using
active startup (autostart to 64.233.167.99:80) but its not connecting.
Should I be doing something different? Should I instead use the modem mode
which has "connect to IP" commands?
I used the AT modem commands because it was easy.
2.) The new firmware of the matchport says it "Allows the name of a remote
machine to be resolved automatically". Does anyone know how to use this?
Don't know about this; I never use new software. For starters, why
don't you use the IP address, so you don't have any problems with DNS.
3.) Im using the Microchip PIC18F452 and was going to work backwards from
the microchip TCP/IP stack and implement just the HTTP protocol which
routes commands through the serial port. Is there a better way to do this?
I just cant figure out how to use the HTTP protocol on the matchport.
With matchport you don't need (can't use) a TCP/IP stack. You tell it
to connect to a particular address and port. Once you are connected
http is really easy. You basically just have to send an ascii header
in a particular format.
<http://jmarshall.com/easy/http/>
is a good site. It explains the basics and can get you started.
Alan Nishioka
.
- References:
- Lantronix Matchport and the PIC
- From: murdoc
- Lantronix Matchport and the PIC
- Prev by Date: Re: (Slightly OT) Get a cake made to look like a product?
- Next by Date: Re: Adding USB thumb-drive support to existing product
- Previous by thread: Re: Lantronix Matchport and the PIC
- Next by thread: Re: build camera using cmos3088
- Index(es):
Relevant Pages
|
Loading