hardware-interface

How does a modern operating system like Windows or Linux know the chipset specific memory map?

自闭症网瘾萝莉.ら 提交于 2020-12-13 18:53:50
问题 The memory map of the peripherals are defined by the chipset. However, modern operating systems like linux and Windows can boot from pretty much every chip (if compiled for the right architecture). As far as I know, the memory mapped devices like the USB Host are not included in the architecture standard. How can the OS still boot, load the drivers, and function? I suppose there must be some specification where the chipset is described. Formulated a little different: How does the

How does a modern operating system like Windows or Linux know the chipset specific memory map?

心已入冬 提交于 2020-12-13 18:53:10
问题 The memory map of the peripherals are defined by the chipset. However, modern operating systems like linux and Windows can boot from pretty much every chip (if compiled for the right architecture). As far as I know, the memory mapped devices like the USB Host are not included in the architecture standard. How can the OS still boot, load the drivers, and function? I suppose there must be some specification where the chipset is described. Formulated a little different: How does the

How does a modern operating system like Windows or Linux know the chipset specific memory map?

只愿长相守 提交于 2020-12-13 18:52:26
问题 The memory map of the peripherals are defined by the chipset. However, modern operating systems like linux and Windows can boot from pretty much every chip (if compiled for the right architecture). As far as I know, the memory mapped devices like the USB Host are not included in the architecture standard. How can the OS still boot, load the drivers, and function? I suppose there must be some specification where the chipset is described. Formulated a little different: How does the

How to read HardDisk Temperature?

拜拜、爱过 提交于 2020-01-02 00:57:07
问题 Is it possible to see the Harrdisk temperature with somekind of S.M.A.R.T API or anything like that? i just want the temp, nothing else in C# 回答1: Here is code snippet from this article Hope it helps //S.M.A.R.T. Temperature attribute const byte TEMPERATURE_ATTRIBUTE = 194; public List<byte> GetDriveTemp() { var retval = new List<byte>(); try { ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\WMI", "SELECT * FROM MSStorageDriver_ATAPISmartData"); //loop through all the

How to get the address of mmap-ed memory in Python?

こ雲淡風輕ζ 提交于 2019-12-22 08:57:19
问题 I cannot figure how to get the virtual address of the standard mmap objects in Python (from the mmap module). The documented methods only seem to access the memory as array of bytes or as character strings. But I need to access the mmap'ped memory by precisely 2 or 4 bytes at once - because this memory in my application is mapped to hardware registers (think /dev/mem or GPIO or such). Accessing memory in this way is possible with ctypes module - but for this I need the pointer - or virtual

How to access CPU's heat sensors?

做~自己de王妃 提交于 2019-12-17 22:39:32
问题 I am working on software in which I need to access the temperature sensors in the CPU and get control over them. I don't know much hardware interfacing; I just know how to interface with the mouse. I have googled a lot about it but failed to find any relevant information or piece of code. I really need to add this in my software. Please guide me how to have the control over the sensors using C or C++ or ASM. 回答1: Without a specific kernel driver, it's difficult to query the temperature, other

Bluetooth human device interface for reading digital input channels

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 02:34:22
问题 An idea is to make Win Mobile phone become super alarm for car. Now I am searching for devices simalr to Velleman interface board, but I need device which can be connected to mobile device using bluetooth trough compact framework and C#. I need digital inputs for caching real events such as engine started or door opened. Is there a way to interface mobile device with outside world using inputs with voltage. 回答1: First off you need a custom piece of hardware that will hook in to the ECM of the

Android capture hardware keyboard event without edittext view

◇◆丶佛笑我妖孽 提交于 2019-12-12 08:07:53
问题 How can I capture the hardware keyboard events without using an EditText field? For example, in a simple activity the display a square on the screen, when a "B" is pressed on the slide keyboard I want to turn it blue, when a "G" is presses, turn it Green, etc. I don't need help with the color code, just how to intercept the keypress This is not about the soft or virtual keyboard 回答1: Android classes usually provide event handlers, you can implement when subclassing them. The Activity class

Can't get OpenHardwareMonitorLib.dll to work

左心房为你撑大大i 提交于 2019-12-12 01:36:41
问题 I've found very few examples of how to get OHM working in c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenHardwareMonitor.Hardware; namespace OpenHardwareMonitorReport { class Program { static void Main(string[] args) { Computer computer = new Computer(); computer.Open(); var temps = new List<decimal>(); foreach (var hardware in computer.Hardware) { if (hardware.HardwareType != HardwareType.CPU) continue; hardware.Update(); foreach (var

How to get and change the values of the projector lens system?

百般思念 提交于 2019-12-11 10:14:25
问题 I am trying to write a Gatan DigitalMicrograph script to control the tilting of incident electron beam before and after a specimen. I think that the values of pre-specimen lens system can be got and changed by using commands such as EMGetBeamTilt, EMSetBeamTilt and EMChangeBeamTilt. However, I don't know how to get or control the status of the post-specimen lens system such as a projector lens. What command or code should be written in order to control the projector lens system? It will be