diagnostics KVM switch in QNX 6.5 - qnx

I have KVM(ATEN CS 1642) switch and connected to it usb-mouse, usb-keyboard and two dvi displays. KVM controls switching between two computers (QNX 6.5). I need to get information about connected input-output devices(mouse, keyboard, displays). Operating system utilities determine only emulated switch devices. I.e. call hidview displays Aten mouse and Aten keyboard, even if they actually pull out of the KVM. Can I get a list of actually connected IO devices programmatically?
Thanks.

If you only have the USB device connected, you can use usb -vvv for more detailed information.

Related

How to get details of PCI device enumeration when Windows starts up

We made a motherboard. A PCIe switch (1 upstream port, 4 downstream ports) is used. Each downstream port directly leads to a PCIe slot.
There is a problem that has been plagued for a long time. The No. 2 slot does not recognize the device and has this problem on multiple motherboards.
We checked the power supply and wiring of slot 2 and everything worked fine. And carefully checked the PCB design and layout, slot 2 is no different from other slots.
At present, the hardware has not found any doubts, so I wonder if I can get further fault information through the operating system.
Can I get the details of the device enumeration by opening some configuration of the operating system or by kernel debugging?
1) I've used UEFI Shell V2.2 to see that the No.2 slot device is online and can be read out the configuration space. However, after entering Windows, the No.2 slot device is still not visible in the device manager. I tried to refresh the device by right-clicking on the device manager and the No.2 slot device appeared! By running the test application, it's found that the board is operating normally.
2) I did a comparative experiment and plugged a Samsung PCIe SSD into slot 2. The device would display properly whether in the EFI shell or in Windows.

Is it possible to write an iPhone app that emulates a usb keyboard?

I do a lot of Raspberry Pi projects and I often get into a situation where I’ve just uploaded a new OS to an SD card and want to start a project but I have no keyboard and/or monitor handy. I usually use VNC to control my Pis from my phone or computer but you need a keyboard and monitor to set up VNC server. I realize it would be impossible to send monitor data over usb to an iPhone but would it be possible to create an iPhone app that emulates a normal usb keyboard?
In the app’s simplest form, the user would be able to plug in a normal usb cable to their iPhone and computer, open the app (just a keyboard) and be able to send keystrokes to the computer.
If you do a lot of raspberry projects, maybe you have a spare pi0 lying around? In that case you'd need about half of https://github.com/mikerr/pihidproxy, plus an ssh app on the iphone.

Mac os on VirtualBox does not recognize Iphone

I have been trying to connect an iPhone to Mac OS High Sierra, I've installed on VirtualBox for testing swift app I am trying to develop. However, even I connect the phone to the USB, I can't select the phone from the devices.The message in the device section says that No device connected to the mac.
So I have following questions,
1)Is it even possible to deploy and test iPhone app from mac os hosted on VirtualBox? and how to do it?
2)Are there any alternatives VMs to VirtualBox that allows me to connect my iPhone to virtual mac os for development purposes?
Thank you.
I've tried all the above solutions but still, my macOS on the virtual box wasn't able to recognize my physical iOS device.
For me somehow simply turning on USB tethering on my iOS device worked.
From the Home screen, tap Settings > Personal Hotspot. If you don't see Personal Hotspot, tap Carrier and you will see it.
Tap the switch next to Personal Hotspot to turn on.
Connect your device to the computer using the USB cable.
The device will automatically begin tethering after syncing is complete.
First of all you need the Virtualbox Extension Pack.
The Extensions Pack for Virtualbox allows you to use USB devices. First download the file, called "Oracle_VM_VirtualBox_Extension_Pack-4.1.6-74713.vbox-extpack", from the Virtualbox website Download here. Then open up Virtualbox and open "Preferences" from the File menu. Go to Extensions and add the extensions file. If you're using Ubuntu, you'll need to go one step further and add your user account to the "vboxusers" group. Open the System Settings from the launcher, then go to "Users and Groups." Once there, click "Manage Groups." Reboot your system.
Setting Up USB
Plug your iPhone into your computer and open up Virtualbox. Choose the machine that you want to use your iPhone with and open up the machine settings. In the left pane click the option "USB." Make sure that "Enable USB Controller" and "Enable USB 2.0 (EHCI) Controller" are both selected. Click the "Add" button on the right side of the window, which looks like a USB plug with a green plus sign, and select the iPhone. Click "OK" to close settings.
Using Your iPhone
Once you've set up the USB, start your virtual machine. In the Title bar, you will see the "Devices" menu; click this and go to "USB Devices." Select your iPhone to mount it to your virtual machine. Once mounted, you can use the iPhone as you would if you were using your native OS. You can install your APP via XCode now.
if you're still struggling how to connect your Iphone device to a virtual-box guest MacOS. I recommend installing vmware and and install macos on that. since vmware does not have this problem at all
if you went throught alot of pain installing macos on virtualbox I recommend this tutorial which also provides you with all the file you need. it's straight forward tutorial and works all the way without any problem.

ASCII code on an external device through USB port

Is it possible to send an ASCII code on an external device through USB port using IOS API? I assume that it is possible through bluetooth connection, but I'm not sure through USB connector. Any thoughts?
I would appreciate if someone could put me in the right direction.
Thanking you in advance
That largely depends on the level of sophistication of this "external device". If this external device is just a bare metal embedded device without some sort of operating system you definitely need MFI.
Otherwise, you can run a usbmuxd server (e.g. on Raspberry PI with Linux) to establish a connection via USB. Usbmuxd is basically the technology that Apple uses to communicate between iOS devices and Desktop apps such as iTunes or Xcode. And yes, it is App Store compliant, e.g., Duet Display uses this approach to make an iPad a secondary display for your Desktop via USB.
There are several open source libraries that provide a high level API, e.g., PeerTalk or DarkLightning.

PC Wifi turns off when I connect to Samsung Smart TV via HDMI

I recently bought a Samsung Smart TV and wanted to hook it up to my PC as a second monitor. However every time I connect to it my wifi drops out and will no longer connect to my home network or if it does it doesnt load web pages.
I'm using Windows 7 and my graphics card is an AMD 7970. There are four ports on there. I am using the DVI to my main monitor and HDMI to the TV. The two displayport ports are unused.
Can anyone think of why this would be happening and how I could solve it?
I have tried connecting to both monitors at the same time and only to the TV via HDMI. In both these cases the wifi suffers the same problems. When I connect just to my monitor via DVI everything works perfectly.
Go into the Samsung TV menu and turn off SWL(Samsung Wireless Link). You may need to turn off other wireless options in the TV as well, but start there. When the Smart TV is connected via HDMI to a CEC source, SWL automatically goes active. It is intended as a direct WiFi link but the signal is so strong that it swamps other WiFi signals in the area. It does not play well with others.

Resources