Cross-Platform serial comms - Raspberry Pi Forums
i have python program @ moment runs equally on python (pc) , python (pi), because doesn't use exotic hardware - standard input , output far. next step, need able output ascii data serial data port. pc still old enough have actual rs232 ports, need present there. pi, i've built logic level 232-level converter soc's uart. don't know (because haven't looked yet) whether have develop separate pc , pi forks of program, 1 pc specific comms handling , other pi specific serial comms handling. i'm assuming need use pyserial, don't know whether manages make hardware same no matter underlying system runs on: or whether there specific flavours of pyserial for each operating system, each own os-specific syntax. i'd prefer python program able determine system running on interrogating system somehow, , run appropriate system specific comms code. feasible? pyserial cross-platform, should run on windows , on *nix system (linux, mac os x, bsd, etc.). program nee...