![]() ![]() ![]() I'm breaking down each pixel of an image into a 16-bit command word which is interpreted by an ASIC on an inkjet cartridge. Thank you for this information, and I should also explain a bit more about what I am doing. Or you can upload a saved file tp the terminal screen and do the same as well. Real term can display raw numbers as HEX or BINARY and several other formats in real time on the screen. However if you plan to send raw data from one computer to another then the conversion step is unnecessary as long as your custom software on the receiving end knows how to read the data and process it into whatever format you want it in. If you want to see the human readable numbers then you need to convert each raw number to its ASCII equivalent before sending it. When you send raw numbers over serial then you will never be able to see anything other than garbage when using Putty or any other standard serial terminal program. (Do not try to use the forum attach tool, it's useless). Post a picture of your setup using an image sharing site such as and post a link here. If you have connected the 9 pin directly to the RPi GPIO then your RPi has already been destroyed. ![]() The RX, TX and GND pins of the RS232 9 pin cable are connected to the TX/RX/GND GPIO while the USB is connected to the laptop. The code below for serial_write.py can't transmit binary values but how can I? Is there a function to do this? To fix the serial issue associated with the new software, I disabled Bluetooth, wrote "enable_uart=1" in the config.txt, and data is transmitted through serial0. The "speed" is set to 9600 under session in putty while the "serial line" matches the connection listed in Device Manager. From there, there is a serial_write.py file to write data to serial0 and putty outputs the signals. Now I need to transfer the bits to my computer and I first tried testing the UART by sending small values to see the accuracy of the transferred data. To start off, for my project I've created an algorithm with OpenCV which breaks down images into 1s and 0s. I'm new to raspberry pi (Pi 3) and I've been trying to fix the serial port from reading garbage data but nothing seems to work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |