1
Bus Pirate Support / Re: Identifying a Bus Protocol
But it seems like no one except for me is interested in this industrial special stuff...
Open Source Hardware
This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.
select.select(rlist, wlist, xlist[, timeout])¶
This is a straightforward interface to the Unix select() system call. The first three arguments are sequences of ‘waitable objects’: either integers representing file descriptors or objects with a parameterless method named fileno() returning such an integer:
rlist: wait until ready for reading
wlist: wait until ready for writing
xlist: wait for an “exceptional condition†(see the manual page for what your system considers such a condition)
Empty sequences are allowed, but acceptance of three empty sequences is platform-dependent. (It is known to work on Unix but not on Windows.) The optional timeout argument specifies a time-out as a floating point number in seconds. When the timeout argument is omitted the function blocks until at least one file descriptor is ready. A time-out value of zero specifies a poll and never blocks.
The return value is a triple of lists of objects that are ready: subsets of the first three arguments. When the time-out is reached without a file descriptor becoming ready, three empty lists are returned.
Among the acceptable object types in the sequences are Python file objects (e.g. sys.stdin, or objects returned by open() or os.popen()), socket objects returned by socket.socket(). You may also define a wrapper class yourself, as long as it has an appropriate fileno() method (that really returns a file descriptor, not just a random integer).
Note File objects on Windows are not acceptable, but sockets are. On Windows, the underlying select() function is provided by the WinSock library, and does not handle file descriptors that don’t originate from WinSock.
select.select([], [], [], timeout
IDLE 2.6.4 ==== No Subprocess ====
>>>
Entering binmode:
Traceback (most recent call last):
File "N:BPpyBusPirateLiteoscope_v1.2.py", line 72, in <module>
if bp.BBmode():
File "N:BPpyBusPirateLitepyBusPirateLiteBitBang.py", line 51, in BBmode
self.resetBP()
File "N:BPpyBusPirateLitepyBusPirateLiteBitBang.py", line 95, in resetBP
self.reset()
File "N:BPpyBusPirateLitepyBusPirateLiteBitBang.py", line 61, in reset
self.timeout(0.1)
File "N:BPpyBusPirateLitepyBusPirateLiteBitBang.py", line 113, in timeout
select.select([], [], [], timeout)
error: (10022, 'Ein ungxfcltiges Argument wurde angegeben')
>>>