{"id":155,"date":"2007-10-01T21:37:44","date_gmt":"2007-10-02T04:37:44","guid":{"rendered":"http:\/\/blog.oliverhansen.com\/index.php\/2007\/10\/01\/what-device-is-my-serial-port-in-freebsd\/"},"modified":"2007-11-07T08:48:17","modified_gmt":"2007-11-07T15:48:17","slug":"what-device-is-my-serial-port-in-freebsd","status":"publish","type":"post","link":"https:\/\/blog.oliverhansen.com\/index.php\/2007\/10\/01\/what-device-is-my-serial-port-in-freebsd\/","title":{"rendered":"What Device Is My Serial Port In FreeBSD?"},"content":{"rendered":"
Wow. I thought it would be easy to configure my new (to me) APC SmartUPS to be connected to my FreeBSD server<\/a> on the serial port. The install of apcupsd <\/a>went quite well but when it came time to set the device to be used in the config file I couldn’t figure out which device it was! I looked at the output of dmesg <\/a>to see all the devices that were found on startup. I saw sio0 <\/strong>which mentioned a COM port so I thought maybe that would be it. I tried using \/dev\/sio0<\/strong> but that didn’t work so I even restarted the computer to check the BIOS and made sure the serial port was enabled. It was. Another restart had me looking at sio0 <\/strong>again. It made sense to me as well for S<\/strong>erial I<\/strong>nput\/O<\/strong>utput but still didn’t work.<\/p>\n Ok, to Google I went and finally found this little gem from the freebsd mailing list<\/a>. The thread mentioned the same message I was getting <\/p>\n sio0: configured irq 4 not in bitmap of probed irqs 0 about sio0 <\/strong>but the person asking seemed to know something I didn’t. They knew that FreeBSD normally uses cuad0 <\/strong>for the serial device. I have no idea why or how that came about. Can’t even figure out how that naming convention came about but I’m sure there are some out there who know. Well, now I know — I put \/dev\/cuad0<\/strong> in the config file and now my APC UPS is talking to my FreeBSD box! I might write about the details later but apcupsd <\/a>is pretty cool because it will allow my box to find the percentage of battery left on the UPS when it is running on batteries and when it gets to a certain percent the computer can shut itself off properly before losing power!<\/p>\n Google to the rescue again!<\/p>","protected":false},"excerpt":{"rendered":" Wow. I thought it would be easy to configure my new (to me) APC SmartUPS to be connected to my FreeBSD server on the serial port. The install of apcupsd went quite well but when it came time to set the device to be used in the config file I couldn’t figure out which device […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,5,10],"tags":[79,81,68,73,80],"_links":{"self":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/posts\/155"}],"collection":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.oliverhansen.com\/index.php\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\nsio0: port may not be enabled
\nsio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0\n<\/p><\/blockquote>\n