View previous topic :: View next topic |
Author |
Message |
rkumetz
Joined: 23 Jan 2007 Posts: 165 Location: Vermont
|
Posted: Sat Sep 27, 2014 11:11 pm Post subject: Serial over Ethernet |
|
|
Has anyone implemented a serial over ethernet converter using the W5200 or other Wiznet device?
I did a quick search and could not find a thread on the topic. I would like to replace an expensive
Lantronix Xport ($50) with a W5200, Magjack and a bit of software (Hardware < $10)
Thanks!
(BASCOM-AVR version : 2.0.7.7 ) |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Sun Sep 28, 2014 3:14 am Post subject: |
|
|
Hello rkumetz
The lantronix devices are expensive try looking at the VRM04 many more features just google it.
I have implemented TCPIP get & post to serial with my web servers but not the virtual serial port that the VRM04 implements, along with wifi, router and access point.
I have not had time to work with it yet so it would be good to see some code of the avr using the VRM04.
Regards Paul |
|
Back to top |
|
|
Bojan
Joined: 15 Feb 2005 Posts: 83 Location: Slovenia
|
Posted: Sun Sep 28, 2014 10:06 am Post subject: |
|
|
hello Paul,
Quote: | I have implemented TCPIP get & post to serial with my web servers |
do you have any sample for request/response html via serial port
regards
Bojan |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Sun Sep 28, 2014 11:25 am Post subject: |
|
|
Hello Bojan
In the blog section you will find my two web server projects.
I have code that sends data to the serial port as a command or sends text to the serial port entered on a web page.
You can also send a get or post command from a program on a computer with the same result.
What are you trying to do?
Regards Paul |
|
Back to top |
|
|
DJ7DA
Joined: 03 May 2006 Posts: 83 Location: Bavaria
|
Posted: Sun Sep 28, 2014 8:06 pm Post subject: |
|
|
Hello Bojan,
I'm using the WZNet110 module, which is completely self contained and costs around 30 Euro. We have several units operating for more than 1 year now - without any problems.
Good luck
Ernst |
|
Back to top |
|
|
Bojan
Joined: 15 Feb 2005 Posts: 83 Location: Slovenia
|
|
Back to top |
|
|
rkumetz
Joined: 23 Jan 2007 Posts: 165 Location: Vermont
|
Posted: Wed Mar 04, 2015 11:34 pm Post subject: |
|
|
Paulvk wrote: | Hello Bojan
In the blog section you will find my two web server projects.
I have code that sends data to the serial port as a command or sends text to the serial port entered on a web page.
You can also send a get or post command from a program on a computer with the same result.
What are you trying to do?
Regards Paul |
Where do I find the blog section containing those projects? |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Thu Mar 05, 2015 11:12 am Post subject: |
|
|
Hello rkumetz
Do you want simple text sent to the serial port or do you want a remote serial port on your PC
Regards Paul |
|
Back to top |
|
|
Pikczu
Joined: 22 Jan 2006 Posts: 72 Location: Dublin, Ireland
|
Posted: Thu Mar 05, 2015 3:57 pm Post subject: |
|
|
Bojan take a look at polish website there is very good tutorial plus software specially created to configure this small module.
Unfortunately description and all tutorials are only in Polish but software is available in English.
http://atnel.pl/atb-wifi-config.html look for " Kliknij i POBIERZ program "ATB WIFI Config" which means click to download ATB WIFI config
There is very good tutorial available on Youtube https://www.youtube.com/watch?v=rOy-fmZCi2c
But This is only in Polish
Best regards
Pikczu |
|
Back to top |
|
|
rkumetz
Joined: 23 Jan 2007 Posts: 165 Location: Vermont
|
Posted: Thu Mar 05, 2015 4:01 pm Post subject: |
|
|
Paulvk wrote: | Hello rkumetz
Do you want simple text sent to the serial port or do you want a remote serial port on your PC
Regards Paul |
I would like to be able to send and receive data via a TCP socket just like the Xport does.
Right now we use Hyperterm as a user interface with ASCII commands.
Right now we use the Xport and I would like to move to something a bit more versatile so
the plan would be to replace the Xport with a Wiznet part and get it going as a replacement
for the Xport. As time permits I can then implement HTTP, SNMP, etc. I realize that the
Xport can be programmed with their SDK to do all of that but if I am going to put in the effort
I might as well lower my BOM cost while also staying in Bascom instead of getting involved
with a whole new learning curve. |
|
Back to top |
|
|
Pikczu
Joined: 22 Jan 2006 Posts: 72 Location: Dublin, Ireland
|
Posted: Thu Mar 05, 2015 4:20 pm Post subject: |
|
|
rkumetz Lantronix is one of the best available in the market so I'm not sure you will be able to get some think better.
Take a look at TIBBO modules http://tibbo.com/products/modules.html
Should be cheaper then lantronix but I'm not sure can you actually load custom web in to it.
Regards
Pikczu |
|
Back to top |
|
|
rkumetz
Joined: 23 Jan 2007 Posts: 165 Location: Vermont
|
Posted: Thu Mar 05, 2015 4:27 pm Post subject: |
|
|
Pikczu wrote: | rkumetz Lantronix is one of the best available in the market so I'm not sure you will be able to get some think better.
Take a look at TIBBO modules http://tibbo.com/products/modules.html
Should be cheaper then lantronix but I'm not sure can you actually load custom web in to it.
Regards
Pikczu |
Thanks. I don't want to use a module. I would rather do it myself. More flexibility.
We put the Xport on our boards nearly 10 years ago but it is time to get rid of them.
If I have to write a bunch of software to get it to do HTTP and SNMP then it is much
smarter to do it with a $10 Wiznet chip than a $50+ Lantronix device.
The Tibbo devices are programmable but once again the would require software to be
loaded separately and are much more expensive. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Mar 05, 2015 4:41 pm Post subject: |
|
|
i recently added support for w5500. It seems like a great chip. Dont know about the price.
http is already supported, that is, there are samples and for snmp, ask Ben Zijlstra, he knows a lot about it. _________________ Mark |
|
Back to top |
|
|
rkumetz
Joined: 23 Jan 2007 Posts: 165 Location: Vermont
|
Posted: Thu Mar 05, 2015 4:54 pm Post subject: |
|
|
albertsm wrote: | i recently added support for w5500. It seems like a great chip. Dont know about the price.
http is already supported, that is, there are samples and for snmp, ask Ben Zijlstra, he knows a lot about it. |
Had the current crop of Wiznet parts been available and widely supported when we put the Xport device into our
design we probably would not have gone the route we did. If you are exchanging large amounts of data or need
a large number of sockets then the Wiznet parts may not be the answer but if you have a small embedded device
that needs an HTTP page for configuration and simple needs such as SNMP, SNTP, SMTP the Wiznet parts appear
to be an excellent solution. We have another product which uses the Microchip PIC32 parts and we constantly
struggle with their changes to the stack and limited support. A hardware stack is not likely to change unexpectedly! |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Fri Mar 06, 2015 9:33 am Post subject: |
|
|
Hello rkumetz
I never set out to write a serial port to tcpip program I think that you would need the xmega to be able to handle the data flow I only wanted to send some simple text data commands out via the avr serial port to control other devices
I am using one of these http://www.hlktech.net/product_detail.php?ProId=39 to monitor a solar inverter/charger via vpn and the internet from 250km away.
I got this as I was going to write some code to control it with AT commands via its serial port but put it into service while away so I know the fridge is still running as it runs off the system its going great as a virtual serial port.
It could be an AVR hooked to the port and I could be talking to it.
There is also a hlk-m35 that looks interesting designed to be controlled via AT commands mark may find this one interesting and its so small.
I think I may get one to write a bascom set up of its parameters when I get time.
I need to write some modbuss to talk to these inverters so I can use an avr to give it a much more versatile display using a graphical lcd or even a touch screen.
Regards Paul |
|
Back to top |
|
|
|