Find Jobs
Hire Freelancers

UML State Machine C

$250-750 USD

Completed
Posted almost 2 years ago

$250-750 USD

Paid on delivery
We have a stream of Hex data that needs to be decoded and then a decision made on what to do next. The data is received as a single byte. A loop will be the receipt of a byte. The code must be written in C because it will be integrated into an already active microcontroller code. There will be an input section, verification and then an output section. There must be a variable to set the unit number as well. Entry into the code could be something like this Void SerialDataEntry( int MyData ) = That I will use as the entry into the state diagram. intUnitNumber = 1 - 16. I will set this before I call the procedure. Int ReceiveDerialData( void ) = I use this to check if data is available. Please use -1 to indicate no data is present. Char GetState( void ) = Get the state that we in or read the state variable There will be 4 states BLOCK PASS TAG SWITCHINFO BULK AA BB 01 00 00 09 F6 AA BB 02 00 00 11 EE FF AB BB 01 01 A1 A2 A3 etc The commands that are embedded into the string would be AA BB 01 AB BB 01 01 AC BB 01 AD BB 01 The first byte is the main command identifier AA = SwitchLoop AB = Read Tag AC = Chek Main Switch AD = Get Status The second part, BB, of the command sequence is just a conformation of the fact that it is a command/ If the next byte is not a BB the vyte will be passed through the system as a normal byt ie Input AA BB 01 A1 A2 Output A1 A2 Or Input AA 01 FF 3C Output AA 01 FF 3C The third is a number only sequence that can be between 1 and 16 for AA, AC and AD and 1 and 16 and 1 and 2 for AB. I will send an AA and read the result and check the state. The state machine must check that it's a command char (AA, AB, AC, AD) and remember that it's a potential command but keep from sending it back. I will read the output and see its -1 and the state and do nothing. I send BB. The state machine sees that this definitely a command character and get ready to change its state. Now it will look for a number between 1 and 16. I send 1. The state machine will see that this is a command and will check if its for this unit. If the variable I set is the same as the one I set then the state will change to PASS and any new char I send will be returned to me. If its not the same the bytes will be discarded because its a command char even though not for this [login to view URL] bytes are discarded in any case. I now send the 00, When I read i will get the 00 then I can send it down the line. All characters from this point will be send through until a command byte is received. (AA, AB, AC, AD). Command AB will set the state to TAG, AC to switch info and AD to bulk. Any control characters that is received and blocked without the other is passed through ie 01 AA 02 will be passed through as BB 01 AA or BB AA. Its only the exact sequence that has to be read and blocked. Sample input and output for unit will will be Input AA BB 01 00 00 09 F6 AA BB 02 00 00 11 EE FF AB BB 01 01 A1 A2 A3 etc Output 00 00 09 F6
Project ID: 34061826

About the project

14 proposals
Remote project
Active 2 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
$0 USD in 30 days
5.0 (5 reviews)
3.6
3.6
14 freelancers are bidding on average $830 USD for this job
User Avatar
Hello there. I have good experience with c programming and can help your project. So if u choose me, you will get best result. i am embedded expert. Hope u choose me. Regards.
$500 USD in 7 days
5.0 (6 reviews)
6.6
6.6
User Avatar
Hello, An interesting task. Ready to make this parser with state machine, in accordance with your requirements. In C code, given that it will be for the controller. With testing on simulated units.
$450 USD in 10 days
5.0 (38 reviews)
6.4
6.4
User Avatar
I CAN COMPLETE YOUR PROJECT EASILY Hello, I am programmer with enough experiences on C/C++ for 10+ years. C/C++ is nice programming language and I am majoring on it for long years so I have confident to complete your project by C/C++. I can work by full time for your project and trying to satisfy the requirements. I am designing the project from scratch and structure it well. I am following the project's design process exactly, and if any error is found, fix it within 24 hours and provide maintenance free of charge for a month. Client's idea + Programmer's good coding is the perfect result, this is my idea. I want to keep long-term relationship for customer so I want to give the nice result. If you want the perfect result, please contact with me.
$500 USD in 7 days
5.0 (10 reviews)
5.9
5.9
User Avatar
Hi there, ★★★ C / C++ / C# Expert ★★★ 5+ Years of Experience ★★★ I've read requirements and ready to work on your project. I have strong grasp on Object-Oriented Programming along with excellent analytical and program-solving skills. What we can do but not limited to: ✔️ Debugging & Solving Problems ✔️ Pointers ✔️ Abstract Classes and Objects ✔️ Constructors and Destructors ✔️ Operator Overloading ✔️ Inheritance, Polymorphism ✔️ Data structures (DSA) ✔️ Functions Overriding and Overloading ✔️ File handling, Streams ✔️ Algorithm Analysis ✔️ Linked Lists ✔️ Stacks and Queues ✔️ Recursion Development Tools: Visual Studio, Code Blocks, Dev c++, Turbo, Netbeans, Eclipse etc I'll be glad to discuss project before start so let's chat. Thanks for your consideration. Best Regards, TechPlus Team
$2,500 USD in 15 days
4.6 (10 reviews)
5.4
5.4
User Avatar
I am expert of C programme I understood your requirements but I have a few doubts, text me so I can clear all my doubts right away
$900 USD in 9 days
5.0 (7 reviews)
4.7
4.7
User Avatar
I have good knowledge of state machine programming using c language. We need to work together to meet your requirements
$500 USD in 7 days
4.8 (34 reviews)
4.9
4.9
User Avatar
hi, this is Nasir Mehmood. I am a software engineer and have more than 20 years of development experience in embedded systems, database design, web design, graphics, and mobile applications. i have extensive knowledge of working with assembly, c, c++,vc++ .net,Objective C,C#, Swift, java and vb .net. I have gone through the details of your requirement. these sort of utilities always needs to have low-level access and for this purpose, vc++ .net with assembly language integration is the best choice for a nice GUI and better functionality. I have fully grasped these tools. so I offer you my expertise for your solution. if you are interested in working with me then feel free to contact me for further details. thanks
$500 USD in 7 days
3.8 (12 reviews)
5.1
5.1
User Avatar
I have thoroughly gone through your project description, I'm an expert and I can help you. Kindly send me a message I'm a senior engineer with rich experience in C Programming, Microcontroller. I am a Python developer with 5+ years of experience Skills: PyQt, PySide/PyQt,Scrapy, BeautifulSoup Java, C++, C#, SQL, 4, Pillow, Matplotlib, Xml, PHP, Django json, and csv modules. Expert in statistical analysis of datasets/images and apply ML/DL algorithm with python (Tensorflow, Keras,Pytorch) and R. I am interested in taking up this task for you and I hope I could awake your interest in me. Please kindly send me a message in chat window for more about the project and to adjust price, note price quoted in bid is not the final price, it can be less or more after discussing the project. I am always online, work hard and very sensitive to details. I hope to read from you in chat box. Best regards
$500 USD in 5 days
5.0 (4 reviews)
3.1
3.1
User Avatar
Hi, I've read your description carefully. I have full experience with C, UML I've also worked on several similar projects. So I can complete your project with high quality on time. Looking forward to hear more about the project from you via chatting. Thanks & Best regards!
$500 USD in 7 days
5.0 (2 reviews)
2.9
2.9
User Avatar
Hello there. Expert is here. Pls contact me. Let's have deep discussion about your project. Thanks.
$300 USD in 7 days
5.0 (2 reviews)
2.2
2.2

About the client

Flag of SOUTH AFRICA
Hillcrest, South Africa
5.0
4
Payment method verified
Member since Jun 7, 2012

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.