Transform CAN message handlers from mBed C/C++ code to Python

Note: I'm dropping all automated replies with generic proposals - see question in the end.

We've got a small module of code that parses CAN messages using a microcontroller. The current system uses mBed OS and we're now moving to Linux. I'd like to have the knowledge embedded in C code to be usable in the new system, which is written in Python. Currently the software is compiled per car model and the correct .h is included with and #ifdef during the build.

Basic structure is that there's a common part that ingests CAN mesages (uint8_t processCanMessage(CANMessage msg)) and provides a few functions that return the data item's we're interested in (example uint8_t getCanWiper(void) returns if windshield wiper is currently active). The state is kept by the module in static variables - mostly no C++ features are used.

Each car model (17 models and thus .h files) is configured a .h file, which encodes which CAN message IDs are of interest (used for HW message filtering) and how the CAN messages are decoded to state variables.

The embedded code has almost no dependencies to other parts - it's just ingest-process-provide accessors to state.

The task is to:

Create single or multiple Python modules that:

-Use cut and paste, preferably even directly, the current embedded code

-For each car model, create a Python module that uses the code and provides the following functionality:

--function to list the CAN message IDs used (.h has a list of structs that have these as uint16_t)

-ingest function that takes CAN message and processes it

-accessor functions to state variables in C module

-Build script to build these all on ARM target (can be built on Raspbian or similar, no cross compiling needed.

There can be either 1 or 17 Python modules as a result. The less changes to existing C code the better.

I can send the source code with NDA. Included here is one example of the 17 configuration .h files.

As a sanity filter to block robots and your stuff - usually only one or two proposals are from people who actually know their stuff and I'm plonking all others. A few correct words are enough, no need for writing a novel!

How can you use C code in Python ?

Skills: Python, C Programming, Linux, Embedded Software

See more: can set digits phone code vb60, can someone decode eaccelerator code, message board tracking code, app developers message board facebook code, converting php code python, php message board example code, convert php code python, can iphone scan upc code, vbnet message board source code, message board html code template, site crawler code python, can convert visual basic code matlab, convertphp code python, program translate message english morse code java, conversion code python php, php mysql instant message open source code, can message hornymatches, looking for a developer who can code python and php

About the Employer:
( 9 reviews ) Finland

Project ID: #21707034

Awarded to:


Hello Sir, Got two files: // file module.c // $ cc -fPIC -shared -o [login to view URL] module.c int my_function(int num) { if (num == 0) return 0; else if ((num & (num - 1) == 0)) // even return 1; return -1; // odd More

€350 EUR in 7 days
(1 Review)

15 freelancers are bidding on average €555 for this job


Hello sir, I read your project description and I am interested in your job. As you can see my profile, I am a full-time developer and have just completed many projects. Specially, I have top skills for C/C++, C#, J More

€500 EUR in 4 days
(78 Reviews)

Hi Sir, we are CAN BUS experts , we can transform the C code to python. Lets talk to us on this. We are professional engineers and developers who do such projects from the last 10 years. We offer you our skills for More

€400 EUR in 7 days
(19 Reviews)

Hello! Nice to meet you! I have read your project carefully. I am very interested in your project. I am a Microelectronics engineering expert. I have a lot of experience on ARM, FPGA, DSP, Arduino, Raspberry, PLC, PIC, More

€500 EUR in 3 days
(15 Reviews)

Hi,dear. I understand your proposals and I am very interested in this job - 'Transform CAN message handlers from mBed C/C++ code to Python'. I've already done this kind of project before. I am senior software developer More

€555 EUR in 2 days
(4 Reviews)

I'm a python developer with 3+ year's of experience that specializes me in multi-platform applications using Pyside /puqt, scrapy , pillow matplotlib. I am also working as a full stack developer, so that I have more ex More

€500 EUR in 7 days
(8 Reviews)

Hello. I am a senior Microcontroller firmware and embedded system developer. I read your description and I am interested in your project. I have developed the raspberry pi app using python and Qt, Node js. I can devel More

€500 EUR in 10 days
(16 Reviews)

hello,how are you. i read your bid carefully. i am c/c++ expert and have full experience for 10 years. c++ language is my top skill. i can provide most quality and high speed. if you want to success, please contact me. More

€500 EUR in 7 days
(6 Reviews)

Hi, This is Vipin, an alumnus of IIT Kanpur. I have 6+ years of experience in customized software, web and mobile app development and has expertise in Android, iOS, Python, Magento, PHP, HTML, Java, Angular and Ioni More

€500 EUR in 7 days
(2 Reviews)

I can start your project immediately. I can provide full-time communication and work your time-zone. If you give me a chance to serve you, I will provide a high quality product within the deadline. Best Regards

€250 EUR in 7 days
(4 Reviews)

I have worked as developer embedded system with microcontroller such as DSP, FPGA/CPLD, PIC, PLC and so on. In there years, I have experiences about electronics engineering, power converter, communication such as I2C, More

€400 EUR in 7 days
(7 Reviews)

Hello I hope you're doing well. I read your project needs carefully and found my skills relevant to your project we are a team of expert developers and have more than 6 years of experience in the same domain. As per More

€500 EUR in 7 days
(1 Review)

Nice to meet you I am an Amazon Cloud Architect for the web infrastructure serving 90 million page impressions and 12 TB Internet traffic per month. The AWS services I use are EC2, ELB, MySQL RDS, VPC, CloudFront, Elas More

€700 EUR in 10 days
(0 Reviews)

Hi there, I am Python developer, having below given skills: Engineering professional with 10 years of experience in Software development. Mastering/Leading in the development of applications/tools using Python for 6 More

€500 EUR in 7 days
(0 Reviews)

Hello, this is a preliminary bid because (at least on the mobile interface I cannot find the include file). As for your questsion: Python can simply import compiled extensions (with minimal changes). Relevant Skills a More

€1666 EUR in 15 days
(0 Reviews)