embedded

Does TLS version have a relationship with cellular communication technology? [closed]

丶灬走出姿态 提交于 2019-12-25 08:42:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am a user of Telit GE910-QUAD V3 modem (2G). The below table explains the Telit cellular modems and the TLS protocols they support. Product SSLV3 TLSV1.0 TLSV1.1 TLSV1.2 (2G) N/A YES N/A N/A (3G) YES YES YES N/A (4G) YES YES YES YES After seeing this, I doubt whether cellular technology (2G/3G/4G) plays any

Python lightweight server for embedded devices [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-25 08:31:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Is there any lightweight Python server for embedded processors ( to 10 MB )? Do I need any framework for developing pages on this small server or can I do that in plain Python? 回答1: bottle.py might be what you're looking for. It is a light-weight framework, as well as a server. web.py is similar. I'm not sure of

malloc() always returns NULL in ChibiOS

ε祈祈猫儿з 提交于 2019-12-25 06:47:01
问题 I have a ChibiOS application where I'm using dynamic memory allocation via malloc() . However, I observed that 100% of the time I call malloc() , it returns NULL . I have confirmed that: The microcontroller memory is not full The error also occurs for size-1 malloc calls, so the memory chunk size is not the cause of the issues. errno is always ENOMEM after the malloc() call How can I resolve this issue? 回答1: When you look at the definition of _sbrk in os/various/syscalls.c , you can clearly

How to use mutex in embedded C and Atmega 16?

六月ゝ 毕业季﹏ 提交于 2019-12-25 05:33:36
问题 I am writting a C code for Atmega Microcontroller and I want to use Mutex in it. What library to include? and how to implement the code? I want this Mutex to prevent a Timer interrupt from changing a variable during a function. 回答1: If you are using an RTOS or threading library, it almost certainly includes a mutex API, and if you are not then you don't need a mutex. In any case you cannot use a mutex in an interrupt handler in any case. Instead, if your timer variable is modified in the

Writing in STM32L4x1 flash memory in C

好久不见. 提交于 2019-12-25 05:20:42
问题 I am trying to write in STM32L476's flash memory using a JTAG ST-Link/V2 on Windows 7. No software has to be uploaded, I only need to write data in a non-volatile place where it can be read and deleted. As a newbie regarding hardware and being efficient only when programming non-embedded regular C, I am afraid I might harm or modify irrevocably the flash memory. Also, I am not really sure regarding what I can or cannot do. I have figured out reading the manual that writing in 0x08000000

Error in running trace32 with command line

半世苍凉 提交于 2019-12-25 03:39:09
问题 I have a .cmm file which helps in debugging of Qcomm chipsets. This file has a line : cd ../../../../../modem_proc When I run this same cmm file using T32 GUI, it runs fine and does the work. But when I am trying to run the same file using windows command line using, C:\T32\bin\windows64>t32mqdsp6.exe -c C:\T32\config.t32 -s D:\path\to\xxx.cmm Following error is thrown in T32: syntax error in B::cd ../../../../../modem_proc What am I missing here? I have no hands-on experience with T32 what

How to make C code to MISRA C:2012 compliance?

只谈情不闲聊 提交于 2019-12-25 02:59:48
问题 I am validating MISRA C:2012 standard to my MCU code using PC-Lint. I got following errors.Here I posted a sample code where I got errors on condition statements. 1] unsigned integer literal without a 'U' suffix [MISRA 2012 Rule 7.2, required] S_LCB_100, 2] side effects on right hand of logical operator, '&&' [MISRA 2012 Rule 13.5, required] while(( 0x00000000 != List[Loop] ) && ( 0 != Counter )) 3] : a signed value and an unsigned value cannot be used together as operands to != [MISRA 2012

qt setting QWSServer keymap from code

青春壹個敷衍的年華 提交于 2019-12-25 02:18:09
问题 I need to a keymap for my embedded QWSServer application. Using environmental variables like this QWS_KEYBOARD="TTY:keymap=/german_keyboard.qmap" export QWS_KEYBOARD works, but isn't optimal for me. I tried to set it from code using QWSServer* wsServer = QWSServer::instance(); QWSKeyboardHandler * kh = QKbdDriverFactory::create("TTY", "keymap=/german_keymap.qmap"); wsServer->setKeyboardHandler(kh); as mentioned here. However, it is not working. Any ideas how to fix it? 回答1: It actually looks

alternative to the fscanf()/vscanf() functions family for using an alternative validation key or how to create a custom language layout?

北城以北 提交于 2019-12-25 01:48:18
问题 I am rather knew in C. And the only way I know for setting a variable from stdin is by using the fscanf() / vscanf() functions family. DOS operating systems are seeing a resurgence in the embedded market. The device which I am using is programmatically compatible with DOS and use a NEC V30Mx which feature the 80286 instruction set. The problem is the built-in keyboard doesn’t feature the enter key and instead use the EXE key which enter the 0x1C00 key code (Alt enter) . So when I write a

Is it possible to generate CAN message in one device and dump CAN message in another device using SocketCAN?

﹥>﹥吖頭↗ 提交于 2019-12-25 00:38:34
问题 I am using SocketCAN and CANtact toolkit to send and receive CAN message. I am using two CANtact toolkits one to send CAN message and other to receive the CAN message both the CANtact toolkits are connected by DB9 female to DB9 female and the other ends are connected to the USB port of the laptop. I used the following SocketCAN commands to first configure them sudo modprobe can sudo modprobe can_raw sudo modprobe slcan sudo slcand -o -s6 -t hw -S 3000000 /dev/ttyACM0 slcan0 sudo ip link set