Yet another Ethernet to serial thread

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

Like others some of my crazy clients want to talk to some of my equipment over the other side of the country. :?

So I searched a bit and from this thread

https://www.avrfreaks.net/index.p...

it seems that the Stellaris Serial-to-Ethernet set up may be better than the Microchip type sold by tuxgraphics ??

At the moment all that is required is a basic terminal like input from somewhere in the country via the Internet to send a reset command to my device so that a small file can be send to it and be programmed into the EEPROM. This can presently be done via an RS232 link...just need to extend the range by a few thousand kms. :?

Any previous experience or advice gratefully accepted, I know that some of you have already done this.

Relative security would be desirable, the tuxgraphics module does not seem that secure on it's own?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

for utter simplicity, consider either
1) WizNet 811MJ - IMO better than Microchip's
2) ConnectOne: S-I-M-P-L-E serial port interface to their $59 module that does a zillion and a half high level net functions (mail, FTP, etc) and does so using WiFi. Or another product does wired Ethernet. I've used the WiFi product. Great docs, good support.

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

The WizNet modules are ridiculously cheap!! :) They seem to use SPI rather than UART for user comms??

What about the ConnectOne? They seems to have a UART output?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

You might want to take a look at the Digi ConnectME.

http://www.digi.com/products/emb...

-drt

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

Are all of the mentioned "better" than Lantronix XPort/WiPort? [I guess I was surprised not to see a Lantronix mention in this thread or the other linked thread.]

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

js wrote:
The WizNet modules are ridiculously cheap!! :) They seem to use SPI rather than UART for user comms??

What about the ConnectOne? They seems to have a UART output?

I have written a lot of code for WizNet modules. I've used 8MHz SPI to save I/O pin count. The modules work well, don't crash/lockup. I have 100% my own C code for the AVR side because WizNet's demo code is poop. My code uses AVRx and implements HTTP servers, SMTP client, DHCP client, NIST time client, Dynamic HTML and so on. Under the RTOS. The module's TCP/IP/ARP/ICMP and four socket buffers are super reliable despite their terse documentation and meager to non-existant tech support.

The ConnectOne module - I have one - moves all these high level protocols I listed above on to their chip. It's a big ARM7 crammed with TCP/IP and Ethernet or WiFi, plus all the high level protocols and they have a clever way to do all these protocols with commands on the serial port. Including streaming and FTP and even SSL. Not high speed of course, but most micros don't need high speed for LAN applications. So you write simple commands on your (AVR) talking on a serial port at, say, 115Kbps.

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

Lee,
You beat me to the Lantronix punch!!

I have used these and they work like a charm.

Jim

P.S. Lee how did you get the photo in your signature? I have been trying

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

Lantronix is great if all you need is Ethernet to Serial. Or some simple static HTML. I used a WiPort for one project.

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

Yet another with successful use of a Lantronix interface.

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

Quote:

P.S. Lee how did you get the photo in your signature? I have been trying

The experts say it is easy. ;) I didn't think of it till I saw Sylvain's photo in the signature block, and thought "That looks like an avatar". See
https://www.avrfreaks.net/index.p...

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

Quote:
Lantronix is great if all you need is Ethernet to Serial.
That's probably all my poor old brain may cope with. :(

I'm trying NOT to write any code or do much change to the existing code to my equipment.

Al the intricacies of Virtual Private Network or whatever will be left to others to implement as I would not have an idea.

I expect the client to give me an Ethernet socket where I can plug in a black box with TTL level UART output or just RS232 to talk to my equipment.

The only change I need to do is to provide a remote reboot command so that the module reboots and it can then enter "monitor mode" to access the existing EEPROM download command and a few others.
This is currently achieved by power cycling or where a reset switch is provided by means of the reset switch.

As I said above just a glorified "Hyperterminal" style extension of the UART comms existing now but over the Internet.

I have seen such black boxes for RS485 to Ethernet used by one of my son in law's client to access ligthing control systems. I hope to be able to speak to him later on today to see what he uses.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

So, trying to make some sense of the Lantronix units. The XD1001000-01 seems to be the cheapest at Farnell AU. Any cons agaist this one?

I thought the one I wanted was the XP100200S-03R (XPort SMPL) but that's not available here it seems, but I can get it from Mouser.

Inputs are 5V tolerant so it "should" just work with the addition of a 3.3V regulator???

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

If you want a packaged solution, something like an Advantech ADAM4570.
Moxa also have some little boxes that do much the same.

If security is an issue, then you might want to look a bit deeper.

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

I used an xport3 on a mega1280 at 230kbits right to the rx and tx pins.

Imagecraft compiler user

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

I'll give Lantronix a bump as well. The devices include everything needed in the space of a typical RJ45 jack. We have also successfully used their WiPort devices (prior to the zigbee versions).

The external/enclosed devices would be a perfect solution. Lantronix is on the upper end of cost, but also on quality. A true 'set it and forget it' line of products.

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

I'm still listening... :)

I'll wait until the client comes back with some real answers on how they are going to manage a national network, ie controlling all these things, from their head office.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Lantronix stuff is also sold via soanarplus in Aus.

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

js wrote:
I'll wait until the client comes back with some real answers on how they are going to manage a national network, ie controlling all these things, from their head office.
That is a relatively easy thing to do. I would not sit tight and wait until they have something thought out. Because it is relatively easy to think things out that make it easy in the network but hell on the client side. E.g. they might mutter the magic four letters SNMP. If they do you might be toast. Or they might mutter IPsec tunnel endpoint and L2TP and expect your little device to do it. Not fun.

Stealing Proteus doesn't make you an engineer.

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

I would simply configure any encapsulation at the router level... All your device has to do is support TCP/IP and have some basic service running on some port... Most obvious to me would be a simple TCP daemon with login that takes input commands, buffer them, verify some checksum, and execute. You connect this to a switch or router that does the VPN tunneling itself to the main office.

I would also refrain from having to actually reboot the device over the wire ("remote reset") just to be able to reprogram it. Instead have the office send updates when needed, store them into an external eeprom or something. Have your bootloader self-program from EEPROM automagically if something is in there. Clear EEPROM on next successful bootup. So if a write fails, the next reboot will still see the update in EEPROM and reprogram again. This way if a write fails for some reason they do not need to send someone down to reflash it manually.