On 8/25/2010 4:56 PM, Kurt A. Richardson wrote:
 On 8/25/2010 4:53 PM, Kurt A. Richardson wrote:
 Thanks Vernon

I did look at Pyserial, but then I realized that with IronPython I could just use System.IO.Ports.SerialPort to do it all anyway... then it seemed pointless to use PySerial if the capability is already available in IronPython. It works fine on Mono too, and I have run successful tests in Linux Juanty (which my PlugPC runs). The problem I have now is not talking to the serial port per se... it is doing it from within a web browser, which as I understand it is a security issue. The browser security policy just won't give me access to the serial port whatever library I might be using. The link I posted earlier shows how to overcome the security restrictions in C# - I just don't know how to translate this into an IronPython class :-(

Bye for now, Kurt
BTW Your project sounds pretty cool - not wishing to clutter this thread, but how reliable are you finding the X10. I have a TED5000 which just monitors my total load, and it sux - this is why I chose wireless ZigBees when putting together my Smart Home Network.

Ta ta for now, Kurt
Well I'm a complete berk - I was attempting to access the server's serial port via a browser on the same server - so no real security issue at all... but having another window open with an open serial connection is certainly a problem!??!!??! Explains why I kept getting Access Denied - some of these error messages really could be more helpful :-) As soon as I closed the other connection, I could connect from my browser fine and successfully turned a fan off in my office from my iPhone today with no trouble.

Thanks for the tips...

Bye for now, Kurt


_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to