hardware

Can I determine / how, if a device has vibration or not?

て烟熏妆下的殇ゞ 提交于 2019-12-07 06:01:14
问题 I have some settings that enable/disable vibration for certain actions, but I find it pointless to display them if the device doesn't have the ability to vibrate. Is there a way to check if the person is using an iPod touch and if it has vibration? 回答1: This code should do it - be aware it 'assumes' the iPhone is the only device with Vibration capability. Which it is for the moment... - (NSString *)machine { static NSString *machine = nil; // we keep name around (its like 10 bytes....)

What simple method can I use to debug an embedded processor without serial port or video?

我的梦境 提交于 2019-12-07 05:25:42
问题 We have a small embedded system without any video or serial ports (i.e. we can't output text via printf). We would like to track the progress of our code through the initialization sequence. Is there some simple things we can do to help with this. It is not running any OS, and the hardware platform is somewhat customizable. 回答1: The simplest most scalable solution are state LEDs. Toggle LEDs based on actions, either in binary form or when certain actions occur if you can narrow your focus.

Access Hardware Information from Web Browser

元气小坏坏 提交于 2019-12-06 15:13:34
问题 I am interested in creating a website that needs to know as much specific hardware (ie computer model, cpu model, RAM size, etc) as possible. Are you aware of any method to find out this information? I know about ActiveX controls, however I'd prefer to use a more flexible method. Javascript? Asp.NET? Flash? Java? Silverlight? Thank you! 回答1: Javascript : Impossible; .Net/Silverlight (If you develop a non-based web browser app) : http://www.c-sharpcorner.com/uploadfile/dpatra/system

Retrieve Hardware Informations through SNMP

对着背影说爱祢 提交于 2019-12-06 13:28:53
I am trying to retrieve hardware informations from a series of devices, so far I used snmpget/snmpwalk with the following OID 1.3.6.1.2.1.25.3.2.1 but it returns very few informations, for example if I run this on my computer from a Windows OS I get those CPUs: Unknown Processor Unknown Processor Unknown Processor Unknown Processor Instead if I run the command from Debian I get the correct value: Genuine Intel: Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz Guessing that there's a floating point co-processor I understand that Windows and Linux fill MIBs in a completely different way but, for istance

The ordering of L1 cache controller to process memory requests from CPU

[亡魂溺海] 提交于 2019-12-06 13:17:15
Under the total store order(TSO) memory consistency model, a x86 cpu will have a write buffer to buffer write requests and can serve reordered read requests from the write buffer. And it says that the write requests in the write buffer will exit and be issued toward cache hierarchy in FIFO order, which is the same as program order. I am curious about: To serve the write requests issued from the write buffer, does L1 cache controller handle the write requests, finish the cache coherence of the write requests and insert data into L1 cache in the same order as the issue order? I think you're

How would you handle a special case in this digital logic system?

只愿长相守 提交于 2019-12-06 13:12:49
问题 I posted this digital logic diagram as an answer to another stackoverflow question. It describes a logic system which will be coded in Verilog or VHDL and eventually implemented in an FPGA. alt text http://img145.imageshack.us/img145/5125/bitshifterlogicdiagramkn7.jpg The numbered boxes in the diagram represent bits in a field. Each field has K bits, and the bits for current and mask will be provided by a computer system (using a latched register or equivalent). The bits in next will be read

Android Studio: Is it possible to trigger hardware menu button

久未见 提交于 2019-12-06 12:12:11
I have an android application which kind of like a home screen of the build-in screen on android phone. I can list all the available applications and run them. One thing I don't know how to do is when user run an application from my apps, my application can trigger the hardware menu button to show the current application menus. Is this possible ? If not, what about doing it if the device was rooted. In activity use override onKeyDown like this : @Override public boolean onKeyDown(int keycode, KeyEvent e) { switch(keycode) { case KeyEvent.KEYCODE_MENU: doSomething(); return true; } return super

Block physical keyboard input in EditText

て烟熏妆下的殇ゞ 提交于 2019-12-06 10:21:38
问题 I have a EditText that should not allow the user to input anything through the keyboard (soft or hard). This EditText should only allow the user to input something through keys(buttons) displayed in the screen by the app. I have disabled the soft keyboard, but I can't find a way to disable the hardware keyboard input. This input via hardware keyboard can be done using a emulator that is configured to allow input through the hardware keyboard. So, my question is, How can I block the input via

How to determine if a machine physically has a serial port?

那年仲夏 提交于 2019-12-06 08:14:10
I could try to open it, but if it is use by another program I will get an error and I need to be able to distinguish that case from the case where the machine physically has no serial port. Any idea? You can use WMI. Have a look at my old post Just for complement the Serg answer, the Win32_SerialPort class used in this article reports the physical com ports, if you wanna enumerate all the serial ports including the USB-Serial/COM ports, you must use the MSSerial_PortName class located in the root\wmi namespace. uses SysUtils, ActiveX, ComObj, Variants; // Serial Port Name procedure GetMSSerial

Query Hardware-Specific Information on Windows With C++

和自甴很熟 提交于 2019-12-06 06:27:37
问题 Specifically, I want to query a system's GPU for the following: The name of the GPU, the series (e.g. ATI Radion 5800, NVIDIA GeForce 4 MX, etc.), the BIOS version, the driver version, the GPU clock speed, the GPU memory speed, the memory type, the memory size, the bus width, the bandwidth, the type of bus being used, the vendor. Any ideas? The application I'm developing just has to display this information to the user. 回答1: I suggest querying WMI, using the following WMI objects: Win32