I am writing a program to send DALI commands via serial port. So, at this case, I got various problems. First of all, DALI commands are messages of 19 bits for questions (1 start bit, 8 adress bits, 8 command bits and 2 stop bits) and 11 bits for answers(1 start bit, 8 response bits, and 2 stop bits). The problem is the fact that with pyserial I can only send bytes via serial port, not bits, and, if I convert that bits to a byte, I need 3 bytes for a question and 2 for and answer with bits unused... How it's supposed to do that. Is there any way to send bits one by one via serial port using pyserial?
Send bits using pyserial
2.7k Views Asked by David González Blazman At
0
There are 0 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in PYSERIAL
- How to fix python serial monitor parsing error?
- Raspberry Pi sending/receiving data over usb
- How do I do a proper if statement with data from a serial device in python?
- RS422 communication using PySerial (Raspberry PI)
- My RAMPS1.4 doesn't work when controlled by RPI5 via Python3
- ModuleNotFoundError: No module named 'pyfirmata'
- Baud rate issue in Raspberry Pi 5 and Arduino connection with USB in Python3
- Computer Locking Up While Using PySerial
- Python serial communication causing high CPU Usage when baudrate is 1000000
- How can I set Xofflimit and clear RTS in pyserial?
- PySerial Benq projector communication
- Can't open serial monitor while pyserial script is working, using nodemcu
- Problem using a mapped baud rate with pySerial
- Python decoding data from serial port and storing into a list
- pySerial reading and writing with arduino
Related Questions in BIT
- How to flip bits in one operation with c#?
- Values getting Overflowed while converting Bit into TB
- Problem with EF Core 8 handling MSSQL tinyint & nullable bit in Blazor
- How to add a additional property in the overview tab of the bit dev mdx documentation for the components?
- vscode debugger display binary full set of bits
- Has a value of 0 for bit 1, what does it mean?
- SDL2 1-bit surface, assign one of two colors in palette to a pixel
- Rotate 2D grid of bits
- How to flip the bits of a number according to the count
- Explain how left shift works in Java
- Create new mask
- Count all set bit sum upto the Nth number
- Standard way of getting a bit pattern of all ones
- Where do I add a zero as padding for 4B5B code?
- EasyModbus Framework Read Bit from device
Related Questions in DALI
- NVIDIA DALI - Load specific frames of a video with nvidia.dali.readers.video
- Why does STD.FILE.LogicalFileList() results not completely correlate with STD.FILE.GetLogicalFileAttribute(x,y)?
- how to set a Scene in DALI Protocol with Arduino?
- nvidia dali video decode from external_source buffer (instead of file)
- HPCC Systems - Can't change default port for Dali
- NVIDIA DALI : unable to load videos using readers.video in NVIDIA DALI pipeline
- Dali Java Persistence Tools - Database datatype to Java datatype mapping
- How to generate SQL scripts at a specific location with JPA Tools and EclipseLink?
- Unable to install nvidia dali in Windows 10
- Installing/updating EclipseLink in Eclipse Dali
- Cannot generate entities from existing MySQL db tables using Dali JPA Tools
- The class 'javax.persistence.Convert' is required to be in the selected libraries
- Eclipse JPA Tools generating duplicate fields in Generate Entities from Tables
- Which Eclipse Photon plugin provides a "JPA Tools" context menu entry?
- Hasseb USB DALI Master & python library python-dali
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?