uhsoctl(1)

uhsoctl1

Connection utility for option based devices

Usage

uhsoctl [-a apn] [-c cid] [-p pin] [-u username] [-k password] [-r path] [-f path] [{-b | -n}] interface

uhsoctl -d interface

uhsoctl -h

Overview

uhsoctl is a small connection utility for Option N.V. devices that are based on Options packet interface and uses proprietary AT_* calls to establish connections. The utility (tries to) configure both default route and name servers (/etc/resolv.conf).

By default uhsoctl detaches from the terminal upon on a successful connection, a few command-line options exists that allows this behavior to be changed.

uhsoctl attempts to find a usable controlling serial port based on the provided network interface. If this fails you might specify a serial port manually.

Options

-a apn

Specify APN to connect to.

-c cid

Specify CID (Context ID) to use, by default CID 1 is used. If an APN has been configured once, it's enough to specify the CID used for further accesses.

-p pin

Specify SIM PIN.

-u username

Specify username.

-k password

Specify username.

-r path

Path to resolv.conf, default /etc/resolv.conf. Use /dev/null to disable updating of name servers.

-f path

Explicitly set the serial port to use as controlling terminal. Might be needed if the automatic detection fails.

-b

Fork into background directly, before a connection has been established.

-n

Never fork into background, run entirely in foreground.

Examples

Connect to “apn.example.com” on interface “uhso0” and use PIN “1234” to enable the SIM card.

uhsoctl -a apn.example.com -p 1234 uhso0

Disconnect from a previously established connection.

uhsoctl -d uhso0

Releases

38 releases since FreeBSD 8.1-RELEASE; the text changed 25 times.

  1. 8.1
  2. 8.2
  3. 8.3
  4. 8.4
  5. 9.0
  6. 9.1
  7. 9.2
  8. 9.3
  9. 10.0
  10. 10.1
  11. 10.2
  12. 10.3
  13. 10.4
  14. 11.0
  15. 11.1
  16. 11.2
  17. 11.3
  18. 11.4
  19. 12.0
  20. 12.1
  21. 12.2
  22. 12.3
  23. 12.4
  24. 13.0–13.1
  25. 13.2
  26. 13.3–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.