Skip to content Skip to sidebar Skip to footer
Showing posts with the label Hex

Correct Interpretation Of Hex Byte, Convert It To Float

I am currently trying to connect to an electric meter via RS485. It works quite well so far, except… Read more Correct Interpretation Of Hex Byte, Convert It To Float

How To Build Byte Array Frame And Calculate Checksum

I'm trying to communicate with a serial port as defined in a specification. ser = serial.Serial… Read more How To Build Byte Array Frame And Calculate Checksum

How Can I Send Anything Other Than Strings Through Python Sock.send()

I'm very very new to programming in Python, but out of necessity I had to hack something togeth… Read more How Can I Send Anything Other Than Strings Through Python Sock.send()

Convert 2 Integers To Hex/byte Array?

I'm using a Python to transmit two integers (range 0...4095) via SPI. The package seems to expe… Read more Convert 2 Integers To Hex/byte Array?

Python Image Pil To Binary Hex

from PIL import Image from PIL import ImageDraw from PIL import ImageFont import urllib.request imp… Read more Python Image Pil To Binary Hex

Writing Hex Data Into A File

I'm trying to write hex data taken from ascii file to a newly created binary file ascii file ex… Read more Writing Hex Data Into A File

Python .readline()

First let me preface with I am new to python, no ego here. I have this code I cobbled together fro… Read more Python .readline()

Hex To Base64 Conversion In Python

I want to convert a simple HEX string such as 10000000000002ae to Base64. The hex string is to be c… Read more Hex To Base64 Conversion In Python