How to configure Telit LE910-NAG serial ports to use them with cat?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












We are using the 3G modem Telit LE910-NAG (I'm aware that it is not recommended for new development but for now I cannot change it). I’m using it on a Linux OpenWRT platform.



I followed the direction from the document CE/DE/LE910, HE/LE920 Linux USB Driver - User Guide (https://www.telit.com/wp-content/uploads/2017/09/Telit_Linux_USB_Driver_User_Guide_CE_DE_LE910_HE_LE920_r0.pdf) and add the driver option for serial port and qmi_wwan for network adapter.



Device USB ID is 0x1201 and I have 5 ttyUSBx listed when the modem is on.
The document mention:




please refer to the proper AT commands User Guide for port arrangement description.




But looking at the following: http://ec-mobile.ru/user_files/File/Telit/telit_le9x0_at_commands_reference_guide_r14.pdf I didn’t find serial port arrangement.



1) So, can you help me understand how the port are mapped and what port I should use to configure my modem?



My second issue is about how to configure the serial port to communicate with the modem. I can use the port ttyUSB2 with minicom without issues. But we need to use it in a script with only echo and cat (the board does not have a lot of space).
Echo works find but when I try to read the data with cat I have some weird results (line or character duplicated or missing) and cat is handling (need to kill it with ctrl+Z).
I try different configuration with stty (stty /dev/ttyUSB2 raw, ssty /dev/ttyUSB2 -echoe -echo -echok) but without success. Also, when I try to set the serial port speed it fail:
root@OpenWrt:~# stty -F /dev/ttyUSB2 115200
stty: /dev/ttyUSB2: cannot perform all requested operations



There is no other process accessing the serial port and I’m root.



2) So which port should I use to do this and how can I configure it?



Thank you very much for your help.







share|improve this question























    up vote
    0
    down vote

    favorite












    We are using the 3G modem Telit LE910-NAG (I'm aware that it is not recommended for new development but for now I cannot change it). I’m using it on a Linux OpenWRT platform.



    I followed the direction from the document CE/DE/LE910, HE/LE920 Linux USB Driver - User Guide (https://www.telit.com/wp-content/uploads/2017/09/Telit_Linux_USB_Driver_User_Guide_CE_DE_LE910_HE_LE920_r0.pdf) and add the driver option for serial port and qmi_wwan for network adapter.



    Device USB ID is 0x1201 and I have 5 ttyUSBx listed when the modem is on.
    The document mention:




    please refer to the proper AT commands User Guide for port arrangement description.




    But looking at the following: http://ec-mobile.ru/user_files/File/Telit/telit_le9x0_at_commands_reference_guide_r14.pdf I didn’t find serial port arrangement.



    1) So, can you help me understand how the port are mapped and what port I should use to configure my modem?



    My second issue is about how to configure the serial port to communicate with the modem. I can use the port ttyUSB2 with minicom without issues. But we need to use it in a script with only echo and cat (the board does not have a lot of space).
    Echo works find but when I try to read the data with cat I have some weird results (line or character duplicated or missing) and cat is handling (need to kill it with ctrl+Z).
    I try different configuration with stty (stty /dev/ttyUSB2 raw, ssty /dev/ttyUSB2 -echoe -echo -echok) but without success. Also, when I try to set the serial port speed it fail:
    root@OpenWrt:~# stty -F /dev/ttyUSB2 115200
    stty: /dev/ttyUSB2: cannot perform all requested operations



    There is no other process accessing the serial port and I’m root.



    2) So which port should I use to do this and how can I configure it?



    Thank you very much for your help.







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      We are using the 3G modem Telit LE910-NAG (I'm aware that it is not recommended for new development but for now I cannot change it). I’m using it on a Linux OpenWRT platform.



      I followed the direction from the document CE/DE/LE910, HE/LE920 Linux USB Driver - User Guide (https://www.telit.com/wp-content/uploads/2017/09/Telit_Linux_USB_Driver_User_Guide_CE_DE_LE910_HE_LE920_r0.pdf) and add the driver option for serial port and qmi_wwan for network adapter.



      Device USB ID is 0x1201 and I have 5 ttyUSBx listed when the modem is on.
      The document mention:




      please refer to the proper AT commands User Guide for port arrangement description.




      But looking at the following: http://ec-mobile.ru/user_files/File/Telit/telit_le9x0_at_commands_reference_guide_r14.pdf I didn’t find serial port arrangement.



      1) So, can you help me understand how the port are mapped and what port I should use to configure my modem?



      My second issue is about how to configure the serial port to communicate with the modem. I can use the port ttyUSB2 with minicom without issues. But we need to use it in a script with only echo and cat (the board does not have a lot of space).
      Echo works find but when I try to read the data with cat I have some weird results (line or character duplicated or missing) and cat is handling (need to kill it with ctrl+Z).
      I try different configuration with stty (stty /dev/ttyUSB2 raw, ssty /dev/ttyUSB2 -echoe -echo -echok) but without success. Also, when I try to set the serial port speed it fail:
      root@OpenWrt:~# stty -F /dev/ttyUSB2 115200
      stty: /dev/ttyUSB2: cannot perform all requested operations



      There is no other process accessing the serial port and I’m root.



      2) So which port should I use to do this and how can I configure it?



      Thank you very much for your help.







      share|improve this question











      We are using the 3G modem Telit LE910-NAG (I'm aware that it is not recommended for new development but for now I cannot change it). I’m using it on a Linux OpenWRT platform.



      I followed the direction from the document CE/DE/LE910, HE/LE920 Linux USB Driver - User Guide (https://www.telit.com/wp-content/uploads/2017/09/Telit_Linux_USB_Driver_User_Guide_CE_DE_LE910_HE_LE920_r0.pdf) and add the driver option for serial port and qmi_wwan for network adapter.



      Device USB ID is 0x1201 and I have 5 ttyUSBx listed when the modem is on.
      The document mention:




      please refer to the proper AT commands User Guide for port arrangement description.




      But looking at the following: http://ec-mobile.ru/user_files/File/Telit/telit_le9x0_at_commands_reference_guide_r14.pdf I didn’t find serial port arrangement.



      1) So, can you help me understand how the port are mapped and what port I should use to configure my modem?



      My second issue is about how to configure the serial port to communicate with the modem. I can use the port ttyUSB2 with minicom without issues. But we need to use it in a script with only echo and cat (the board does not have a lot of space).
      Echo works find but when I try to read the data with cat I have some weird results (line or character duplicated or missing) and cat is handling (need to kill it with ctrl+Z).
      I try different configuration with stty (stty /dev/ttyUSB2 raw, ssty /dev/ttyUSB2 -echoe -echo -echok) but without success. Also, when I try to set the serial port speed it fail:
      root@OpenWrt:~# stty -F /dev/ttyUSB2 115200
      stty: /dev/ttyUSB2: cannot perform all requested operations



      There is no other process accessing the serial port and I’m root.



      2) So which port should I use to do this and how can I configure it?



      Thank you very much for your help.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 13 at 16:00









      IceBerg0

      12




      12

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449592%2fhow-to-configure-telit-le910-nag-serial-ports-to-use-them-with-cat%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449592%2fhow-to-configure-telit-le910-nag-serial-ports-to-use-them-with-cat%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay