You can also exit the session using exit() or quit(). For example, to write a message to the serial port: You can now perform operations on the serial port.Type "help", "copyright", "credits" or "license" for more information. Determine the path to the serial port: # ls /dev/serial/Īt the shell prompt, use the python command with no parameters to enter an interactive Python session: # python.write.py: import serial init serial port and bound bound rate on two ports must be the same ser serial.Serial ('/dev/ttyS2', 9600) print (ser.portstr) send data via serial port ser.write ('012345688902341') ser. Alternatively, log into the IX14 local command line as a user with shell access.ĭepending on your device configuration, you may be presented with an Access selection menu. There is some python3 code to listen on serial port and write data on another serial port. Select a device in Remote Manager that is configured to allow shell access to the admin user, and click Actions > Open Console. See Configure Application mode for information about configuring a serial port in Application mode. You can use the Python serial module to access serial ports on your IX14 device that are configured to be in Application mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |