mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
New upstream version 0.2.1
This commit is contained in:
@@ -29,13 +29,20 @@ $ ninja -C ../eg25-build
|
|||||||
# ninja -C ../eg25-build install
|
# ninja -C ../eg25-build install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
`eg25-manager` uses device-specific configuration files, named after the
|
||||||
|
device-tree `compatible` field. These files are installed to
|
||||||
|
`/usr/share/eg25-manager`. They can be copied to `/etc/eg25-manager` then
|
||||||
|
modified, that way they won't be overwritten during an upgrade.
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
`eg25-manager` is usually run as a systemd service, but can also be
|
`eg25-manager` is usually run as a systemd service, but can also be
|
||||||
manually started from the command-line (requires root privileges):
|
manually started from the command-line (requires root privileges):
|
||||||
|
|
||||||
```
|
```
|
||||||
# eg25-manager
|
# eg25manager
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
@@ -31,6 +31,7 @@ configure = [
|
|||||||
# match, the command is then executed with value `expect` in
|
# match, the command is then executed with value `expect` in
|
||||||
# order to set the parameter to the configured value (optional)
|
# order to set the parameter to the configured value (optional)
|
||||||
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
||||||
|
{ cmd = "QGMR" },
|
||||||
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
||||||
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
||||||
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
||||||
|
@@ -31,6 +31,7 @@ configure = [
|
|||||||
# match, the command is then executed with value `expect` in
|
# match, the command is then executed with value `expect` in
|
||||||
# order to set the parameter to the configured value (optional)
|
# order to set the parameter to the configured value (optional)
|
||||||
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
||||||
|
{ cmd = "QGMR" },
|
||||||
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
||||||
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
||||||
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
||||||
|
@@ -27,6 +27,7 @@ configure = [
|
|||||||
# match, the command is then executed with value `expect` in
|
# match, the command is then executed with value `expect` in
|
||||||
# order to set the parameter to the configured value (optional)
|
# order to set the parameter to the configured value (optional)
|
||||||
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
# A command can have `expect` OR `value` configured, but it shouldn't have both
|
||||||
|
{ cmd = "QGMR" },
|
||||||
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
{ cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
|
||||||
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
{ cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
|
||||||
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
{ cmd = "QCFG", subcmd = "ims", expect = "1" },
|
||||||
|
8
src/at.c
8
src/at.c
@@ -320,7 +320,7 @@ void at_sequence_configure(struct EG25Manager *manager)
|
|||||||
{
|
{
|
||||||
for (guint i = 0; i < configure_commands->len; i++) {
|
for (guint i = 0; i < configure_commands->len; i++) {
|
||||||
struct AtCommand *cmd = &g_array_index(configure_commands, struct AtCommand, i);
|
struct AtCommand *cmd = &g_array_index(configure_commands, struct AtCommand, i);
|
||||||
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->expected, cmd->value);
|
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->value, cmd->expected);
|
||||||
}
|
}
|
||||||
send_at_command(manager);
|
send_at_command(manager);
|
||||||
}
|
}
|
||||||
@@ -329,7 +329,7 @@ void at_sequence_suspend(struct EG25Manager *manager)
|
|||||||
{
|
{
|
||||||
for (guint i = 0; i < suspend_commands->len; i++) {
|
for (guint i = 0; i < suspend_commands->len; i++) {
|
||||||
struct AtCommand *cmd = &g_array_index(suspend_commands, struct AtCommand, i);
|
struct AtCommand *cmd = &g_array_index(suspend_commands, struct AtCommand, i);
|
||||||
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->expected, cmd->value);
|
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->value, cmd->expected);
|
||||||
}
|
}
|
||||||
send_at_command(manager);
|
send_at_command(manager);
|
||||||
}
|
}
|
||||||
@@ -338,7 +338,7 @@ void at_sequence_resume(struct EG25Manager *manager)
|
|||||||
{
|
{
|
||||||
for (guint i = 0; i < resume_commands->len; i++) {
|
for (guint i = 0; i < resume_commands->len; i++) {
|
||||||
struct AtCommand *cmd = &g_array_index(resume_commands, struct AtCommand, i);
|
struct AtCommand *cmd = &g_array_index(resume_commands, struct AtCommand, i);
|
||||||
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->expected, cmd->value);
|
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->value, cmd->expected);
|
||||||
}
|
}
|
||||||
send_at_command(manager);
|
send_at_command(manager);
|
||||||
}
|
}
|
||||||
@@ -347,7 +347,7 @@ void at_sequence_reset(struct EG25Manager *manager)
|
|||||||
{
|
{
|
||||||
for (guint i = 0; i < reset_commands->len; i++) {
|
for (guint i = 0; i < reset_commands->len; i++) {
|
||||||
struct AtCommand *cmd = &g_array_index(reset_commands, struct AtCommand, i);
|
struct AtCommand *cmd = &g_array_index(reset_commands, struct AtCommand, i);
|
||||||
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->expected, cmd->value);
|
append_at_command(manager, cmd->cmd, cmd->subcmd, cmd->value, cmd->expected);
|
||||||
}
|
}
|
||||||
send_at_command(manager);
|
send_at_command(manager);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user