embedded

What server-side web technology should I use in an embedded system?

匆匆过客 提交于 2019-12-05 02:43:28
问题 I'm starting a new project and I'm trying to figure out what technologies I should use. Here's the deal, I'm writing some software that will run on a wireless router and I would like to provide a web interface. So most likely I will have to do some server-side web development. The only issue is that the device I will be deploying this to only has 16 MB of RAM (Ubiquiti Bullet). Here's some more info: 1.) I'll be using openwrt (linux). 2.) Obviously it has to be lightweight 3.) It's a school

Does anyone have a good guide to designing and error tracking/control system for C?

折月煮酒 提交于 2019-12-05 02:30:54
问题 I'm new to the software engineering side of C development; does anyone have a good guide on how to design an error tracking or error control system for a C project (especially embedded)? Something talking about error tracking for C libraries would be helpful too. 回答1: In my experience the strategies here fall into a few camps. Use of global variables ala errno. How this works is essentially any function can store an error code in the global variable, so after executing the function you can

infinite abort() in a backrace of a c++ program core dump

跟風遠走 提交于 2019-12-05 01:41:57
I have a strange problem that I can't solve. Please help! The program is a multithreaded c++ application that runs on ARM Linux machine. Recently I began testing it for the long runs and sometimes it crashes after 1-2 days like so: *** glibc detected ** /root/client/my_program: free(): invalid pointer: 0x002a9408 *** When I open core dump I see that the main thread it seems has a corrupt stack: all I can see is infinite abort() calls. GNU gdb (GDB) 7.3 ... This GDB was configured as "--host=i686 --target=arm-linux". [New LWP 706] [New LWP 700] [New LWP 702] [New LWP 703] [New LWP 704] [New LWP

Decode Base64 string to byte array

青春壹個敷衍的年華 提交于 2019-12-05 01:29:31
I would create a python script that decode a Base64 string to an array of byte (or array of Hex values). The embedded side of my project is a micro controller that creates a base64 string starting from raw byte. The string contains some no-printable characters (for this reason I choose base64 encoding). On the Pc side I need to decode the the base64 string and recover the original raw bytes. My script uses python 2.7 and the base64 library: base64Packet = raw_input('Base64 stream:') packet = base64.b64decode(base64Packet ) sys.stdout.write("Decoded packet: %s"%packet) The resulting string is a

Qt Use Multiple Fonts at the Same Time

陌路散爱 提交于 2019-12-05 01:17:16
I have three fonts i want to use in my software: FontA: contains Latin, Greek, Cryllic characters FontB: contains Korean characters FontC: contains Japanese, Chinese characters These fonts have no overlap. I want to setup my application such that all of these fonts are used at once since characters from different languages may appear in the same context in my software. If a character is found in FontA, use it. Otherwise, look at FontB, if found use it. Look at FontC as last resort, if found, use it, otherwise do nothing. How can i setup Qt to function that way? (My environment is embedded

What is a good filesystem for embedded NAND drives?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 00:51:17
I am working on an embedded application that uses NAND flash for storage. As it looks now, we won't use Linux or any other RTOS. The application must handle unexpected power downs. We have been looking on different file system solutions, including YAFFS2, JFFS2, FAT+FTL as well as solutions from HCC Embedded . I have heard FAT+FTL is a normal choice, but I am worried about data loss in case of unexpected power downs as well as performance. Would be grateful if anyone could share insights and experience about this FAT-FTL is a "normal choice", but not necessarily a good choice. YAFFS2 is newer

STM32 WWDG interrupt firing when not configured

有些话、适合烂在心里 提交于 2019-12-04 22:58:48
I have an application that I am porting from the Keil IDE to build with the GNU toolchain due to license issues. I have successfully be able to set up, build, flash and run the application on the device. The application on the GNU side is for some reason is getting stuck in the weak linked IRQ handler for the WWDG which is an infinite loop. The application does not enable the WWDG, and it is disabled at reset by default. I have also verified that the configuration registers are at their default startup values. The only difference, other than compilers, are the linker and startup files. However

What is a typical keypress duration

有些话、适合烂在心里 提交于 2019-12-04 21:45:48
问题 I'm doing some work on key press handing in a firmware project. I've been googling to try to find what the typical duration of a key press is, particularly the minimum for a fast typist. Surprisingly I can't find any figures for this anywhere. 回答1: There are some recent studies on keypress timings that have published there timings. Here are two: http://www.cs.cmu.edu/~keystroke/ (Data gathered by Kevin Killourhy and Roy Maxion as accompaniment to "Comparing Anomaly-Detection Algorithms for

Strip unused runtime functions which bloat executable (GCC)

筅森魡賤 提交于 2019-12-04 21:24:45
问题 I have build the GCC4.7.1 cross-toolchain for ARM (cortex-m3). Now I'm linking an executable from C/C++ code that surely doesn't use some certain STL classes (e.g. std::string ). Furthermore exceptions and RTTI are turned off. Though when I'm looking to the target ELF (e.g. using nm), there's a lot of symbols (apparantly from the libstdc++) linked in I wouldn't expect to find there (e.g. std::exception , std::ios_base , etc.). Why is this there, and how can I get rid of this stuff to reduce

Porting C++ lib/app on android

天涯浪子 提交于 2019-12-04 21:14:06
问题 I want to port few C/C++ libraries to Android, how feasible it would be e.g. OpenSSL can it be ported or suppose an application which depends on OpenSSL, what is the best way to port it to Android when Android I think itself has libssl.so what are the tools available e.g. Scratchbox, any alternatives? Has anybody experience with it? 回答1: The android internals wiki is a good starting point, and includes a link explaining how to compile simple native applications. Scratchbox does seem to be the