HomeSort by relevance Sort by last modified time
    Searched refs:Serial (Results 1 - 25 of 26) sorted by null

1 2

  /external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/urlhandler/
protocol_rfc2217.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
11 from serial.rfc2217 import Serial
protocol_hwgrep.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
14 import serial namespace
15 import serial.tools.list_ports namespace
17 class Serial(serial.Serial):
18 """Just inherit the native Serial port implementation and patch the open function."""
23 serial.Serial.setPort(self, self.fromURL(value))
25 serial.Serial.setPort(self, value
    [all...]
protocol_loop.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
18 from serial.serialutil import *
33 """Serial port implementation that simulates a loop back connection in plain software."""
118 """Read size bytes from the serial port. If a timeout is set it may
143 """Output the given string over the serial port. Can block if the
239 # assemble Serial class with the platform specific implementation and the base
246 class Serial(LoopbackSerial, FileLike):
250 class Serial(LoopbackSerial, io.RawIOBase):
257 s = Serial('loop://')
protocol_socket.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
11 # TCP/IP to serial port converters that do not support RFC 2217.
20 from serial.serialutil import *
36 """Serial port implementation for plain sockets."""
135 """Read size bytes from the serial port. If a timeout is set it may
166 """Output the given string over the serial port. Can block if the
248 # assemble Serial class with the platform specific implementation and the base
255 class Serial(SocketSerial, FileLike):
259 class Serial(SocketSerial, io.RawIOBase):
266 s = Serial('socket://localhost:7000'
    [all...]
  /device/google/accessory/arduino/AndroidAccessory/
AndroidAccessory.cpp 43 const char *serial) : manufacturer(manufacturer),
48 serial(serial),
87 Serial.print("device supports protocol 1 or higher\n");
89 Serial.print("could not read device protocol version\n");
98 sendString(addr, ACCESSORY_STRING_SERIAL, serial);
123 Serial.print("Can't get config descriptor length\n");
130 Serial.print("config descriptor too large\n");
137 Serial.print("Can't get config descriptor\n");
152 Serial.print("config desc\n")
    [all...]
  /external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/
__init__.py 3 # portable serial port access with python
14 from serial.serialcli import *
19 from serial.serialwin32 import *
21 from serial.serialposix import *
23 from serial.serialjava import *
29 'serial.urlhandler',
34 Get an instance of the Serial class, depending on port/url. The port is not
47 # check remove extra parameter to not confuse the Serial class
51 klass = Serial # 'native' implementation
68 klass = sys.modules[module_name].Serial
    [all...]
sermsdos.py 41 import serial.serialutil namespace
66 class Serial(serialutil.FileLike):
145 """Read num bytes from serial port"""
153 """Write string to serial port"""
194 return string.join(( "<Serial>: ", self.portstr
199 s = Serial(0)
serialcli.py 2 # Python Serial Port Extension for Win32, Linux, BSD, Jython and .NET/Mono
3 # serial driver for .NET/Mono (IronPython), .NET >= 2
12 from serial.serialutil import *
27 """Serial port implementation for .NET/Mono."""
134 # ignore errors. can happen for unplugged USB serial devices
153 """Read size bytes from the serial port. If a timeout is set it may
170 """Output the given string over the serial port."""
241 # assemble Serial class with the platform specific implementation and the base
248 class Serial(IronSerial, FileLike):
252 class Serial(IronSerial, io.RawIOBase)
    [all...]
serialjava.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
4 # module for serial IO for Jython and JavaComm
10 from serial.serialutil import *
53 """Serial port class, implemented with Java Communications API and
68 self.sPort = portId.open("python serial module", 10)
153 """Read size bytes from the serial port. If a timeout is set it may
169 """Output the given string over the serial port."""
228 # assemble Serial class with the platform specific implementation and the base
235 class Serial(JavaSerial, FileLike):
239 class Serial(JavaSerial, io.RawIOBase)
    [all...]
serialwin32.py 2 # Python Serial Port Extension for Win32, Linux, BSD, Jython
3 # serial driver for win32
12 from serial import win32
14 from serial.serialutil import *
23 """Serial port implementation for Win32 based on ctypes."""
243 """Read size bytes from the serial port. If a timeout is set it may
278 """Output the given string over the serial port."""
432 # assemble Serial class with the platform specific implementation and the base
439 class Serial(Win32Serial, FileLike):
443 class Serial(Win32Serial, io.RawIOBase)
    [all...]
serialposix.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
4 # module for serial IO for POSIX compatible systems, like Linux
13 # references: http://www.easysw.com/~mike/serial/serial.html
16 from serial.serialutil import *
141 # Tiger or above can support arbitrary serial speeds
220 also add the device name of the serial port and where the
221 counting starts for the first serial port.
222 e.g. 'first serial port: /dev/ttyS0'
275 """Serial port class POSIX implementation. Serial port configuration is
    [all...]
rfc2217.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
7 # protocol to access serial ports over TCP/IP and allows setting the baud rate,
23 # - http://www.ibiblio.org/pub/Linux/system/serial/ sredird-2.2.2.tar.gz
62 from serial.serialutil import *
363 """Serial port implementation for RFC 2217 remote serial ports."""
570 Read size bytes from the serial port. If a timeout is set it may
587 Output the given string over the serial port. Can block if the
    [all...]
  /device/google/accessory/arduino/USB_Host_Shield/
Usb.cpp 105 //Serial.println("Setup packet"); //DEBUG
107 Serial.print("Setup packet error: ");
108 Serial.print( rcode, HEX );
111 //Serial.println( direction, HEX );
116 Serial.print("Data packet error: ");
117 Serial.print( rcode, HEX );
363 //Serial.print("USB task state: ");
364 //Serial.println( usb_task_state, HEX );
Max3421e.cpp 276 Serial.println("Error: OSCOKIRQ failed to assert");
294 //Serial.print("Vbus state: ");
295 //Serial.println( vbusState, HEX );
  /external/autotest/client/common_lib/
powerplay_util.py 5 import error, logging, os, serial, shutil, threading, time namespace
10 """Class to record serial over USB data from Power Play (go/powerplay).
13 serial port to start receiving powerplay data. It also opens a text file to
52 Get a list of connected USB devices and try to establish a serial
54 start reading serial data and write it to the text file after some
64 self.ser = serial.Serial(device_link, 115200)
67 except serial.SerialException, e:
  /external/autotest/client/cros/i2c/
usb_to_i2c.py 13 import serial namespace
104 '''Connects to NXP via serial port.
106 @param device_path: The device path of serial port.
109 self.logger.info('Setup serial device... [%s]', device_path)
111 self.serial = serial.Serial(port=self.device_path,
113 bytesize=serial.EIGHTBITS,
114 parity=serial.PARITY_NONE,
115 stopbits=serial.STOPBITS_ONE
    [all...]
  /external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
monsoon.py 18 import serial # pylint: disable=import-error,no-name-in-module namespace
19 import serial.tools.list_ports # pylint: disable=import-error,no-name-in-module namespace
45 assert float(serial.VERSION) >= 2.7, \
46 'Monsoon requires pyserial v2.7 or later. You have %s' % serial.VERSION
54 self.ser = serial.Serial(device, timeout=1)
58 for (port, desc, _) in serial.tools.list_ports.comports():
72 self.ser = serial.Serial(port, timeout=1)
258 logging.error('timeout reading from serial port'
    [all...]
  /device/generic/goldfish/qemud/
qemud.c 21 * - qemud communicates with the emulator program through a single serial
29 * emulator <==serial==> qemud <---> /dev/socket/qemud <-+--> client1
300 #define MAX_EVENTS (MAX_CHANNELS+1) /* each channel + the serial fd */
1030 /** SERIAL CONNECTION STATE
1033 ** used on the serial port connection.
1052 /* The Serial object receives data from the serial port,
1057 * the serial port.
1059 typedef struct Serial {
1060 FDHandler* fdhandler; /* used to monitor serial port fd *
1239 Serial serial[1]; member in struct:Multiplexer
    [all...]
  /cts/apps/CtsVerifier/assets/scripts/power_monitors/
monsoon.py 32 import serial # http://pyserial.sourceforge.net/ namespace
100 if isinstance( device, serial.Serial ):
109 logging.info("No power monitor serial devices found. Retrying...")
111 logging.error("No power monitor serial devices found. Exiting")
113 sys.exit("No power monitor serial devices found")
137 self.ser = serial.Serial(device, timeout= TIMEOUT_SERIAL)
208 ser = serial.Serial( dev, timeout=TIMEOUT_SERIAL
    [all...]
  /cts/tools/utils/
monsoon.py 50 import serial # http://pyserial.sourceforge.net/ namespace
81 self.ser = serial.Serial(device, timeout=1)
100 self.ser = serial.Serial("/dev/%s" % dev, timeout=1)
111 print >>sys.stderr, ("Note: another device serial #%d seen on %s" %
278 print >>sys.stderr, "timeout reading from serial port"
290 print >>sys.stderr, "invalid checksum from serial port"
301 print >>sys.stderr, "exception from serial port"
417 flags.DEFINE_integer("serialno", None, "Look for a device with this serial number"
    [all...]
  /external/curl/tests/
stunnel.pem 62 Serial Number:
  /device/linaro/hikey/installer/
hisi-idt.py 7 import serial, time namespace
77 self.s = serial.Serial(port=serialport, baudrate=115200, timeout=1)
78 except serial.serialutil.SerialException:
79 #no serial connection
81 print "\nFailed to open serial!", serialport
216 except serial.SerialException, e:
229 dev = '/dev/serial/by-id/usb-???_?????-if00-port0'
246 print ' Serial: ', dev
  /external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/
miniterm.py 3 # Very simple serial terminal
11 import sys, os, serial, threading namespace
13 from serial.tools.list_ports import comports
17 EXITCHARCTER = serial.to_bytes([0x1d]) # GS/CTRL+]
18 MENUCHARACTER = serial.to_bytes([0x14]) # Menu: CTRL+T
62 'version': getattr(serial, 'VERSION', 'unknown version'),
84 LF = serial.to_bytes([10])
85 CR = serial.to_bytes([13])
86 CRLF = serial.to_bytes([13, 10])
88 X00 = serial.to_bytes([0]
    [all...]
  /tools/test/connectivity/acts/framework/acts/controllers/
monsoon.py 32 import serial namespace
46 objs.append(Monsoon(serial=c, logger=logger))
56 """Class that directly talks to monsoon over serial.
83 self.serial = serialno
86 self.ser = serial.Serial(device, timeout=1)
88 # Try all devices connected through USB virtual serial ports until we
113 self.ser = serial.Serial("/dev/%s" % dev, timeout=1)
126 print(("Note: another device serial #%d seen on %s"
    [all...]
  /prebuilts/tools/linux-x86_64/kythe/extractors/
javac_extractor.jar 

Completed in 1084 milliseconds

1 2