开发者

Dial into FTP server (Data logger) using python (OS independent)

开发者 https://www.devze.com 2023-01-07 07:37 出处:网络
I have a few data loggers in the field. The manufacturer set them up as dial up ftp servers. I\'m writing a python program that automagically downloads all the latest files from the server into a spec

I have a few data loggers in the field. The manufacturer set them up as dial up ftp servers. I'm writing a python program that automagically downloads all the latest files from the server into a specified folder on my computer.

  1. Which OS independent library do you recommend for dial up?
  2. Do you have any s开发者_如何学编程uggestions, comments, or concerns that you can share?

Thanks


Why not use Python's built-in ftplib? Looks pretty straightforward, unless I'm missing something?

For using a modem with Python, this thread talks about using the pyserial module.

I've never used pyserial with a modem, but I have with a USB port and an arduino. It was pretty straight forward, so I'm sure with some research about modem communication you could do it pretty easily. PySerial doesn't come with python by default, but from their site,

[PySerial] provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (.NET and Mono).

and earlier versions exist for MacOS and others.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号