ADICON Support Forum Applied Digital, Inc.
Page 1 of 4 1234>
Topic Options
#4401 - 11/27/03 04:20 PM Internet Access to Ocelot
Quasar44 Offline
newbie


Registered: 11/26/03
Posts: 2
Loc: Philadelphia
Question - I recently installed an Ocelot in my house, and really like it a lot.

I manage two remote testing labs (in other states), in which I'd like to be able to remotely change the temperature, at will - based on what equipment (if any) may be in the lab.

I was planning to install X-10 controlled thermostats in both labs, and would like to be able to control them via Ocelots (sending X-10 commands).

Because of the type of testing which occurs in the labs, Intel-based PCs cannot be resident in them. Is there an Ethernet front-end (perhaps a serial to e-net converter) that would allow me to (via a VPN connection) run C-Max (via a mapped com port) to change the programs running on an Ocelot at each remote lab?

I am also intending to connect BobCats (to monitor the temp in the labs) remotely.

I was hoping that someone may have already tested this, and could let me know what (if any) solutions may be available to accomplish this.

Thanks.

Top
#4402 - 11/27/03 05:36 PM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
There are a variety of ehternet to serial devices available. These devices, combined with a virtual serial port driver, can give you a "COM" port to physical serial port over an IP link. Some devices that do this are the Tibbo DS100 (http://www.tibbo.com) or the Lantronix device servers (http://www.lantronix.com/products/ds/index.html)

In my own case, I picked up a number of Lantronix EPS1 print servers at $5 apiece on Ebay. They are print servers that have 1 parallel and 1 serial port. They support telnet type connections to raw ports (port 3001 for the serial port). This has allowed me to connect my Ocelot and test Leopard to the network and the PC has virtual COM4 and COM5 ports to provide a link for C-Max. I can do everything C-Max offers through these devices, like load programs, new executive versions, screens, icons, etc. I have never tried a VLAN however.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#4403 - 12/05/03 11:19 AM Re: Internet Access to Ocelot
Quasar44 Offline
newbie


Registered: 11/26/03
Posts: 2
Loc: Philadelphia
Guy-

A follow-up question, if you please.

I got a LanTronix UDS-10 (10-Base-T to DB25F) device server. After flashing firmware, etc., the UDS-10 is functioning, except that my laptop keeps dropping the mapped C-Max serial port (COM8) connection to the Ocelot.

Following a call to LanTronix tech support, they recommended that I get a DB9M to DB25M null-modem cable to interconnect the USD-10 to the Ocelot.

Do you recall if that's the cable type you're using?

Also, that cable is pretty non-standard - I really hate the idea of using gender changers; I can have BlackBox custom make this cable, if nescessary. I just wanted to confirm that that's the config you're using.

If you could let me know, I'd appreciate it.

Thanks.

Top
#4404 - 12/05/03 11:30 AM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
I've never tried a UDS10 (or another device server) so I don't know if its cabling is like the EPS1. In the case of the EPS1, the serial port is an RJ45 jack. I made a serial cable by taking a regular 10baseT patchcord and cutting it in two. Then I wired the 4 center wires to the appropriate pins on a DB9 connector (the two center wires of the RJ45, pins 4 and 5, both go to ground) so that it could go directly into the Ocelot. Another consideration is that you want a clear data path across the link, so be sure to configure the device server for no Xon/Off handshaking and enable passthrough mode. That way, the Xon and Off characters are sent across like any other data. A good test for the data connection is to save your IR codes to disk. This creates a good quantity of binary data traffic and can not crash the controller flash memory since you're only reading data from it.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#4405 - 12/13/03 05:05 PM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
Guy,
What software needs to be running on the PC to make the network traffic appear on a serial port to CMAX or other home automation programs? I have managed to acquire a Lantronix EPS1 and would like to replicate your setup. Running Windows XP Professional.

Thanks,

Sal

Top
#4406 - 12/13/03 05:18 PM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
Guy,
I searched around on the rest of the ADI support site because I remember reading a note you wrote in April 2003, and sure enough it was in the HA Projects forum (I wish we could search across all the forums). I went to the Lantronix site at Lantronix Site for downloading the Redirector. The utility program is now called the Redirector (used to be called the DeviceComm Manager). Just in case anyone else was looking for the software ...

Sal

Top
#4407 - 12/13/03 05:59 PM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
The Lantronix Redirector is one of the programs you can use with Win NT, 2000 and XP. You will also want to get EzWebCon 2.0/1 to configure the print server and upgrade its flash software. Configure the Serial port for 8 bits, 1 stop bit and no parity. You also want no flow control and in the serial port characteristics, all boxes are unchecked excpet "passflow", which allows the Xon/Off characters to pass through like regular data, creating a true bidirectional, raw binary path. You should be able to telnet to the port by connecting to port 3001 at the server's IP address.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#4408 - 12/17/03 05:07 PM Re: Internet Access to Ocelot
ChrisC Offline
newbie


Registered: 01/10/03
Posts: 1
Loc: Pennsylvania, USA
Guy,

Could you please explain which pins on the RJ45 goes to which pins on the DB9? Thank you!

-Chris.

Top
#4409 - 12/17/03 05:40 PM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
Ok. On a RJ45 if you into a jack with the lock tab on top, the pins are numbered 1 to 8 from right to left respectively:

[CODE]looking into a jack (or back of a plug)
_____
_____| |_____
| |
|8 7 6 5 4 3 2 1|
|_______________|[/CODE]You want to connect the 4 center pins to a male DB9 connector that connects directly into an Ocelot like this:

RJ45 ---- DB9

3 --------- 3
6 --------- 2
4,5 ------- 5
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#4410 - 01/01/04 07:28 AM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
Guy,
I am trying to create the connections you described. I bought a crimp-style DB9 Male connector from RadioShack and I'm having difficulty getting the two ground wires to fit into the crimp (novice electronics skills ). Could you please elaborate on how best to do this? I hear there is a wire splice that can do the trick but I dont know where to buy one. Other thought is to solder the two ground wires with a single wire that will run to the crimp point.

I have also found CISCO Console cables up on Ebay, would these work (assuming I had the correct gender adapters)?

Any help much appreciated,

Sal

Top
#4411 - 01/01/04 07:36 AM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
Crimp type connectors can be tricky... Your best bet might be (as you said) to solder the two ground wires together and splice them to a single wire that will then go to the pin. If you do this, make sure you insulate the splice carefully so it doesn'touch the other terminals. Heat shrink tubing works well for this. I don't know anything about Cisco console cables but the two-ground system used in the EPS1 serial connection is quite uncommon and I don;t think you'll find any ready made cables like this.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#4412 - 01/01/04 09:31 AM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
Guy,
I built the cable and tested for continuity. I have set up the redirector for COM3 and specify that it should use 192.168.1.107 (IP for the EPS) and port 3001. Setup XON/XOFF to off for the serial port and set PassFlow to true. When I connect everything up and set CMAX to COM3, it cannot connect to the EPS.

Do you have a configuration cheatsheet that you could post?

Thanks,

Sal

Top
#4413 - 01/01/04 10:28 AM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
Instead of connecting to port 3001 I am now using EPS_xxxxxx_S1 as the port in Redirector. I can now connect to the EPS. CMAX tries to send seven or eight TX but no RX are received and the connection times out. After disconnecting the serial cable and reconnecting the Ocelot to the PC I could not connect either, just TX and no RX. Panic sets in . I rebooted the Ocelot and the PC connection is working fine again. Not sure what is going on between the EPS and the Ocelot (i.e. is the CMAX command even getting out to the Ocelot?).

Sal

Top
#4414 - 01/01/04 10:56 AM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
I swapped the TX and RX on the DB9 and now I can get TX and RX from CMAX but before the firmware version etc can get displayed I lose connection.

I tried using the same cable to connect a W800RF32 X10 RF to serial convertor and ran their test program but got Packet Timing Errors and Unrecognized/Corrupt packet errors with the test program.

So progress is being made, not sure whether I need to connect up the remaining 4 wires on the DB9 side?

Sal

Top
#4415 - 01/01/04 11:15 AM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
No, only pins 2,3 and 5 of the DB9 are used by the Ocelot. In EZWebCon, look at "general server" --> "characteristics" and check the time that serial data will be buffered before being transmitted. Set it to the minimum value (10 milliseconds I think). The best test is to short pins 2 and 3 together on the DB9 and then use the Windows telnet program to connect to it (port 3001 should work, but stop the redirector utility before trying this). You should be able to type anything and see it echoed right back as fast as you type it.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#4416 - 01/01/04 01:31 PM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
I tried shorting pin 2 and 3 and ran telnet to port 3001, and just like you said, everything i typed was repeated. However, even after settingt the buffer time to 10ms and rebooting the server, I kept losing connection with the Ocelot just before the firmware version etc. is loaded and the CPUMAX.EXE program crashes. So, something in the software configuration is not quite correct. Any ideas?

Sal

Top
#4417 - 01/01/04 02:49 PM Re: Internet Access to Ocelot
Salil Athalye Offline
journeyman


Registered: 11/30/03
Posts: 59
Loc: Rochester, NY, USA
Guy,
I got it working. Not sure exactly how .
While debugging the connection I realized the reason that the W800RF32 was not working was because it required 4800 baud and port was set to 9600. After setting up the port at 4800 I was able to get the W800RF32 working, so I ruled out the hardware connection. Next, I set up the port back to 9600 and tried to connect the Ocelot and CMAX and got the application version before it lost connection and CMAX crashed. Went back into EZWebCon and played around with the port settings and this time the Ocelot is talking to CMAX over the Lantronix device and everything is up for over 6 minutes.

I have 5 more of these devices, so I'm off to see if I can connect a 1-wire system to the LAN . Thanks for your help!

Sal

Top
#4418 - 01/01/04 05:07 PM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
Great news! You'll notice that once you get these things configured (and it does take some fiddling) you'll be happy that you made the effort and really enjoy the convenience. I've got 9 of these EPS1 units (with 5 installed) and I have a few more things I want to convert to LAN connectivity. I've even "ethernetized" a few of my own personal microcontroller projects with these. Also, if you are into writing VB code that communicates with serial hardware, you can use the free socketwrench utilities to create IP connections. Fellow forum member Jim Beersman came up with that great find. With that, you can eiliminate the Comm Redirector utility and do things over IP right from your code across the network, integrate with Girder, etc.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#4419 - 01/22/04 07:30 PM Re: Internet Access to Ocelot
TinMan Offline
newbie


Registered: 01/21/04
Posts: 6
After following a couple of threads, I purchased a few of the EPS1 units and after quite a bid of fiddling, I managed to connect to my Ocelot through the EPS1.

My main problems were:

1) Getting the cabling right and not getting things "reversed" when making them.

