Documentation
¶
Index ¶
Constants ¶
View Source
const ( QuectelModeSearch = "SEARCH" QuectelModeLimsrv = "LIMSRV" QuectelModeNoconn = "NOCONN" QuectelModeConnect = "CONNECT" )
View Source
const ( RATTypeGSM = "GSM" RATTypeWCDMA = "WCDMA" RATTypeLTE = "LTE" RATTypeCDMAHDR = "CDMAHDR" RATTypeTDSCDMA = "TDSCDMA" )
Variables ¶
Functions ¶
Types ¶
type Client ¶
type Client struct {
CellInfo
// contains filtered or unexported fields
}
func NewCientWithConfig ¶
type Config ¶
type Config struct {
ConfigFilePath string
Verbose bool
Name string `yaml:"name"`
Path string `yaml:"path"`
Interval int `yaml:"interval"`
NewLineCode string `yaml:"newline_code"`
Parity string `yaml:"parity"`
Stopbits int `yaml:"stopbits"`
Baurdrate int `yaml:"baudrate"`
Databits int `yaml:"databits"`
ReadTimeout int `yaml:"read_timeout"`
Forwarder string `yaml:"forwarder"`
}
type Modems map[string]interface{}
type LTECellInfo ¶
type LTECellInfo struct {
Timestamp int64 `json:"timestamp"` // epoch milli sec
RAT string `json:"rat"`
State string `json:"state"`
IsTDD string `json:"is_tdd"`
MCC int `json:"mcc,omitempty"`
MNC int `json:"mnc,omitempty"`
CellID string `json:"cellid,omitempty"`
PCID int `json:"pcid,omitempty"`
EARFCN int `json:"earfcn,omitempty"`
Band int `json:"freq_band_ind,omitempty"`
ULBandwidth int `json:"ul_bandwidth,omitempty"`
DLBandwidth int `json:"dl_bandwidth,omitempty"`
Tac int `json:"tac,omitempty"`
RSRP int `json:"rsrp,omitempty"`
RSRQ int `json:"rsrq,omitempty"`
RSSI int `json:"rssi,omitempty"`
SINR int `json:"sinr,omitempty"`
Srxlev int `json:"srxlev,omitempty"`
}
type WCDMACellInfo ¶
type WCDMACellInfo struct {
Timestamp int64 `json:"timestamp"` // epoch milli sec
RAT string `json:"rat"`
State string `json:"state"`
MCC int `json:"mcc"`
MNC int `json:"mnc"`
LAC string `json:"lac"`
CellID string `json:"cellid"`
UARFCN int `json:"uarfcn"`
PSC int `json:"psc"`
RAC int `json:"rac"`
RSCP int `json:"rscp"`
ECIO int `json:"ecio"`
PhyCh int `json:"phych"`
SF int `json:"sf"`
Slot int `json:"slot"`
SpeechCode int `json:"speech_code"`
ComMod int `json:"com_mod"`
}
TODO: Support 3G
Click to show internal directories.
Click to hide internal directories.