Documentation ¶
Index ¶
Constants ¶
View Source
const BaudRate = 115200
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Name string Port *serial.Port PortName string Result func(str string) (bool, error) Opt []serial.Option *sync.Mutex }
func (*Device) SetPortName ¶
SetPortName ,default will be /dev/ttyUSB1
type Modem ¶
type Modem interface { //Get Devices info DeviceInfo() (Product, error) //Query Signal strength SignalStrength() ([]HCSQs, error) //What Network provider now? CurrentNetwork() (string, error) //is it register to operator IsRegistered() bool //iS NSA or SA? IsNSA() bool //Ipv4 or ipv6 and it's addr PDPAddr() (net.IP, error) //Dial operator Dial() error /*Pin management*/ //PinLockStatus Query pin lock status PinLockStatus() bool }
Todo: ⬇️ ⬇️ ⬇️
type SysInfoEx ¶
type SysInfoEx struct { SrvStatus int `json:"srv_status"` SrvDomain int `json:"srv_domain"` RoamStatus int `json:"roam_status"` SimState int `json:"sim_state"` //Lock state unsupported now LockState int `json:"lock_state,omitempty"` SysMode int `json:"sysmode"` SysModeName string `json:"sysmode_name"` SubMode int `json:"submode"` SubModeName string `json:"submode_name"` }
Click to show internal directories.
Click to hide internal directories.