2) Finally realizing that EVERYTHING had to be set for no Flow control.

I'm using the Lantronix Redirector on Win2K, and it's pretty sweet.

I'm new to the Ocelot and I love these forums!

Top
#4420 - 01/23/04 03:23 AM Re: Internet Access to Ocelot
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 5859
Loc: Montreal, QC, Canada
Welcome aboard! Yes, those EPS1's require some messing with to get configured and as you stated, you want no flow control of any kind in order to get a clean, fully binary path going both ways. This is why you also need to turn on the "passflow" option, to allow the usual Xon and Xoff ASCII characters to be sent across the link as regular data. You have to admit, these little boxes are a great value at the prices used ones go for.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
Page 1 of 4 1234>


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
4 registered (rwh98233, joehatfield, Bent, simmelink) and 7 anonymous users online.
Recent Posts
Distinguishing IR Code inputs from different Zones.
by rwh98233
01/06/09 01:02 PM
Panasonic plasma power on/off
by simmelink
01/06/09 12:59 PM
powered up New SpeakyEasy died
by Gardner
01/06/09 07:45 AM
appdigsupport link is down?
by Deane Johnson
01/05/09 07:53 AM
Another use for a secu-16
by Laz
01/05/09 07:40 AM
Shout Box

Newest Members
rwh98233, Hyper, Gibbon, Dautomator, ak357
2492 Registered Users
Forum Stats
2492 Members
19 Forums
3488 Topics
20722 Posts

Max Online: 58 @ 12/05/07 03:33 PM
January
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 30 31