Robert Grønning
2010-Jul-01 13:40 UTC
[Nut-upsuser] HP R3000 XR (BCMXCP) serial connection problem: e7!!! and e2!!!
UPS: HP R3000 XR with HP UPS Management Module What I Want: I just want the UPS to shut down the client called "tor" before the UPS power drains out, I'd prefer to use a direct serial cable instead of network, in case the network doesn't work. I'll manage the UPS trough the ethernet using the built-in HTTP webinterface in the HP UPS Management Module. I've created a DB9-RJ45 cable according to the spec (called "-RJ-45 Serial 1-5 (5-Port)") released by Brian Vo in this forumthread: http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1277983799644+28353475&threadId=1320596 So this is how my cable look like now: DB9-3 <---> RJ45-4 DB9-2 <---> RJ45-5 DB9-5 <---> RJ45-6 This cable is connected between port2 on the HP UPS Management Module, and the onboard DB9 connector on a server running Ubuntu 10.04 and NUT 2.4.3 In the HP UPS Management Module, I've set up a client called "tor" in load1, and assigned serial port2 to it with a shutdown time of 2 minutes. This is my nut configuration in /etc/nut/ups.conf : [aasgaard] driver = bcmxcp port = /dev/ttyS0 This is what happens when i try to start the driver: -----------START----------- robert at tor:~$ sudo upsdrvctl start Attempting to autodect baudrate Communications with UPS lost: Receive error (Requested only mode command): e7!!! Communications with UPS lost: Receive error (Requested only mode command): e2!!! Can't connect to the UPS on port /dev/ttyS0! Driver failed to start (exit status=1) -----------STOP----------- I've also tried replacing this cable with a regular ethernet cable, and the original HP 432734-001 (AF401A) RJ45-DB9 adapter, this is the result I get: -----------START----------- robert at tor:~$ sudo upsdrvctl start Network UPS Tools - UPS driver controller 2.4.3 Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.3) RS-232 communication subdriver 0.17 Attempting to autodect baudrate Can't connect to the UPS on port /dev/ttyS0! Driver failed to start (exit status=1) -----------STOP----------- Can anyone in any way help me toward making this work?
Kjell Claesson
2010-Jul-01 23:04 UTC
[Nut-upsuser] HP R3000 XR (BCMXCP) serial connection problem: e7!!! and e2!!!
Hi Robert,> UPS: HP R3000 XR with HP UPS Management Module > > What I Want: > I just want the UPS to shut down the client called "tor" before the UPS > power drains out, I'd prefer to use a direct serial cable instead of > network, in case the network doesn't work. > > I'll manage the UPS trough the ethernet using the built-in HTTP > webinterface in the HP UPS Management Module. > > I've created a DB9-RJ45 cable according to the spec (called "-RJ-45 Serial > 1-5 (5-Port)") released by Brian Vo > in this forumthread: > http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=10944762 > 6+1277983799644+28353475&threadId=1320596 > > So this is how my cable look like now: > DB9-3 <---> RJ45-4 > DB9-2 <---> RJ45-5 > DB9-5 <---> RJ45-6 >This does not look right. The pin 4 on the RJ45 is output ( o/p ) and should be connected to the rx pin on the DB9 that is number 2. So it looks like you have to switch rx tx data.> This cable is connected between port2 on the HP UPS Management Module, and > the onboard DB9 connector on a server running Ubuntu 10.04 and NUT 2.4.3 > > In the HP UPS Management Module, I've set up a client called "tor" in > load1, and assigned serial port2 to it with a shutdown time of 2 minutes. > > This is my nut configuration in /etc/nut/ups.conf : > [aasgaard] > driver = bcmxcp > port = /dev/ttyS0This is OK. But when it has given you the speed it connect with, you can add the baud_rate to the config also for a quicker startup.> > This is what happens when i try to start the driver: > -----------START----------- > robert at tor:~$ sudo upsdrvctl start > Attempting to autodect baudrateThis you get because of the missing baud_rate> Communications with UPS lost: Receive error (Requested only mode > command): e7!!!In the init it sends a 'Requested only mode' command to the ups. This is not handled by the ups. No respons from the ups. The command is 0xA0 so this is not communicating at all.> > Communications with UPS lost: Receive error (Requested only mode > command): e2!!! >Same as before.> Can't connect to the UPS on port /dev/ttyS0!After it has checked all the baudrates it can not connect.> > Driver failed to start (exit status=1) > -----------STOP----------- > > I've also tried replacing this cable with a regular ethernet cable, and > the original HP 432734-001 (AF401A) RJ45-DB9 adapter, this is the result I > get: > -----------START----------- > robert at tor:~$ sudo upsdrvctl start > Network UPS Tools - UPS driver controller 2.4.3 > Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.3) > RS-232 communication subdriver 0.17 > Attempting to autodect baudrate > Can't connect to the UPS on port /dev/ttyS0! > > Driver failed to start (exit status=1) > -----------STOP----------- > > Can anyone in any way help me toward making this work?Try to switch the rx/tx line. Or messure the signal with a voltmeter. Regards Kjell Claesson