Here's a short HOW-TO for setting up our CVM-96 IP power meter so that it's visible on the network. Manuals are attached.
Our CVM-96 is plugged in to the top outlet (R172@02-137-22, R172@G1-BA011) in the G1 garage. That outlet is configured to talk only to a device with a MAC address of 00:20:4a:a5:c7:3e. That MAC is the address for the CVM-96 (once we add a wireless router down there, we'll just configure it to spoof that MAC address). That port/MAC has the IP address 172.19.136.55. That IP is associated with the domain name pd1.campus.ece.cmu.local. The CVM-96 doesn't do DHCP, so we need to tell it what its IP address is in order for it to be visible on the network. Here's what I did... - I took the ethernet cable running from the CVM-96 out of the wall socket and plugged it in to my Mac (the Mac does auto-crossover, so no need for a router).
- I had no success with the EDSetup program described in the "CVM96 RTU MANUAL.pdf", so I tried to the other instructions which simply use telnet. See page 45 of the "CVM96 TCP MANUAL.pdf".
- Ran arp to create an entry so I could telnet to the CVM-96. This has to be done as root, so I used sudo:
- BartleyMac:~ chris$ sudo arp -s 172.19.136.55 00:20:4a:a5:c7:3e
- Telnet to the IP at port 1. I have no clue what the purpose of this is:
- BartleyMac:~ chris$ telnet 172.19.136.55 1
- Trying 172.19.136.55...
- telnet: connect to address 172.19.136.55: Connection refused
- telnet: Unable to connect to remote host
- Now telnet to port 9999:
- BartleyMac:~ chris$ telnet 172.19.136.55 9999
- Trying 172.19.136.55...
- Connected to 172.19.136.55.
- Escape character is '^]'.
- Modbus/TCP to RTU Bridge
- MAC address 00204AA5C73E
- Software version 02.2b1 (040728) XPTEX
- Press Enter to go into Setup Mode
- Press ENTER and then enter 1 to change the Network settings. Set the IP address to 172.19.136.55 and then just keep hitting ENTER to accept the defaults for all the other settings. When you're done you should see the main menu, which confirms the IP address change:
- Model: Device Server Plus+! (Firmware Code:XA)
- Modbus/TCP to RTU Bridge Setup
- 1) Network/IP Settings:
- IP Address ................. 172.19.136.55
- Default Gateway ............ --- not set ---
- Netmask .................... --- not set ---
- 2) Serial & Mode Settings:
- Protocol ................... Modbus/RTU,Slave(s) attached
- Serial Interface ........... 9600,8,N,1,RS232
- 3) Modem/Configurable Pin Settings:
- CP1 ...... Not Used
- CP2 ...... Not Used
- CP3 ...... Not Used
- 4) Advanced Modbus Protocol settings:
- Slave Addr/Unit Id Source .. Modbus/TCP header
- Modbus Serial Broadcasts ... Disabled (Id=0 auto-mapped to 1)
- MB/TCP Exception Codes ..... Yes (return 00AH and 00BH)
- Char, Message Timeout ...... 00050msec, 05000msec
- D)efault settings, S)ave, Q)uit without save
- Select Command or parameter set (1..4) to change:
- Type S to save and it'll quit and close the telnet connection.
- Remove the ethernet from your computer and plug it back in to the top port. Now ping it to make sure it's working:
- BartleyMac:~ chris$ ping 172.19.136.55
- PING 172.19.136.55 (172.19.136.55): 56 data bytes
- 64 bytes from 172.19.136.55: icmp_seq=0 ttl=62 time=1.139 ms
- 64 bytes from 172.19.136.55: icmp_seq=1 ttl=62 time=1.371 ms
- 64 bytes from 172.19.136.55: icmp_seq=2 ttl=62 time=1.182 ms
- 64 bytes from 172.19.136.55: icmp_seq=3 ttl=62 time=1.214 ms
- Done!
|
Ċ ď Chris Bartley, Apr 10, 2009 8:45 AM
Ċ ď Chris Bartley, Apr 10, 2009 8:44 AM
|