Click here to Skip to main content
15,867,568 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Richard MacCutchan29-Jun-20 9:23
mveRichard MacCutchan29-Jun-20 9:23 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil29-Jun-20 10:06
professionalDavid O'Neil29-Jun-20 10:06 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas29-Jun-20 14:08
professionalGreg Utas29-Jun-20 14:08 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil29-Jun-20 15:30
professionalDavid O'Neil29-Jun-20 15:30 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas29-Jun-20 23:41
professionalGreg Utas29-Jun-20 23:41 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
kalberts30-Jun-20 1:34
kalberts30-Jun-20 1:34 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas30-Jun-20 1:56
professionalGreg Utas30-Jun-20 1:56 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
kalberts30-Jun-20 3:02
kalberts30-Jun-20 3:02 
Sure. I consider as "embedded" any CPU that doesn't present itself through an explicit user interface (to the computer), but receives commands from some other source than the user as a human. Maybe the user pushes some button or rotates a knob, but that is all defined by the function of the device, whether a car, rice cooker, stereo system or whatever. The user is unaware of the CPU; in theory the function could be realized by other measures. (E.g. up/down buttons could, in principle, be direct power switches to motors pulling a potentiometer one way or the other.) As long as the device has plenty of power available - including cellphones acting as a central for several sensors - there is no need to worry about the power requirements of a larger RAM. My concern was with the button cell powered sensors etc.

The cellphone itself has a quite extensive power management system: The circuits are organized in several power domains with are turned on and off individually. If some circuit is not required as the moment, it is turned off to save the power of keeping it available. The more, and smaller, power domains defined by the chip, the more focused can the power management be, and the more power can be saved. E.g. some chips allow power to be turned off half or three fourths of the RAM if the current load does not require more RAM. Yet, cellphones have huge batteries, compared to small button cell powered sensors.

(The Bluetooth Low Energy standard essentially reduces energy consumption because the slave/sensor and master/central makes agreements: We'll talk again in exactly 875 milliseconds! In the meantime, the slave turns off all power except for a clock programmed to wake up the chip just in time for the agreed next communication.)

For the time being, I use the "Internet of Things" (IoT) term only for devices communicating over an IP based protocol. There are several other wireless alternatives, some of them proprietary. Many of them have been used for years, long before the IoT term was invented.

I guess that within a few years, IoT blurs into a general term for any small device communicating with some more central unit - IP protocol or not. E.g. I've got a couple thermometers / "weather stations" receiving information from sensors of outdoor and indoor temperature, rainfall, wind... They are old, from long before the IoT protocols were specified. Nevertheless, they will soon be called IoT devices.

"True" IoT devices may use Bluetooth as a physical carrier. Alternately, they may use BT profiles directly (with far less overhead), maybe as a pure software choice. So is it an IoT device on one protocol stack, but not on another one? Borderlines will washed out in the future. But for now, I assume that IoT refers to devices running IP based protocols from the Internet IoT protocol family.
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 3:28
professionalDavid O'Neil30-Jun-20 3:28 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 4:27
professionalDavid O'Neil30-Jun-20 4:27 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas30-Jun-20 7:23
professionalGreg Utas30-Jun-20 7:23 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 7:55
professionalDavid O'Neil30-Jun-20 7:55 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas30-Jun-20 8:15
professionalGreg Utas30-Jun-20 8:15 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 9:06
professionalDavid O'Neil30-Jun-20 9:06 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
kalberts30-Jun-20 10:18
kalberts30-Jun-20 10:18 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas30-Jun-20 13:15
professionalGreg Utas30-Jun-20 13:15 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
honey the codewitch29-Jun-20 15:51
mvahoney the codewitch29-Jun-20 15:51 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
honey the codewitch29-Jun-20 15:46
mvahoney the codewitch29-Jun-20 15:46 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil29-Jun-20 16:08
professionalDavid O'Neil29-Jun-20 16:08 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Richard MacCutchan29-Jun-20 21:43
mveRichard MacCutchan29-Jun-20 21:43 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 3:10
professionalDavid O'Neil30-Jun-20 3:10 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Richard MacCutchan30-Jun-20 3:26
mveRichard MacCutchan30-Jun-20 3:26 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Richard MacCutchan30-Jun-20 3:51
mveRichard MacCutchan30-Jun-20 3:51 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 4:24
professionalDavid O'Neil30-Jun-20 4:24 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Nelek29-Jun-20 9:56
protectorNelek29-Jun-20 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.