I have a module based on HE910-EUD. I am trying to download 100kByte file using AT#SD command. If I use directly AT commands instead of python script it takes 10 seconds for the file to be printed on terminal. Since I use 115200bps baud rate, that is to be expected. If I use the same set of at commands via python script, it takes more than 25 seconds to download the file. MDM.read function returns 4096 bytes of data with a 1 second interval. The code only calculates length of the received data. There is no thread, disk write, delay etc. Reading 100kByte file from disk using AT#RSCRIPT command takes several miliseconds using the python MDM interface so while loop that I use to do MDM.read can not be the culprit. What could be the reason for the 4kByte/sec download rate?
P.S. I tinkered with AT#SCFG command and got the several 4096 byte data chunks at the beginning without the “one second interval” but the rest of the data still comes with 4kByte/sec.
Thanks Mustafa Sakarya
Can you share the script and the commands used to get the file?
How can I PM you the code instead of posting it on a public thread?
Use “Message to admin” in the right navigation panel to send me your email address.
Hi,
I still wait for your comment regarding the python script that uses MDM module for AT command Interface.
Now I have a second question: I have no problem using python socket module on PC in client or server mode. But in HE910 modem, I can create a socket object but socket.connect() times out even though AT#SD can connect to the same server. Please guide me on where I can find code sample and/or documentation for python socket module regarding telit modems.
Best Regards Mustafa Sakarya
I haven’t received yet a meesage from you with the files.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi
I have a module based on HE910-EUD. I am trying to download 100kByte file using AT#SD command.
If I use directly AT commands instead of python script it takes 10 seconds for the file to be printed on terminal.
Since I use 115200bps baud rate, that is to be expected.
If I use the same set of at commands via python script, it takes more than 25 seconds to download the file. MDM.read function returns 4096 bytes of data with a 1 second interval. The code only calculates length of the received data. There is no thread, disk write, delay etc.
Reading 100kByte file from disk using AT#RSCRIPT command takes several miliseconds using the python MDM interface so while loop that I use to do MDM.read can not be the culprit.
What could be the reason for the 4kByte/sec download rate?
P.S. I tinkered with AT#SCFG command and got the several 4096 byte data chunks at the beginning without the “one second interval” but the rest of the data still comes with 4kByte/sec.
Thanks
Mustafa Sakarya
Can you share the script and the commands used to get the file?
How can I PM you the code instead of posting it on a public thread?
Use “Message to admin” in the right navigation panel to send me your email address.
Hi,
I still wait for your comment regarding the python script that uses MDM module for AT command Interface.
Now I have a second question:
I have no problem using python socket module on PC in client or server mode. But in HE910 modem, I can create a socket object but socket.connect() times out even though AT#SD can connect to the same server. Please guide me on where I can find code sample and/or documentation for python socket module regarding telit modems.
Best Regards
Mustafa Sakarya
I haven’t received yet a meesage from you with the files.
For socket timeout take a look at this thread.