ADICON Support Forum Applied Digital, Inc.
Page 2 of 3 <123>
Topic Options
#17015 - 01/15/07 04:12 PM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
You want the EPS print server to print (well, send to a printer) data coming from a serial bobcat? No, the EPS1 print server accepts incoming data over an IP connection and then sends the data to either its parallel or serial port. As for printing to a file, it would be possible to do that by writing a custom PC based program that would first establish a connection to the EPS1's serial port and then look for any incoming data that it could then send to a file, etc.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17016 - 01/16/07 09:58 AM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
Quote:

You want the EPS print server to print (well, send to a printer) data coming from a serial bobcat? No, the EPS1 print server accepts incoming data over an IP connection and then sends the data to either its parallel or serial port. As for printing to a file, it would be possible to do that by writing a custom PC based program that would first establish a connection to the EPS1's serial port and then look for any incoming data that it could then send to a file, etc.




Writing to a file or printer would act as sort of a datalogger. Most of my automation is for a Reef tank so ph temp orp and conductivity are monitored by my ocelot using 4-20 ma transmitters. Not necessary but would be a nice feature.

Don

Top
#17017 - 01/16/07 12:42 PM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
A really easy way to log serial data to a file is by using Hyperterminal and capturing to a file ("Transfer" --> "Capture Text"). But you cannot connect to an IP port directly with this so you would still need a Com port redirector if you want to do this with a EPS1 serial port.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17018 - 01/16/07 02:04 PM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
Quote:

A really easy way to log serial data to a file is by using Hyperterminal and capturing to a file ("Transfer" --> "Capture Text"). But you cannot connect to an IP port directly with this so you would still need a Com port redirector if you want to do this with a EPS1 serial port.




I'll save that for another project. I should have my Lantronics print server when I get home tonight. I'll probably have plenty of questions before its up and running. Sure will be nice not having to crawl into the attic.

Thanks for all your help
Don

Top
#17019 - 01/17/07 09:51 AM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
I got the EPS1 it seems to work fine. I was able to connect via Ezwebcon. I didnt play with it to much but I did try to send the command to turn off flow control. It tells me that the port does not have permission. Its wanting usernames and passwords. I tried this through the Ezwebcon telnet. Whats next?

Don

Top
#17020 - 01/17/07 10:20 AM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Have you reset the EPS1 to factory defaults? There is a double DIP switch in one corner of the unit and one of the switches has a "load default" position (or something like that). Set the switch to that position and then power the EPS1 off and back on. Once that is done, slide the switch back to the other position. Now you should be able to connect to the EPS1 with Ezwebcon and configure it.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17021 - 01/17/07 10:31 AM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
I did do set it to factory but did not put it back. I was hoping it would be menu driven like like my router. It looks like you have to send commands through the telnet in the drop down menu??
I just clicked on browse network and it was there at the ip address my router wanted.

Don

Top
#17022 - 01/17/07 10:36 AM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
It's been a while but normally, you start by "adding" a unit to the program. There is a way to scan for units on the network, and also to manually create it my entering it's MAC address in the program. The MAC address is usually printed on a label on the EPS1 and is in the format xx:xx:xx:xx:xx:xx where xx are hex values between 00 and FF. You can then assign it an IP address and it will reboot the EPS1. This can take a bit of time to happen and sometimes you need to exit Ezwebcon and restart it.

Once added, Ezwebcon "knows" is a EPS1 and you can configure it through menus.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17023 - 01/17/07 11:23 AM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
I did see that. I also was not trying to telnet to port 3001 that may be why it was asking for a user name. Since my IP address never changes shouldnt I be able to access this over the internet? If so how would I go about that?

Don

Top
#17024 - 01/17/07 01:27 PM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
It depends what you mean by "over the internet". The IP address of the EPS1 won't change but its on your local (and private) network and is not visible from the Internet. If you meant that your public IP address doesn't change, or changes rarely (because you use a cable or DSL modem and a router), then you could indeed set things up to make it accessible from the Internet. To do that, you would either need to look up and keep track of your router's public IP address, or use a service such as www.no-ip.com. You would also need to set up your router to map a port number from the router's public IP address to port 3001 of the EPS1's IP address on your private network. Look at your router's documentation for how to set this up. This is often called NAT (network address translation). Also be aware that this port will now be vulnerable to hackers and whatever.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17025 - 01/17/07 01:59 PM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
I was looking at the no ip thing. I had to get the new router in order to set up the print server. I pay for a static ip address but my new router supports ddns (has built in client). Would it be better to keep the static or go ddns for free and save a few bucks each month.
The ocelot would be the only thing that this gets used for. I have no desktop pcs just a bunch of laptops.

Don

Top
#17026 - 01/17/07 02:28 PM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Quote:

Would it be better to keep the static or go ddns for free and save a few bucks each month.





A static IP address is the ultimate setup (that we all dream about!) but usually costs too much for the average home user. Its your call really. Why not try a free ddns service for a little while and if it works ok for you, then consider dropping the extra cost of the static IP? Try before you buy...
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17027 - 01/18/07 10:16 AM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
I got it working. The EPS1 configuration was pretty simple and straight forward.
I ended up using Hello device virtual com port. I could not the get the Lantronics redirector to work in xp-pro.
This a great addition for only a buck and 2hr work.
Now I'll try to get it working so that I can use it from my office over the www.

Thank You
Don

Top
#17028 - 01/18/07 11:56 AM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Welcome to the club!
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17029 - 01/24/07 08:55 PM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
Well I guess I need to pick your brain a little more. I'm still trying to get access via the www. I have a home portal dsl modem. I opened uo ports 3001 to 8080. It gives me a public static ip address. I can goto 8080 and it works fine and happens to be the wireless router set-up web application. Now if I try to use the puplic ip along with port 3001 in the port redirector, my assumption would be that Id be able to connect to the ocelot.
Wrong assumption I guess.

Any thoughts would be appreciated.
Don

Top
#17030 - 01/25/07 07:54 AM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Just to get this right: are you mapping your public address's port 8080 to your private network's IP address of the EPS1, port 3001?
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17031 - 01/25/07 10:02 AM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
Quote:

Just to get this right: are you mapping your public address's port 8080 to your private network's IP address of the EPS1, port 3001?




What I did was open all ports to the internet 3001 thru 8080. 8080 works fine, it just brings up my routers set-up. 3001 does nothing.

Don

Top
#17032 - 01/25/07 10:37 AM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
You're missing a piece of the puzzle.

"Opening ports" simply lets a port request through the router or not, ie: like a firewall. What I'm talking about here is NAT (network address translation). Because your internal network uses private IP addresses and several of them, the router cannot possibly guess which internal IP address the outside request is trying to reach. This is why you need to configure NAT to map an external port number to a specific IP address and port number of your internal network. Here is an example of what I mean:

Suppose you have an internal network with 4 servers. They use private addresses 192.168.0.2 through 192.168.0.5. Lets say that the router's private address is 192.168.0.1.

Now you want to set up an ftp server on the machine at 192.168.0.3 so that you can send and receive files from the Internet. You could set up NAT on your router to redirect port 2103 to your internal IP address 192.168.0.3 port 21 (port 21 is the standard ftp service port). This means that from the Internet you could now connect to port 2103 and access your ftp server. Later you could add another ftp server, on 192.168.0.4 this time, by redirecting port 2104 to 192.168.0.4 port 21. and so on. In your case, you want to map an external port (3001 itself should be fine) to the internal IP address you gave to your EPS1 and port 3001. Later you could have a second EPS1 used for something else and map external port 3002 to the new EPS1's IP address and port 3001, etc.

And don't leave all those other router ports open to the outside world! It also looks like it responds to its own built-in server ports (like 8080) from the outside world...don't leave it like that or else anyone can now reconfigure your router! You want that to be accessible only from the inside.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#17033 - 01/25/07 11:56 AM Re: Serial to Ethernet Adapter [Re: Guy Lavoie]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
I gave that a shot. Lynksys just has a gaming and applications tab no NAT. Still no luck. I can ping the port using the router management program over the internet. Could it have something to do with the redirector?

Don

Top
#17034 - 01/25/07 12:24 PM Re: Serial to Ethernet Adapter [Re: Don Wacker]
Don Wacker Offline
journeyman


Registered: 10/30/05
Posts: 59
Also here is another device I'd like make tcp/ip.
The link is for the cable pinout. Could you take a look and see if its doable with the lantronix.
http://www.neptunesys.com/hardwareFAQ.htm

Thanks
Don

Top
Page 2 of 3 <123>


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
2 registered (ken-h, John Vomastic) and 23 anonymous users online.
Recent Posts
SECU16IR Output Connecting To A Xantech Connecting Block
by Guy Lavoie
Today at 06:14 AM
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
Yesterday at 08:34 AM
how to post an icon
by manu
02/03/12 03:40 AM
Command Pair
by kuro
02/01/12 12:49 AM
Does anyone have a copy of the latest TSE?
by sevenzenith1
01/30/12 05:17 AM
Shout Box

Newest Members
seeooo13, feshh, manu, chuck214, Funkhauser
2747 Registered Users
Forum Stats
2747 Members
19 Forums
3837 Topics
22722 Posts

Max Online: 67 @ 08/16/11 03:08 PM
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29