Skip to content

Commit 5be2a54

Browse files
committed
samples: serial: update default serial port to "/dev/serial/port1"
https://onedigi.atlassian.net/browse/DAL-5843 Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
1 parent 4ae3285 commit 5be2a54

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

samples/modbus/SynchronousRtuClient/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020, 2021, Digi International Inc.
1+
# Copyright 2020-2022, Digi International Inc.
22
#
33
# Permission to use, copy, modify, and/or distribute this software for any
44
# purpose with or without fee is hereby granted, provided that the above
@@ -20,7 +20,7 @@
2020

2121
# Modbus RTU settings
2222
# TODO: Replace with the serial port to use.
23-
PORT = "/dev/ttymxc1"
23+
PORT = "/dev/serial/port1"
2424
# TODO: Replace with the preferred baud rate.
2525
BAUD_RATE = 9600
2626

samples/modbus/SynchronousRtuServer/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020, 2021, Digi International Inc.
1+
# Copyright 2020-2022, Digi International Inc.
22
#
33
# Permission to use, copy, modify, and/or distribute this software for any
44
# purpose with or without fee is hereby granted, provided that the above
@@ -26,7 +26,7 @@
2626

2727
# Modbus RTU settings
2828
# TODO: Replace with the serial port to use.
29-
PORT = "/dev/ttymxc1"
29+
PORT = "/dev/serial/port1"
3030
# TODO: Replace with the preferred baud rate.
3131
BAUD_RATE = 9600
3232

samples/serial/RS232/ReceiveData/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020, Digi International Inc.
1+
# Copyright 2020-2022, Digi International Inc.
22
#
33
# Permission to use, copy, modify, and/or distribute this software for any
44
# purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +16,7 @@
1616
import serial
1717

1818
# TODO: Replace with the serial port used to receive data.
19-
PORT = "/dev/ttymxc2"
19+
PORT = "/dev/serial/port1"
2020
# TODO: Replace with the preferred baud rate.
2121
BAUD_RATE = 9600
2222

samples/serial/RS232/SendData/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020, Digi International Inc.
1+
# Copyright 2020-2022, Digi International Inc.
22
#
33
# Permission to use, copy, modify, and/or distribute this software for any
44
# purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +15,7 @@
1515
import serial
1616

1717
# TODO: Replace with the serial port used to send data.
18-
PORT = "/dev/ttymxc2"
18+
PORT = "/dev/serial/port1"
1919
# TODO: Replace with the preferred baud rate.
2020
BAUD_RATE = 9600
2121

samples/serial/RS485/ReceiveData/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020, Digi International Inc.
1+
# Copyright 2020-2022, Digi International Inc.
22
#
33
# Permission to use, copy, modify, and/or distribute this software for any
44
# purpose with or without fee is hereby granted, provided that the above
@@ -17,7 +17,7 @@
1717
import serial.rs485
1818

1919
# TODO: Replace with the serial port used to receive data.
20-
PORT = "/dev/ttymxc2"
20+
PORT = "/dev/serial/port1"
2121
# TODO: Replace with the preferred baud rate.
2222
BAUD_RATE = 9600
2323

samples/serial/RS485/SendData/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020, Digi International Inc.
1+
# Copyright 2020-2022, Digi International Inc.
22
#
33
# Permission to use, copy, modify, and/or distribute this software for any
44
# purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +16,7 @@
1616
import serial.rs485
1717

1818
# TODO: Replace with the serial port used to send data.
19-
PORT = "/dev/ttymxc2"
19+
PORT = "/dev/serial/port1"
2020
# TODO: Replace with the preferred baud rate.
2121
BAUD_RATE = 9600
2222

0 commit comments

Comments
 (0)