EmbeddedRelated.com

New version of UML state chart code generator is even more flexible in creating high quality C-code

Started by pmue...@sinelabore.com in comp.arch.embedded1 year ago

Sinelabore generates compact and readable C code from UML statecharts. There are a number of ways to fine-tune the generated code by setting...

Sinelabore generates compact and readable C code from UML statecharts. There are a number of ways to fine-tune the generated code by setting configuration parameters. C code can now be generated according to these patterns: Object pattern: Instance related data is always grouped in a struct. All state machine related functions operate on this data struct. Opaque object pattern: This is similar...


Configure network of an embedded device

Started by pozz in comp.arch.embedded1 year ago 24 replies

Nowadays many Internet connected embedded devices are controlled by an external proprietary cloud service (for example Sonoff[1] or Shelly[2])....

Nowadays many Internet connected embedded devices are controlled by an external proprietary cloud service (for example Sonoff[1] or Shelly[2]). The installation in the final destination is very simple to the end user that ignores completely all the technical issues: 1. connect the device to the local Ethernet network (WiFi is slightly more complex) 2. pair his mobile app to the device ...


Linux devices and root password

Started by pozz in comp.arch.embedded1 year ago 4 replies

This is the first time I release an embedded device based on Linux OS (it runs on iMX6ULL CPU). This device will be produced in a medium...

This is the first time I release an embedded device based on Linux OS (it runs on iMX6ULL CPU). This device will be produced in a medium scale (100-1000 pieces). I'm thinking about root password: should it be the same on all the devices, or should it be different? Each device has a different 4 bytes serial number. I could use it to scramble an unencrypted password and obtain an enctr...


Linux Embedded: how to get info from a running service

Started by pozz in comp.arch.embedded1 year ago 9 replies

I developed an application (in Python language) that is started by systemd at startup and stay running forever (until the box is rebooted or...

I developed an application (in Python language) that is started by systemd at startup and stay running forever (until the box is rebooted or shutdown). The user can get some info of the system by a web application, as a typical router or NAS. The user points his web browser to the local IP address of my Linux box and a graphical interface appears. This web application is written in Py...


Embedding a Checksum in an Image File

Started by Rick C in comp.arch.embedded1 year ago 84 replies

This is a bit of the chicken and egg thing. If you want a embed a checksum in a code module to report the checksum, is there a way of doing this?...

This is a bit of the chicken and egg thing. If you want a embed a checksum in a code module to report the checksum, is there a way of doing this? It's a bit like being your own grandfather, I think. I'm not thinking anything too fancy, like a CRC, but rather a simple modulo N addition, maybe N being 2^16. I keep thinking of using a placeholder, but that doesn't seem to work


addon functions

Started by Hul Tytus in comp.arch.embedded1 year ago 4 replies

Lewin Edwards in his dosfs file system uses the ldiv() functions shown below: sector = ldiv(offset, SECTOR_SIZE).quot and offset =...

Lewin Edwards in his dosfs file system uses the ldiv() functions shown below: sector = ldiv(offset, SECTOR_SIZE).quot and offset = ldiv(offset, SECTOR_SIZE).rem Anybody know how this is declared or, maybe, defined? Hul


MQTT QoS vs TCP

Started by pozz in comp.arch.embedded1 year ago 9 replies

I know TCP is able to guarantee the delivery of messages from sender to receiver, without corruption (thanks to checksums), in order and without...

I know TCP is able to guarantee the delivery of messages from sender to receiver, without corruption (thanks to checksums), in order and without duplication (thanks to sequence numbers). So I'm confused when I read something about MQTT QoS. For example, QoS 1 (at least once) uses ack (PUBACK) and retransmissions (with packet ids) to guarantee that the message is delivered at least one t...


LPC1788: uart TX interrupt problem

Started by pozz in comp.arch.embedded1 year ago 6 replies

This issue is very difficult to understand when you see it, so it's quite impossible to find the solution here in a newsgroup. However, after...

This issue is very difficult to understand when you see it, so it's quite impossible to find the solution here in a newsgroup. However, after scratching my head for long days, I want to try. Maybe some guy here could enlighten me on the right direction. I have a critical issue with a board based on LPC1788, specifically with UART peripheral. The issue is very annoying because it brings ...


UART connection between ATSAMD20 and ATtiny4313

Started by pozz in comp.arch.embedded1 year ago 68 replies

I'd like to use async UART to let these MCUs communicate. The protocol will be request-response with the request generated by the SAM MCU. The...

I'd like to use async UART to let these MCUs communicate. The protocol will be request-response with the request generated by the SAM MCU. The baudrate will be 38400bps. I'd like to use internal oscillator of ATtiny4313, while the SAM will use an external 32.768kHz crystal (that is multiplied by internal PLL to reach 48MHz). I'm not sure if this scenario can work well. My concerns are...


PID controller with a limited range of control variable

Started by pozz in comp.arch.embedded1 year ago 1 reply

In one application an AC voltage sourced by a generator is applied to a load as a PWM waveform. The period PER is fixed (for example, 100ms) and...

In one application an AC voltage sourced by a generator is applied to a load as a PWM waveform. The period PER is fixed (for example, 100ms) and the pulse-width PW has a maximum (for example, 20ms). The user can change the voltage peak (and consequently the voltage RMS) by an handle, while the controller manages automatically the PW. The load changes its temperature when the PWM wavefo...


Ask a Question to the EmbeddedRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright