4G Capabilities

Last Updated on : 2024-09-12 01:52:59download

This topic describes how to develop 4G capabilities for IP cameras (IPCs) that use the 4G module.

Development guidance

Report capability values

Before initializing tuya_ipc_init_sdk, ensure a right value is assigned to mobile_network_card in TUYA_IPC_ENV_VAR_T.

typedef struct {
    TUYA_IPC_MOBILE_CARD_TYPE card_type;                /// Type of 4G mobile network card
    TUYA_IPC_MOBILE_CARD_VENDOR_CODE vendor_code;       /// Vendor code of 4G mobile network card
} TUYA_IPC_MOBILE_NETWORK_CARD_T;

vendor_code represents the code of the vendor. If you are unsure of it, set it to 0.

Report the ICCID and IMEI

After activating the device and bringing it online, call the following API to report the ICCID and IMEI:

OPERATE_RET tuya_ipc_upload_iccid(CHAR_T *iccid);
OPERATE_RET tuya_ipc_upload_imei(CHAR_T *imei);

FAQs

How do I keep alive a 4G device in low power?

For more information, see Keep-Alive and Wake-Up in Low Power.

How do I pair a 4G device?

It is recommended to scan the QR code to pair a 4G device. For more information, see App Scanning IPC’s QR Code for Activation and Binding.

How do I create and purchase a 4G service plan?

  • On Tuya Developer Platform, create a standard 4G IPC plan. If no standard 4G IPC plan is displayed, contact your Tuya project or account manager to add your account to the allowlist.
  • If you use OEM App, select all-in-one baseline version 5.12 or later. Additionally, contact your Tuya project manager to enable the scan-to-top-up switch for 4G IPCs in the app settings.
  • If the app panel does not have a data top-up page, provide the ICCID number of the data card corresponding to the products from the specific delivery batch for Tuya to add it to the allowlist.
  • If you use OEM App, list data plans on Smart Protect Workstation.
  • For more information, contact your Tuya project or account manager or submit a service ticket.