Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Serial over Ethernet

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
rkumetz

Bascom Member



Joined: 23 Jan 2007
Posts: 165
Location: Vermont

usa.gif
PostPosted: Sat Sep 27, 2014 11:11 pm    Post subject: Serial over Ethernet Reply with quote

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
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Sun Sep 28, 2014 3:14 am    Post subject: Reply with quote

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
View user's profile
Bojan

Bascom Member



Joined: 15 Feb 2005
Posts: 83
Location: Slovenia

slovenia.gif
PostPosted: Sun Sep 28, 2014 10:06 am    Post subject: Reply with quote

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
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Sun Sep 28, 2014 11:25 am    Post subject: Reply with quote

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
View user's profile
DJ7DA

Bascom Member



Joined: 03 May 2006
Posts: 83
Location: Bavaria

germany.gif
PostPosted: Sun Sep 28, 2014 8:06 pm    Post subject: Reply with quote

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
View user's profile
Bojan

Bascom Member



Joined: 15 Feb 2005
Posts: 83
Location: Slovenia

slovenia.gif
PostPosted: Mon Sep 29, 2014 9:37 am    Post subject: Reply with quote

Hello Ernst,

Now I trying to make a code for USR-WIFI232. I have some problems, because i have problem with html code Smile
Module is very small and good for any configuration.

http://en.usr.cn/download/USR-WIFI232-T.pdf
http://www.ebay.com/itm/USR-WIFI232-T-Tiny-Size-Low-Power-Uart-TTL-TO-802-11B-G-N-Low-Price-Wifi-Module-/251594619856?pt=LH_DefaultDomain_0&hash=item3a94353bd0

regards,
Bojan
Back to top
View user's profile
rkumetz

Bascom Member



Joined: 23 Jan 2007
Posts: 165
Location: Vermont

usa.gif
PostPosted: Wed Mar 04, 2015 11:34 pm    Post subject: Reply with quote

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
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Thu Mar 05, 2015 11:12 am    Post subject: Reply with quote

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
View user's profile
Pikczu

Bascom Member



Joined: 22 Jan 2006
Posts: 72
Location: Dublin, Ireland

ireland.gif
PostPosted: Thu Mar 05, 2015 3:57 pm    Post subject: Reply with quote

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
View user's profile
rkumetz

Bascom Member



Joined: 23 Jan 2007
Posts: 165
Location: Vermont

usa.gif
PostPosted: Thu Mar 05, 2015 4:01 pm    Post subject: Reply with quote

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
View user's profile
Pikczu

Bascom Member



Joined: 22 Jan 2006
Posts: 72
Location: Dublin, Ireland

ireland.gif
PostPosted: Thu Mar 05, 2015 4:20 pm    Post subject: Reply with quote

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
View user's profile
rkumetz

Bascom Member



Joined: 23 Jan 2007
Posts: 165
Location: Vermont

usa.gif
PostPosted: Thu Mar 05, 2015 4:27 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Mar 05, 2015 4:41 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
rkumetz

Bascom Member



Joined: 23 Jan 2007
Posts: 165
Location: Vermont

usa.gif
PostPosted: Thu Mar 05, 2015 4:54 pm    Post subject: Reply with quote

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
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Fri Mar 06, 2015 9:33 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum