Hello again,
After searching over many sources, and examples, I am still experiencing trouble with uploading files to a FTP server.
Can any explain the differences between storlines and storbinary?
I ask because i have seen examples where text files are uploaded with storbinary!
Many thanks
Fred.
User Profile
Collapse
-
FTP.storlines/storbinary method
-
Hello again,
I keep trawling the web looking for help with my FTP issue, and i keep seeing examples of code where ftp.stobinary is used to upload text files! Is this because of trouble with using storlines? -
Update on FTP issue:
Can anyone PLEASE help?
I've been plugging away at this when ive had the chance.
Having restructured the code, and after trying different approaches as suggested by various sources, the program now looks like this:
...Code:import sys, os, ftplib, MOD print"running" print ndsFTPtry = ftplib.FTP('ftp.members.lycos.co.uk','username','password') #Leave a comment:
-
-
Hello,
try:
[code]
MDM.send('AT#GP IO=3,1,1\n',0) #turn gpio 3 high
ab= MDM.receive(5)
MOD.sleep(10) wait a second
MDM.send('AT#GP IO=3,0,1\n',0) # turn gpio 3 low
ab= MDM.receive(5)
Please let me know if you require more help
Fred....Leave a comment:
-
Are you still working on this?
Double check all the usual RS232 settings.
It may help to jolt the module by using hyperterminal.
When you can get the AT commands to work on the terminal, then re-load pythonwin and re-try...Leave a comment:
-
I have a LOT of experience in this area:
configure the GPIO pin 1 direction (input or output)
MDM.send('AT#GP IO=1,1\n',0) # pin 1 set high as output
zx = MDM.receive(5)
#now reset it so LED is off
MDM.send('AT#GP IO=1,2\n',0) #ask module for pin status
zx = MDM.recieve(5) # and capture the reply
Check that your hardware is correct - I strongly advise using opto-isolators for debug...Leave a comment:
-
Opps
I was about to adive you about fuinctions, then I realised your skill level far exceeds mine.Leave a comment:
-
My i suggest that you make your program pause between sending the individual print jobs.
Or adjusting the system resources on the print server.
Hope this is of use.
Fred....Leave a comment:
-
Im currently using the Telit Python 1.5.2+ Package on XP ServicePk 2, but am planning a move to Linux next week.Leave a comment:
-
Python FTP issues
Hello,
This is my first post here, and i'd like to thank you in advance for any help you can provide.
While working on a python program to make HTML pages, i have encountered a problem when it comes to <br>
uploading the pages.
The 'sandbox' script which i am using to test my methods is:::
...Code:import sys, os, ftplib, MOD print"running" #oooo this is insert
No activity results to display
Show More
Leave a comment: