RE: ModemManager 1.14.0: Can't send sms with some chars
Hi Thilo, Thanks for pointing out the “>” causes the shell to attempt redirect mmcli’s output into a file. I still see the “…Cannot generate PDUs: Error processing input text” after the “# mmcli –s 6 –send” command. Digi International is assigning a resource next week to look into: “confirm that we are using UTF-8 locale in our setup”. Best Regards, Scott From: Thilo-Alexander Ginkel Sent: Saturday, July 2, 2022 1:10 PM To: Stanke, Scott Cc: Aleksander Morgado ; modemmanager-devel@lists.freedesktop.org Subject: Re: ModemManager 1.14.0: Can't send sms with some chars [EXTERNAL E-MAIL] Warning! This email originated outside of the organization! Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Scott, On Fri, Jul 1, 2022 at 11:20 AM Stanke, Scott mailto:scott.sta...@digi.com>> wrote: I understand the command from the Digi router shell: "modem sms-text 16511234567 world范例" runs the following commands: # # mmcli -m 0 \ # > --messaging-create-sms="text='hello world范例',number='+16511234567'" # # mmcli -s 6 --send My test results, when running the above commands from the shell, shows the "/bin/sh: can't create --messaging-create-sms=text='hello world范例',number='+16511234567': Read-only file system" probably because I do not have the correct permissions when running from the shell. I will ask our Engineering team how to find if this filesystem error is seen when executing "--messaging-create-sms..." after the router shell command: "modem sms-text...". AFAICS the error you get is due to an extra ">" character in the command line you quoted above (at the beginning of the second line). This causes the shell to attempt to redirect mmcli's output into a file instead of supplying the desired CLI arg. Regards, Thilo
Re: ModemManager 1.14.0: Can't send sms with some chars
Hi Scott, On Fri, Jul 1, 2022 at 11:20 AM Stanke, Scott wrote: > I understand the command from the Digi router shell: "modem sms-text > 16511234567 world范例" runs the following commands: > > # # mmcli -m 0 \ > # > --messaging-create-sms="text='hello world范例',number='+16511234567'" > # # mmcli -s 6 --send > > My test results, when running the above commands from the shell, shows the > "/bin/sh: can't create --messaging-create-sms=text='hello > world范例',number='+16511234567': Read-only file system" probably because I > do not have the correct permissions when running from the shell. I will ask > our Engineering team how to find if this filesystem error is seen when > executing "--messaging-create-sms..." after the router shell command: > "modem sms-text...". > AFAICS the error you get is due to an extra ">" character in the command line you quoted above (at the beginning of the second line). This causes the shell to attempt to redirect mmcli's output into a file instead of supplying the desired CLI arg. Regards, Thilo
Re: ModemManager 1.14.0: Can't send sms with some chars
Hey > > I created a ticket with our IT team and our email communications appear to be > working now. > > I understand the command from the Digi router shell: "modem sms-text > 16511234567 world范例" runs the following commands: > > # # mmcli -m 0 \ > # > --messaging-create-sms="text='hello world范例',number='+16511234567'" > # # mmcli -s 6 --send > > My test results, when running the above commands from the shell, shows the > "/bin/sh: can't create --messaging-create-sms=text='hello > world范例',number='+16511234567': Read-only file system" probably because I do > not have the correct permissions when running from the shell. I will ask our > Engineering team how to find if this filesystem error is seen when executing > "--messaging-create-sms..." after the router shell command: "modem > sms-text...". > > Please will you confirm the "mmcli -s 6 --send" command should not result in > the following error when "text" includes Chinese characters? > > # error: couldn't send the SMS: > 'GDBus.Error:org.freedesktop.ModemManager1.Error > .Core.InvalidArgs: Cannot prepare SMS to be sent: Cannot generate PDUs: Error > pr > ocessing input text' > > Your original response indicates that we should not see the "...Cannot > generate PDUs..." error, but I want to be sure as my Team is requesting > Engineering to provide OS builds addressing: "proper UTF-8 locale > either in the environment or in the filesystem". > There should not be any error when creating a SMS with Chinese or any other language as long as you're using UTF-8 when running the mmcli operation and ALSO when using UTF-8 in the environment the ModemManager daemon receives on launch. -- Aleksander https://aleksander.es
RE: ModemManager 1.14.0: Can't send sms with some chars
Hi Aleksander, I created a ticket with our IT team and our email communications appear to be working now. I understand the command from the Digi router shell: "modem sms-text 16511234567 world范例" runs the following commands: # # mmcli -m 0 \ # > --messaging-create-sms="text='hello world范例',number='+16511234567'" # # mmcli -s 6 --send My test results, when running the above commands from the shell, shows the "/bin/sh: can't create --messaging-create-sms=text='hello world范例',number='+16511234567': Read-only file system" probably because I do not have the correct permissions when running from the shell. I will ask our Engineering team how to find if this filesystem error is seen when executing "--messaging-create-sms..." after the router shell command: "modem sms-text...". Please will you confirm the "mmcli -s 6 --send" command should not result in the following error when "text" includes Chinese characters? # error: couldn't send the SMS: 'GDBus.Error:org.freedesktop.ModemManager1.Error .Core.InvalidArgs: Cannot prepare SMS to be sent: Cannot generate PDUs: Error pr ocessing input text' Your original response indicates that we should not see the "...Cannot generate PDUs..." error, but I want to be sure as my Team is requesting Engineering to provide OS builds addressing: "proper UTF-8 locale either in the environment or in the filesystem". Thank you. -Scott -Original Message- From: Aleksander Morgado Sent: Wednesday, June 29, 2022 2:48 PM To: Stanke, Scott Cc: modemmanager-devel@lists.freedesktop.org Subject: Re: ModemManager 1.14.0: Can't send sms with some chars [EXTERNAL E-MAIL] Warning! This email originated outside of the organization! Do not click links or open attachments unless you recognize the sender and know the content is safe. Hey Scott, > > Thank you for the prompt response found at the following link: > > > > https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.freedesktop. > org%2farchives%2fmodemmanager-devel%2f2022-June%2f009281.html=E,1,-C > Buf9loEix2nMn-17920tNnhtPs4NYmgbZWkECVPC2oFE-2dnXxdUrv6V-dP4_njpoIjAdQ > qCSx1zcD4vlq50JP-XvdArKFHyGl39pTP3WY9jbx=1 > > > > Sorry for my delayed response. Your response did not make it to my email > inbox. A colleague pointed me to the above link. > For some reason that I fail to understand, all emails I've sent to any @https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fdigi.com=E,1,P8KBlngGmEfdGrm7sA_F93VQoidV4GPswrcmticCWy2m6XfbnKhOujDQvcX06i1NyvXgI3Az_Gud8I6fo6lwQzFnFjrpKPWLKdjKLSEodhmTRINzPgr0RvFq-p8C=1 address over the past year have bounced back. I've even tried with multiple email addresses, all get rejected. I hope you can look at the mailing list archives to read this response, and if you prefer, please use a different https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fnon-digi.com=E,1,CkT0XNMEDtNXfff4o5GDqLRI0YhQles9ZEvrdi7MFkqzSBcgSPkii21afWkU1bRhUfCpoTTG-Ulc5R1yMVAgL28p_oESxSb9J8731nH6lmNPwsnkNY302p97=1 email address :) > > > I will review your response with Digi International Sr Product Manager. > > > > The test results in my email are from troubleshooting a potential issue when > sending SMS from the Digi Cellular Router shell: > > > > Sending SMS via “modem [sms|sms-text] ” results in error > when message contains Chinese characters: > > # modem sms-text 16511234567 world范例 > > error: couldn't send the SMS: > 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Cannot > prepare SMS to be sent: Cannot generate PDUs: Error processing input text' > > successfully deleted SMS from modem > > > > Sending SMS via “modem sms-binary ” will send the SMS > message with Chinese characters, but some phones receive the SMS text as > empty or : > > # modem sms-binary 16511234567 world范例 > > successfully sent the SMS > > successfully deleted SMS from modem > > > > Do you know if the above “modem sms-text” and “modem sms-binary” results are > expected, or if our ModemManager implementation may require a fix to support > sending SMS message containing Chinese characters? I have no idea what those "modem sms-text" and "modem sms-binary" things are :) They are not part of the ModemManager project, so I assume those are some internal tools from Digi. -- Aleksander https://linkprotect.cudasvc.com/url?a=https%3a%2f%2faleksander.es=E,1,mGFLSzqb2SmCwG-828xGkhluYi64zppBHbkDzfYX8qdbLMJBxqX15xnpHhUnmTcA_ZMemrOIG9KFv74mbDo-60BlQn5_1bFs7dSc3ZnHYhTWjHx0BrEgYRA,=1
Re: ModemManager 1.14.0: Can't send sms with some chars
Hey Scott, > > Thank you for the prompt response found at the following link: > > > > https://lists.freedesktop.org/archives/modemmanager-devel/2022-June/009281.html > > > > Sorry for my delayed response. Your response did not make it to my email > inbox. A colleague pointed me to the above link. > For some reason that I fail to understand, all emails I've sent to any @digi.com address over the past year have bounced back. I've even tried with multiple email addresses, all get rejected. I hope you can look at the mailing list archives to read this response, and if you prefer, please use a different non-digi.com email address :) > > > I will review your response with Digi International Sr Product Manager. > > > > The test results in my email are from troubleshooting a potential issue when > sending SMS from the Digi Cellular Router shell: > > > > Sending SMS via “modem [sms|sms-text] ” results in error > when message contains Chinese characters: > > # modem sms-text 16511234567 world范例 > > error: couldn't send the SMS: > 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Cannot > prepare SMS to be sent: Cannot generate PDUs: Error processing input text' > > successfully deleted SMS from modem > > > > Sending SMS via “modem sms-binary ” will send the SMS > message with Chinese characters, but some phones receive the SMS text as > empty or : > > # modem sms-binary 16511234567 world范例 > > successfully sent the SMS > > successfully deleted SMS from modem > > > > Do you know if the above “modem sms-text” and “modem sms-binary” results are > expected, or if our ModemManager implementation may require a fix to support > sending SMS message containing Chinese characters? I have no idea what those "modem sms-text" and "modem sms-binary" things are :) They are not part of the ModemManager project, so I assume those are some internal tools from Digi. -- Aleksander https://aleksander.es
RE: ModemManager 1.14.0: Can't send sms with some chars
Hi Aleksander, Thank you for the prompt response found at the following link: https://lists.freedesktop.org/archives/modemmanager-devel/2022-June/009281.html Sorry for my delayed response. Your response did not make it to my email inbox. A colleague pointed me to the above link. I will review your response with Digi International Sr Product Manager. The test results in my email are from troubleshooting a potential issue when sending SMS from the Digi Cellular Router shell: Sending SMS via “modem [sms|sms-text] ” results in error when message contains Chinese characters: # modem sms-text 16511234567 world范例 error: couldn't send the SMS: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Cannot prepare SMS to be sent: Cannot generate PDUs: Error processing input text' successfully deleted SMS from modem Sending SMS via “modem sms-binary ” will send the SMS message with Chinese characters, but some phones receive the SMS text as empty or : # modem sms-binary 16511234567 world范例 successfully sent the SMS successfully deleted SMS from modem Do you know if the above “modem sms-text” and “modem sms-binary” results are expected, or if our ModemManager implementation may require a fix to support sending SMS message containing Chinese characters? Thank you. -Scott
Re: ModemManager 1.14.0: Can't send sms with some chars
Hey On Thu, Jun 9, 2022 at 9:34 AM Stanke, Scott wrote: > Hello ModemManager-devel, > > > > Do you know if the following issue is resolved in ModemManager 1.16.0? I > found the following link that looks like the same issue that we are > experiencing on our Digi International cellular routers running MM 1.14.0: > > > > https://todo.sr.ht/~mil/sxmo-tickets/92 > > > > A Digi International customer found that sending an SMS using our cellular > router running ModemManager 1.14.0 with extended ASCII characters results > in: > > *# error: couldn't send the SMS: > 'GDBus.Error:org.freedesktop.ModemManager1.Error* > > *.Core.InvalidArgs: Cannot prepare SMS to be sent: Cannot generate PDUs: > Error pr* > > *ocessing input text'* > > I can reproduce the issue using the following test commands (if I send > with “text” not including extended ASCII chars, the message is successfully > sent): > > > > # # mmcli -m 0 \ > > # > --messaging-create-sms="text='hello world范例',number='+16511234567'" > > There are known mmcli limitations, see: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/275 But that one is not completely the same issue. The mmcli interface receives in the 'text' field of the key-value pair given to --messaging-create-sms, and there is one simple usecase like needing double-quotes and single-quotes that isn't properly covered, as in the link above. For that, the suggestion was to have a new --messaging-create-sms-with-text=FILE that we could use to feed a given file contents as text input. The issue you're experiencing, though, is not the same one. I *believe* the problem could be your locale settings. Can you confirm you're using a UTF-8 locale in your setup? The text you're using in your setup must be UTF-8 so that mmcli reads it correctly and passes it down to DBus in the correct format. /bin/sh: can't create --messaging-create-sms=text='hello world范例',number='+16511234567': > Read-only file system > > I have no idea what that "Read-only" file system error is, that totally looks like a problem in your script. Are you by any chance creating a file in the filesystem with the --messaging-create-sms option contents?? If so, that would also be an indication that you're lacking proper UTF-8 locale either in your environment or in your filesystem. This totally looks like something unrelated to ModemManager, please check your scripts. > # Successfully created new SMS: /org/freedesktop/ModemManager1/SMS/6 > > /bin/sh: Successfully: not found > > Another indication that this issue is in your scripts, not in ModemManager or mmcli. > # # mmcli -s 6 --send > > *# error: couldn't send the SMS: > 'GDBus.Error:org.freedesktop.ModemManager1.Error* > > *.Core.InvalidArgs: Cannot prepare SMS to be sent: Cannot generate PDUs: > Error pr* > > *ocessing input text'* > > Thank you for looking at this. We are planning to release cellular router > FW implementing MM 1.16 as backlog. I hope to provide our customer an > update that MM 1.16 should fix the issue. > Neither 1.14 nor 1.16 are actively supported, but I don't think your issues are related to the MM versions anyway :) -- Aleksander https://aleksander.es