Changes between Version 3 and Version 4 of serial
- Timestamp:
- 11/30/2017 07:54:20 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
serial
v3 v4 15 15 [=#mapping] 16 16 == Linux serial port devices == 17 Serial UARTS will be represented as /dev/tty* devices depending on the CPU architecture. For avila/cambria/laguna product families the first UART is /dev/ttyS0 and for Ventana product families the UARTs are /dev/ttymxc*.17 Serial UARTS will be represented as /dev/tty* devices depending on the CPU architecture. 18 18 19 19 The following table describes the various on-board UARTs for standard Gateworks products. Please consult the board specific hardware user manual for additional details: 20 20 ||= Family =||= Board =||= HW Dev =|| SW Dev =||= Function =|| 21 || Newport || GW630x || UART0 || ttyAMA0 || console: 3.3V TTL J12 || 22 || || || UART1 || ttyAMA1 || GPS || 23 || || || UART2 || ttyAMA2 || RS232/RS485 J12 ^^^1^^^ || 24 || || || UART3 || ttyAMA3 || RS232 J12 ^^^1^^^ || 25 || || 21 26 || Ventana || GW51xx || UART1 || ttymxc0 || GPS || 22 27 || || || UART2 || ttymxc1 || console: 3.3V TTL JTAG J10/J11 || … … 42 47 || || GW16111 || UART2 || ttymxc1 || console: 3.3V TTL JTAG J8 / RS232 J16 / RS485 J20 || 43 48 || || || UART3 || ttymxc2 || RS232 J16 || 49 || || 44 50 || Laguna || GW2380/2/3 || UART0 || ttyS0 || console: 3.3V TTL JTAG J2 / 3.3V TTL J4 || 45 51 || || || UART1 || ttyS1 || GPS || … … 54 60 || || || UART1 || ttyS1 || RS232 J15 || 55 61 || || || UART2 || ttyS2 || GPS || 62 || || 56 63 || Rincon || GW2361 || UART0 || ttyS0 || console: 3.3V TTL JTAG J2 || 57 64 || || || UART1 || ttyS1 || RS232 J7 || 58 65 || || || UART2 || ttyS2 || RS485 J6 || 66 || || 59 67 || Cambria || GW2350 || UART0 || ttyS0 || console: 3.3V TTL JTAG J1/J10 || 60 68 || || || UART1 || ttyS1 || GPS || … … 63 71 || || || UART1 || ttyS1 || GPS || 64 72 || || || UART2 || ttyS2 || RS485 J3 || 73 || || 65 74 || Avila || GW2347 || UART0 || ttyS0 || console: 3.3V TTL JTAG J2 / RS232 J5 || 66 75 || || || UART1 || ttyS1 || UART: RS232 J3 || … … 71 80 || || GW2357 || UART0 || ttyS0 || console: 3.3V TTL JTAG J2 / RS232 J6 || 72 81 || || || UART1 || ttyS1 || UART: RS232 J36 || 73 82 1. Depends on software configuration 74 83 75 84 … … 215 224 == Specific Model Notes == 216 225 217 === GW2382 === 226 === Newport === 227 Most Newport products have a flexible [http://dev.gateworks.com/datasheets/sp335e.pdf MaxLinear SP335E] RS-232/RS-485/RS-422 transceiver which is software configurable. For these boards the Bootloader {{{hwconfig}}} environment variable can be used to configure the functionality of the serial ports at power-up. See [wiki:newport/#hwconfig Newport bootloader hwconfig] for more details. 228 229 === Laguna: GW2382 === 218 230 J8 is an expansion header and is by default mapped to /dev/ttyS2. J2 and J4 are connected to /dev/ttyS0. The GPS is hooked to /dev/ttyS1. 219 231 … … 251 263 The following table and sections below provides per-board details of RS485: 252 264 ||= Family =||= Board =||= TXEN =||= Transceiver =||= Termination =||= Fail-Safe Bias =||= Notes =|| 265 || Newport || GW630x || gpio12 || [https://www.exar.com/ds/sp335e.pdf SP335E] || optional (gpio16) || included || see [#newport-rs485 newport RS485 below] || 266 || || 267 || Ventana || GW52xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || optional || TIOCSRS485 support || 268 || || GW53xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || optional || TIOCSRS485 support || 269 || || GW54xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || optional || TIOCSRS485 support || 270 || || GW551x+GW16111 || gpio19 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || 4.75k pull up/down || see [#ventana-rs485 ventana RS485 below] || 271 || Laguna || GW238x+GW16067 || gpio3 || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || optional || 4.75k pull up/down || use tcdrain() and userspace /sys/class/gpio/gpio3 || 272 || || 273 || Rincon || GW2361 '''(optional)''' || RTS || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || off-board || off-board || use tcdrain() and TIOCMBIC/TIOCMBIS ioctl || 274 || || 253 275 || Cambria || GW235x '''(optional)''' || DTR || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || optional || optional || use tcdrain() and TIOCMBIC/TIOCMBIS ioctl || 254 276 || || 255 || Rincon || GW2361 '''(optional)''' || RTS || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || off-board || off-board || use tcdrain() and TIOCMBIC/TIOCMBIS ioctl ||256 || ||257 || Laguna || GW238x+GW16067 || gpio3 || [http://dev.gateworks.com/datasheets/MAX3483-MAX3491.pdf MAX3485] || optional || 4.75k pull up/down || use tcdrain() and userspace /sys/class/gpio/gpio3 ||258 || ||259 || Ventana || GW551x+GW16111 || gpio19 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || 4.75k pull up/down || see [#ventana-rs485 ventana RS485 below] ||260 || Ventana || GW52xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || optional || TIOCSRS485 support ||261 || Ventana || GW53xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || optional || TIOCSRS485 support ||262 || Ventana || GW54xx '''(optional)''' || gpio193 || [http://dev.gateworks.com/datasheets/MAX14840E-MAX14841E.pdf MAX14840] || optional || optional || TIOCSRS485 support ||263 277 264 278 Note that if a driver supports TIOCSRS485 (in other words it handles the assertion/de-assertion of TXEN in the driver) this is preferred over using tcdrain() to determine when the FIFO is empty as tcdrain() can have considerable latency at small transmit sizes. … … 360 374 * 121ohm termination (R38) is loaded and can be enabled by placing a jumper on '''J10:9-10''' 361 375 * 4.75k pull-up on D+, 4.75k pull-down on D- fail-safe bias resistors are loaded (R37/R40) (bus defaults to logic 1 - never idle) 376 377 378 [=#newport-rs485] 379 === Newport === 380 The GW630x support optional half-duplex, multi-drop RS585: 381 * CN80XX / CN81XX UART2 (/dev/ttyAMA2) 382 * [https://www.exar.com/ds/sp335e.pdf SP335E] transceiver 383 * optional on-board termination (enabled by gpio16) 384 * in-chip fail-safe protection to default idle inputs to logic-high (no external bias resistors required) 385 * TXEN connected to gpio12 362 386 363 387