[Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Simon Andrieu
Hi, I work for a company that develops telemetry boxes, and that uses the Twisted framework running on the main board. It is planned to integrate a cellular module connected via USB or serial link to the main board. Could you help me to know if GPRS/3G/Modem protocols through USB are supported

Re: [Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Bram Van Steenlandt
Hi, I'm using a gsm modem for sending sms messages, the modem is rs232 so I have to use and ftdi adapter. You can use these with pyserial in a thread in twisted. It uses AT commands, I have one from sierra wireless, some phones can do the same. 3G/internet is something else, here you just ne

Re: [Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Laurens Van Houtven
Hi Bram & Simon, I’ll answer both e-mails in one go :-) On 22 Sep 2014, at 16:57, Bram Van Steenlandt wrote: > I'm using a gsm modem for sending sms messages, the modem is rs232 so I have > to use and ftdi adapter. > You can use these with pyserial in a thread in twisted. Huh! Interesting; wh

Re: [Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Bram Van Steenlandt
No specific reason actually, I didn't even know twisted had support for a serial port. This being said: ftdio_sio can be a bit buggy at times, esp when using multiple devices on the same pc, ftdi on freebsd & osx isn't very stable either. I use this interface selector system where the serial co

[Twisted-Python] advice sought - two database connections in a RunInteraction (adbapi.ConnectionPool)

2014-09-22 Thread Jonathan Vanasco
I've got some database transactional code running within a thread via RunInteraction (it needs to rollback on error). One of the features on the logic is that it interacts with a 3rd party API, which may or may not have a ratelimit in effect. Most 3rd party APIs i consume have a minute/hourly

Re: [Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Laurens Van Houtven
On 22 Sep 2014, at 17:31, Bram Van Steenlandt wrote: > No specific reason actually, I didn't even know twisted had support for a > serial port. > > This being said: > ftdio_sio can be a bit buggy at times, esp when using multiple devices on the > same pc, ftdi on freebsd & osx isn't very stabl

Re: [Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Bram Van Steenlandt
op 22-09-14 18:03, Laurens Van Houtven schreef: On 22 Sep 2014, at 17:31, Bram Van Steenlandt wrote: No specific reason actually, I didn't even know twisted had support for a serial port. This being said: ftdio_sio can be a bit buggy at times, esp when using multiple devices on the same pc

Re: [Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Werner Thie
Aloha maybe you can get some clues from here https://gist.github.com/claws/2464017 which is pretty close to what your looking for. HTH, Werner On 9/22/14 7:34 AM, Bram Van Steenlandt wrote: op 22-09-14 18:03, Laurens Van Houtven schreef: On 22 Sep 2014, at 17:31, Bram Van Steenlandt wrote

Re: [Twisted-Python] advice sought - two database connections in a RunInteraction (adbapi.ConnectionPool)

2014-09-22 Thread Glyph
On Sep 22, 2014, at 9:00 AM, Jonathan Vanasco wrote: > has anyone had a need like this before? if so, what did you do? Yes. I re-wrote twisted.enterprise entirely, with a better design. You can see the result here: