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

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

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?

Converting Hex String Representation To Float In Python

I have data in IEEE 745 hexadecimal format: 0x1.5c28f5c28f5c3p-1 How would I convert this to a floa… Read more Converting Hex String Representation To Float In Python

How To Convert A Hex String To Hex Number

I want to convert a hex string (ex: 0xAD4) to hex number, then to add 0x200 to that number and agai… Read more How To Convert A Hex String To Hex Number

Python String To Escaped Hex

I have some python code below I managed to cobble together to achieve what I needed, but being quit… Read more Python String To Escaped Hex