Ethernet to Uart... Uart to Ethernet

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello to all,

i want your opinion about this..

Lets assume we get a Lantronix X-port module (Serial to Ethernet module)..

so we can connect an ethernet device with a serial protocol..

we now use a GPRS module like GM862 which input is serial (Uart) and encapsulate the data in tcp/ip packets sending over the GPRS network...

and here we are in the other side of the world we receive the data...

can we use them now someway like a local connection from our router?..

how we can make to see the ethernet device from position A to the position B via the GPRS network?

any suggestions please..

thank you very much!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your question is a bit vaigue. Can you eleborate?

If you have TCP/IP stack running on the GPRS module and X-Port, then all you need to do is specify the IP address of the remote module and throw data at it. TCP/IP will sort out how exactly the data gets from one place to anther via the internet and it will pop out at the other end.

I'm not sure how many mobile phone networks provide IP addresses to phones on their network that are visible directly from the internet. I think that most tend to be behind a router and are network address translated. (just think how many mobiles there are out there) This would mean that the GPRS module would need to initiate a connection, and the X-port would need to be directly connected to the internet (not behind a router with NAT) or if it is behind a router (most likely) the router will need to be configured to pass through requests on a certain IP port from the internet to the X-port IP address. ( you could try get your mobile provider to do that same, or give you a IP address that is directly connected to the internet)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have used GPRS module and made a serial connection over the internet... i have open TCP/IP socket between my AVR and my PC....

now i want to go a bit further and add an ethernet to serial module ..

so an ethernet device connect to X-port module... the serial output of the module connect to the GM862 Gprs module...

and my PC from the other side over the internet receive the data via tcp/ip socket connection...

could this work with an X-port module?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Some thing like this?

Ethernet Device <---->LAN <----> Xport <----> GPRS Modem <--z--> Internet <----> PC

I've not used the X-Port so I can't say definatively whether or not it could be connected directly to the GPRS module, but I am sure that you could have an AVR in between the X-Port to act as a translation layer.

If I am right what you are looking to make is similar to this

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes... exactly something like this...

how can i make something like this...

the data coming from the GPRS have an IP and a PORT... how can this connect to the router of another network so to be part of it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't know what type of physical interfaces you have on your GPRS implementation. Xport is certainly a drop in replacement for an rs232 interface assuming proper signal levels and power supply (3.3v, 5v tol i/o) If you sign an NDA from lantronix you can obtain the SDK for the xport, wiport and Dstni controller IC. This would allow you to customize the device beyond that of which the remote configuration allows. Check out the IIM7100A, this device has a hardware IP stack from wiznet, a realtek phy and an atmel 89C51. Not quite a drop in like that lantronix; as it requires magnetics and a RJ-45 socket. But you can modify the hardware if so inclinded. As i'm typing this, i see an add for an ENC28J60 ethernet chip with an SPI interface.
If you are still unsure, note the part number of your GPRS implemention and we may be able to help further.

Steve

The more i see the more i see there is to see.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've done something very simialar for a client using an MEGA128 and the ENC28J60. We didn't use a GRPS module with a stack in it though as we had our own PPP stack.

It was actuly done very simply, I think the BOM was $15, basically was a ethernet to GPRS router as it didn't have an internal TCP stack, just a IP router with NAT. The code actually fit about %33 of a MEGA64 in the end.

I don't think I can realease the software but I can post the hardware if you like.

-M

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use the WI-Port from Lantronix. And this is nothing else than the X-port but wireless.
You can assign the X-port a IP-address and a port for further communication with your network.

Lantronix supplies a tool for that configuration and it's free for download.
And they have some nice documentation for the X-port.