modem

package module
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gomodem

Modem in Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.0.15

func Run(m IModem, wg *sync.WaitGroup)

Types

type IModem

type IModem interface {
	Format(entry *logrus.Entry) ([]byte, error)
	Init() error
	InitWithLogger(logger *logrus.Logger) error
	ToJson() string
	// contains filtered or unexported methods
}

func NewWithJsonBytes

func NewWithJsonBytes(ctx context.Context, jsonbytes []byte) (IModem, error)

type MState

type MState uint8
const (
	MSTAT_INIT MState = iota
	MSTAT_CHECK_IFACENAME_CHANGE
	MSTAT_QWS_STOP_QUEDTEL
	MSTAT_QWS_START_QUEDTEL
	MSTAT_CHECK_ATDEVPATH_CHANGE
	MSTAT_CLOSE_ATDEV
	MSTAT_OPEN_ATDEV

	MSTAT_NOECHO
	MSTAT_HOTPLUGDETECT
	MSTAT_CHECK_SIMREADY
	MSTAT_CHECK_REGISTRATIONM
	MSTAT_CHECK_IP
	MSTAT_CHECK_GATEWAY
	MSTAT_LOOPING
	MSTAT_SOFTRESET
	MSTAT_HARDRESET
)

type M_qws

type M_qws struct {
	Modem
	BusType string `json:"busType"`
	Quectel string `json:"quectel"`
	// contains filtered or unexported fields
}

func (*M_qws) GoString

func (m *M_qws) GoString() string

func (*M_qws) Init added in v0.0.15

func (m *M_qws) Init() error

func (*M_qws) InitWithLogger added in v0.0.15

func (m *M_qws) InitWithLogger(logger *logrus.Logger) error

func (*M_qws) String

func (m *M_qws) String() string

type M_qws_ep06

type M_qws_ep06 struct {
	M_qws
}

type M_qws_rm500q

type M_qws_rm500q struct {
	M_qws
}

type Modem

type Modem struct {
	CfgJsonBytes  []byte
	Model         string   `json:"model"`
	FindIfaceName string   `json:"findIfaceName"`
	FindATdevPath string   `json:"findATdevPath"`
	Name          string   `json:"name"`
	PingTargets   []string `json:"pingTargets"`
	SimHotplug    bool     `json:"simHotplug"`
	// contains filtered or unexported fields
}

func (*Modem) Format added in v0.0.2

func (m *Modem) Format(entry *logrus.Entry) ([]byte, error)

func (*Modem) GoString

func (m *Modem) GoString() string

func (*Modem) Init added in v0.0.15

func (m *Modem) Init() error

func (*Modem) InitWithLogger added in v0.0.15

func (m *Modem) InitWithLogger(logger *logrus.Logger) error

func (*Modem) String

func (m *Modem) String() string

func (*Modem) ToJson added in v0.0.10

func (m *Modem) ToJson() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址