Android Things稳定版1.0.0/1.0是否支持树莓派3通过USB 3G/4G网卡联网?
Hey there! Let's break down your question about using a SIM-equipped USB 3G/4G dongle with Raspberry Pi 3 Model B on Android Things 1.0 and 1.0.0 stable:
Core Support Status: Yes, Android Things 1.0 and 1.0.0 stable do natively support connecting Raspberry Pi 3 Model B to the internet via a USB 3G/4G dongle. This works as long as the dongle follows standard Android USB modem specifications and is included in the platform's hardware compatibility list.
Key Setup & Troubleshooting Notes:
- Dongle Compatibility: Stick with mainstream models that are widely supported by regular Android devices (like select Huawei, ZTE, or TP-Link dongles). Android Things inherits Android's USB driver stack, so most standard USB modems work out of the box.
- APN Configuration: After inserting your SIM card, you'll need to set up the correct APN (Access Point Name) to establish a data connection. You can do this via ADB commands, for example:
Alternatively, you can handle this programmatically in your IoT app using theadb shell settings put global apn_settings '{"apn": "your_apn_name", "mcc": "your_mcc", "mnc": "your_mnc", "type": "default"}'TelephonyManagerclass. - Permissions & Checks: Make sure your Android Things app declares the
android.permission.INTERNETandandroid.permission.ACCESS_NETWORK_STATEpermissions. If the connection doesn't activate automatically, useadb shell netcfgto check network interface status, or try unplugging and reinserting the dongle to trigger re-detection.
Advanced Option for Unsupported Dongles: If your specific dongle isn't natively supported, you can develop a custom USB driver and integrate it into the Android Things system image. Keep in mind this requires experience with Android low-level development and kernel modules, so it's a more advanced path.
内容的提问来源于stack exchange,提问作者Koustuv Ganguly

