Rudy,
OK I'm old enough cancer to know what X10 is. :-) I wouldn't think this
is too difficult to do as you're only sending. For this application IMO
there is too much going on inside python that can interrupt the cycle of
modulation. (Intra and Extra python; garbage collection, other
processes, etc)
I would drop back to a simple program in C that you execute from python
to do the actual sending putting your 'message' on the command line to
that program (or use a tmpfile). I think your solution will be to
execute this program from python.
Let me stress, my advise is doing this *reliably*. In that regard you
might need look at locking your C process to 1 CPU and giving it highest
priority. (man nice)
Once you have this working reliably, you could then look to convert it
to a python c-module to more tightly integrate it.
Dave
On 2019/11/14 15:00, R.Wieser wrote:
Dave,
Can you expand on what you are trying to accomplish with this?
There is a small 433 MHz rf transmitter connected to the pin, and when I
send the right pattern a wireless wall-wart will respond and switch a lamp
on or off. Its just ment as an example of a real-world application of
Python, nothing serious.
Ofcourse, by doing so I'm learning about how to use python (and the Pi)
myself too. :-)
It seems a small C program or library you interface python too is a better
solution.
:-) I already wrote that program in C{something} (I'm not sure what my Pi
offers by default) a while ago, but "ported" it to python. For the above
mentioned "example" reason.
... Which is also why I didn't even try to just shell to that program, or
try to interface with a C{something} library.
Though doing such interfacing is in the pipeline (I've already
found-and-stored some documentation about it).
Regards,
Rudy Wieser
--
https://mail.python.org/mailman/listinfo/python-list