Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
serial input/output
#1
I want to use a joystick to control a RS-232 controlled telescope. I have installed PyGame and have the joystick working. Now, I want to send a serial ascii text string via RS-232 to my telescope depending on my joystick movements. So, I need to know how to use python to send and receive text characters to my scope via a USB port configured for serial communication. I was hoping that PyGame might have something like this but I have not found it as yet.

Stand alone Terminal programs like PUTTY will do this task but I want to integrate my telescope commands into my python program. Sp, I need a function to send a text string, a function to detect if there is a message to read, and then a function to read and display the message.
Reply


Messages In This Thread
serial input/output - by barryjo - Dec-27-2021, 01:16 AM
RE: serial input/output - by BashBedlam - Dec-27-2021, 01:42 AM
RE: serial input/output - by Jeff_t - Dec-27-2021, 02:45 AM
RE: serial input/output - by barryjo - Dec-27-2021, 11:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Waiting for input from serial port, then move on KenHorse 3 1,217 Apr-17-2024, 07:21 AM
Last Post: DeaD_EyE
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 4,756 Aug-24-2023, 07:56 AM
Last Post: gowb0w
  output provide the filename along with the input file processed. arjunaram 1 974 Apr-13-2023, 08:15 PM
Last Post: menator01
  How to input & output parameters from command line argument shantanu97 1 2,614 Apr-13-2021, 02:12 PM
Last Post: Larz60+
  Code giving same output no matter the input. Yort 2 2,615 Dec-20-2020, 05:59 AM
Last Post: buran
  Handling multi-input/output audio in python bor1904 4 3,649 Nov-04-2020, 08:25 AM
Last Post: CHLOVRL
  single input infinite output problem Chase91 2 1,983 Sep-23-2020, 10:01 PM
Last Post: Chase91
  My code is giving my an output of zero, no matter what value I input PiyushBanarjee 1 1,937 Jul-01-2020, 04:34 AM
Last Post: bowlofred
  Help me input the Rawdata file so that it can output DataErrorFile and ValidData.txt Halozeus 6 3,254 May-01-2020, 07:11 AM
Last Post: bowlofred
  ınput-output HELP! bwdu 1 1,987 Apr-18-2020, 09:53 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020