Find Jobs
Hire Freelancers

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

$10-30 USD

Completed
Posted almost 6 years ago

$10-30 USD

Paid on delivery
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: 02= [name="messageName", 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.
Project ID: 17236230

About the project

6 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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 detailed experience overview.
$35 USD in 1 day
5.0 (4 reviews)
3.1
3.1
6 freelancers are bidding on average $30 USD for this job
User Avatar
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 in 1 day
4.9 (262 reviews)
7.9
7.9
User Avatar
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 skills ... HTML5 CSS, CSS3 & LESS JS ( AngularJS, React JS, node.js, expresss JS, Gulf JS, Backbone JS ) MySQL, Ms-Sql, Mongo DB, Oracle Java ( Servlet, JNDI, JDBC, J2SE + J2EE with JSP ) Twitter BootStrap, Foundation Media JQuery to make responsive design PHP, ASP.net, Codeigniter, C#, YII, Cakephp CMS - Wordpress, OpenCart, PrestaShop, Drupal, Magento Cross Platform ( Lonic, PhoneGap ) JavaScript & JQuery Ajax JSON, XML
$55 USD in 1 day
4.8 (9 reviews)
4.9
4.9

About the client

Flag of NETHERLANDS
Utrecht, Netherlands
5.0
3
Member since Jun 27, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.