UPS connection through serial

Status
Not open for further replies.

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
  • FreeNAS 9.3 STABLE
  • Supermicro X10SLM-F-O uATX
  • Intel G3420
  • Kingston 16GB (8GB x 2) ECC w/Hynix DRAM, 1333MHz, 1.5V - KVR1333D3E9SK2/16G
  • (4) WD Red 2TB in RaidZ2
  • (2) Supermicro SATA DOM boot drive in mirror - SSD-DM016-PHI
I finally took the time to scrounge up a serial cable to connect my X10SLM-F-O to my Cyber Power 1000PFCLCD UPS. I don't see Serial Cable listed in the Port dropdown list. Is this because the driver needs to be set to something else other than Cyber Power Systems ups 2 CP1000PFCLCD USB (usbhid-ups)? And because you will ask - no, I NEVER had any luck getting FreeNAS to communicate over USB other than the console messages showing that the USB was connected or disconnected. What do I need to do to get the serial connection to be recognized?
 
Last edited:

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Serial devices for UPS are typically /dev/cuadX in FreeNAS/BSD (replacing X with the port, 0=COM1, 1=COM2, etc)
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
Thank you! Okay, I got /dev/cuau0 set but I'm still getting:
Code:
Mar 30 22:36:24 freenasserver notifier: nut not running? (check /var/db/nut/upsd.pid).
Mar 30 22:36:24 freenasserver notifier: nut_upsmon not running? (check /var/db/nut/upsmon.pid).
Mar 30 22:36:24 freenasserver notifier: nut_upslog not running? (check /var/db/nut/upslog.pid).
Mar 30 22:36:24 freenasserver notifier: Will not 'restart' nut because nut_enable is NO.
Mar 30 22:36:24 freenasserver notifier: Will not 'restart' nut_upsmon because nut_upsmon_enable is NO.
Mar 30 22:36:24 freenasserver notifier: Will not 'restart' nut_upslog because nut_upslog_enable is NO.

 
Last edited:

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
I tried all 3 genericups 7 but am still getting the nut errors. Surely I don't need to manually modify some config file and that this should be happening for me through the GUI.
 

ChriZ

Patron
Joined
Mar 9, 2015
Messages
271
I am not 100/% sure, but in the past I remember that although the port is reported as /dev/cuau0, I had to use /dev/ttyu0.
You could give this a try....
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
I am not 100/% sure, but in the past I remember that although the port is reported as /dev/cuau0, I had to use /dev/ttyu0.
You could give this a try....
/dev/cuauX devices are dial-out, as in FreeBSD making the connection. /dev/ttydX devices are dial-in, the connection is being made to FreeBSD from another device. It's very odd if you had to use a dial-in device to make the connection.

https://www.freebsd.org/doc/en/books/faq/serial.html#idp64693456
 
Status
Not open for further replies.
Top