Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add APN settings configuration for 4G #65

Closed
shawaj opened this issue Jun 19, 2021 · 3 comments
Closed

Add APN settings configuration for 4G #65

shawaj opened this issue Jun 19, 2021 · 3 comments
Labels
enhancement New feature or request needs triage

Comments

@shawaj
Copy link
Member

shawaj commented Jun 19, 2021

To make it easier to configure 4g, add APN settings configuration

@shawaj shawaj changed the title Add APN settings configuration settings for 4G Add APN settings configuration for 4G Jun 19, 2021
@vpetersson
Copy link
Contributor

Some more documentation is available here. I don't think we can write to this path from within the container, but I venture to guess that we can communicate with NetworkManger over DBUS instead.

@shawaj
Copy link
Member Author

shawaj commented Jul 15, 2021

https://www.balena.io/docs/reference/OS/network/2.x/#cellular-modem-setup

To set up a cellular connection with your device, just drop the below example configuration into a file in the /resin-boot/system-connections/ directory in the .img or on SD card (if you have it flashed with the OS already) and name it something like cellular. Replace the apn= and number=

[connection]
id=cellular
type=gsm
autoconnect=true

[gsm]
apn=giffgaff.com
number=*99#
password=password
username=giffgaff

[serial]
baud=115200

[ipv4]
method=auto

[ipv6]
addr-gen-mode=stable-privacy
method=auto

Also see https://www.balena.io/docs/reference/OS/network/2.x/#changing-the-network-at-runtime

@shawaj
Copy link
Member Author

shawaj commented Jun 6, 2023

Duplicate of #554

@shawaj shawaj marked this as a duplicate of #554 Jun 6, 2023
@shawaj shawaj closed this as completed Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage
Projects
None yet
Development

No branches or pull requests

3 participants