From 8358b45eb153ba4cee4d70756d7b71568e718d09 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 18 Sep 2025 16:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=AD=E8=8B=B1=E6=96=87SM?= =?UTF-8?q?S=E6=96=87=E6=A1=A3,=E6=B7=BB=E5=8A=A0BG95=E5=AF=B9=E9=95=BF?= =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E7=9A=84=E6=94=AF=E6=8C=81=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9B=B8=E5=85=B3API=E6=96=87=E6=A1=A3=E4=B8=AD?= =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E5=AD=98=E5=82=A8=E4=BD=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/iotlib/sms.md | 14 +++++--------- zh/iotlib/sms.md | 12 +++++------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/en/iotlib/sms.md b/en/iotlib/sms.md index bd84496..0fc6b5c 100644 --- a/en/iotlib/sms.md +++ b/en/iotlib/sms.md @@ -37,7 +37,7 @@ Sends a text message (Empty messages are not supported). > > EG912N/EG915N/EC200A series SMS content UCS2 encoding supports up to 420 bytes, and GSM encoding supports up to 960 bytes in length. > -> The EC200U/EG912U/EG915U series SMS content supports UCS2 encoding up to 280 bytes, while GSM encoding supports a maximum SMS length of 640 bytes. +> The EC200U/EG912U/EG915U/BG95 series SMS content supports UCS2 encoding up to 280 bytes, while GSM encoding supports a maximum SMS length of 640 bytes. > > The UCS2 encoding of other series of SMS content supports a maximum of 70 bytes, while the GSM encoding supports a maximum of 160 bytes of SMS length. @@ -87,7 +87,7 @@ Sends an SMS message in PDU mode (Empty messages are not supported). > > > EG912N/EG915N/EC200A series SMS content UCS2 encoding supports up to 420 bytes, and GSM encoding supports up to 960 bytes in length. > > -> > The EC200U/EG912U/EG915U series SMS content supports UCS2 encoding up to 280 bytes, while GSM encoding supports a maximum SMS length of 640 bytes. +> > The EC200U/EG912U/EG915U/BG95 series SMS content supports UCS2 encoding up to 280 bytes, while GSM encoding supports a maximum SMS length of 640 bytes. > > > > The UCS2 encoding of other series of SMS content supports a maximum of 70 bytes, while the GSM encoding supports a maximum of 160 bytes of SMS length. > @@ -180,11 +180,7 @@ Sets SMS message storage location. -> The default SMS storage location of different modules varies. You can set the default SMS storage location based on your requirements. -> -> EG912N/EG915N/EC200A series module must set mem2 and mem3 at the same time when changing the storage location of the received message. -> -> EC200U/EG912U/EG915U series module only needs to set mem3. +> When changing the SMS storage location, ensure the contents of `mem1`, `mem2`, and `mem3` are consistent, all set to either `SM` or `ME`. @@ -225,10 +221,10 @@ A tuple`([loc1, current_nums, max_nums],[loc2, current_nums, max_nums],[loc3, cu ```python >>> sms.getSaveLoc() (['SM', 2, 50], ['SM', 2, 50], ['SM', 2, 50]) ->>> sms.setSaveLoc('SM','ME','MT') +>>> sms.setSaveLoc('ME','ME','ME') 0 >>> sms.getSaveLoc() -(['SM', 2, 50], ['ME', 14, 180], ['MT', 2, 50]) +(['ME', 14, 180], ['ME', 14, 180], ['ME', 14, 180]) ``` diff --git a/zh/iotlib/sms.md b/zh/iotlib/sms.md index 33fde98..b307a6e 100644 --- a/zh/iotlib/sms.md +++ b/zh/iotlib/sms.md @@ -39,7 +39,7 @@ sms.sendTextMsg(phoneNumber, msg, codeMode) > > EC600N/EG912N/EG915N/EC200A系列短信内容UCS2编码最多支持420字节,GSM编码最多支持960个字节长度。 > -> EC200U/EC600U/EG912U/EG915U系列短信内容UCS2编码最多支持280个字节,GSM编码最多支持640个字节的短信长度。 +> EC200U/EC600U/EG912U/EG915U/BG95系列短信内容UCS2编码最多支持280个字节,GSM编码最多支持640个字节的短信长度。 > > 其余系列短信内容UCS2编码最多支持70个字节,GSM编码最多支持160个字节的短信长度。 @@ -85,7 +85,7 @@ sms.sendPduMsg(phoneNumber, msg, codeMode) > > EC600N/EG912N/EG915N/EC200A系列短信内容UCS2编码最多支持420字节,GSM编码最多支持960个字节长度。 > -> EC200U/EC600U/EG912U/EG915U系列短信内容UCS2编码最多支持280个字节,GSM编码最多支持640个字节的短信长度。 +> EC200U/EC600U/EG912U/EG915U/BG95系列短信内容UCS2编码最多支持280个字节,GSM编码最多支持640个字节的短信长度。 > > 其余系列短信内容UCS2编码最多支持70个字节,GSM编码最多支持160个字节的短信长度。 @@ -176,9 +176,7 @@ sms.setSaveLoc(mem1, mem2, mem3) -> 不同系列短信默认存储空间有差异,用户根据自己的需求进行设置。 -> -> EC600N/EG912N/EG915N/EC800M/EG810M/EC200A系列如果要改变接收消息的存储位置,需要同时设定mem2 & mem3。EC200U/EC600U/EG912U/EG915U/EC600G/EC800G系列只需设定mem3即可。 +> 更改短信存储位置时,请保持`mem1`、`mem2`、`mem3`的内容统一,均为`SM`或`ME`。 @@ -219,10 +217,10 @@ sms.getSaveLoc() ```python >>> sms.getSaveLoc() (['SM', 2, 50], ['SM', 2, 50], ['SM', 2, 50]) ->>> sms.setSaveLoc('SM','ME','MT') +>>> sms.setSaveLoc('ME','ME','ME') 0 >>> sms.getSaveLoc() -(['SM', 2, 50], ['ME', 14, 180], ['MT', 2, 50]) +(['ME', 14, 180], ['ME', 14, 180], ['ME', 14, 180]) ``` -- Gitee