Make a PHP Function for HEX to JSON conversion of IoT data, per a variable data-formatting definition

a PHP function will take the first two characters to identify the nature of the data and use the rest of the data to parse values per the specific definition.

Given HEX data values (like 02000a670867350000010000 ),

*and* given an array definition of currently 17 different data types. the format to hold this information is TBD (currently on paper), but they will be something similar to this one example element:



typedef = [

byte = ID,

byte = status,

int16 = value1,

int16 = value2,

int8 = other1,

int8 = other2,

int8 = other3,

uint8 = other4,

uint8 = other5,

uint8 = other6,



take the first 2 digits to determine the message type, then take the typedef of the data to cut the data into pieces which are then translated from HEX to decimal/text, which gets returned as a simple, flat JSON (the above will translate as follows):


"ID": "messageName",

"status: "0",

"value1": "102663",

"value2": "21.51",

"other1": "53",

"other2": "0",

"other3": "0",

"other4": "1",

"other5": "0",

"other6": "0"


Looking for a simple function which takes the data and returns the JSON will do. Important is that at any time new data definitions and data types may be added and error messages are generated in case the data does not satisfy the format.

Testing: a data set and a REST webservice is available to check the outcome of each value. Ie. the values should match the outcome of the REST service.

Habilidades: PHP

Ver más: Make a Presentation in powerpoint from the data given, json save data database php, json show data php mysql, using php json insert data database mysql, php library flv conversion, php library convert image cmyk, php function convert url html link, active directory php function, php function number format bilion milion, php function keywords extract, php code administrator monitoring edit data, web server php function, php convert hex color, php function validate post, php screen scrape example extract data, php library, php function convert http links, hex ascii conversion verilog code, php convert hex rgb, php function convert link

Información del empleador:
( 3 comentarios ) Utrecht, Netherlands

Nº del proyecto: #17236230

Adjudicado a:


You will receive a class that can take the definitions as config at initiation, and will have the method responsible for parsing the incoming data. Relevant Skills and Experience Please refer to my profile for detaile Más

$35 USD en 1 día
(4 comentarios)

7 freelancers están ofertando el promedio de $29 para este trabajo


I can work for you. I'm interested in your project. I've an experience of works with PHP. Ping me any time to discuss about this project.

$25 USD en 1 día
(244 comentarios)
$25 USD en 1 día
(106 comentarios)
$25 USD en 1 día
(32 comentarios)
$30 USD en 1 día
(68 comentarios)

Hello, I can start work on your project immediately once you confirm me and i am also open for further discussion if you want. I have 8+ years in web designing & development with good experience in following skil Más

$55 USD en 1 día
(9 comentarios)
$10 USD en 1 día
(0 comentarios)