how can we detect hardware connected to the device with electron framework.
For example imaging we want's to get the dial-up modem ready with electron and use that modem for sending fax whit it.
I find this package for using printer's but how can use other devices :
https://www.npmjs.com/package/electron-printer
Related
I am trying to build a mobile application that read data from WaterRower machine via BLE. This is the machine I am talking about, https://www.waterrower.co.uk/waterrower-natural-rowing-machine. The WaterRower has its own app, https://apps.apple.com/us/app/waterrower-monitor/id1463763094 that can connect to the machine's bluetooth/ BLE and read data from it. But when I download the app and open the app, the app can find the WaterRower machine and connects to it via Bluetooth. The WaterRower app can find the machine's Bluetooth as follow within the app.
As you can see, the WaterRower machine bluetooth's name is PD1186. When the machine is connected, I can also see that in the device's Bluetooth list as follow.
When the machine is connected to my iPhone's Bluetooth within the WaterRower app, it also appeared in the connected Bluetooth devices list of the phone. But if I tried to find the WaterRower machine without using the WaterRower app, the machine's Bluetooth is not listed as you can see below. My iPhone cannot scan it.
As you can see in the screenshot, the WaterRower machine is not listed under the scanned device list at all. It can only be found and connected using the WaterRower app. Also, I am trying to list down the devices in ReactNative following this article, https://blog.bam.tech/developer-news/make-your-first-iot-react-native-application-with-the-bluetooth-low-energy. But the WaterRower machine is not on the list at all.
What kind of BLE technology is that? Is that some sort of private tech to WaterRower? Can I not build my own app and pair it with the machine to read the data? Is it even possible to pair with the machine from my own app? Why is it not evening appearing under the iPhone Bluetooth device list and can only be connected from the app?
I have a USB camera that does work with iOS devices on a specific application made by the manufacturer. When connected, it creates an ethernet interface for which I'm always assigned the same IP address and then when launching the app the camera shows up.
There is no documentation for this device or known API to make it work on other devices or apps.
How can I monitor the traffic between the device and the USB camera in order to find out endpoints (wether HTTP/HTTPS or not) to be able to use the camera on other devices?
The virtual network created by MacOS is (at first glance) not the good approach because my iOS device port is already in use by the USB camera.
I'm interested in both non-jailbreak and jailbreak ways of doing that.
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.
I am currently researching the possibilities of connecting an iPhone app to a windows app via Bluetooth.
The Windows App is written in C# and uses Serial ports to transfer Data. Windows allow me to connect a serial port to Bluetooth. This setup allows communication via Serial over Bluetooth.
I know this setup works because I have managed to communicate with this setup from an Android phone.
I don't seem to be able to do the same with an iPhone 5s (I can't even seem to pair the iPhone to the Windows PC). I haven't been able to test this with a more recent iPhone, but I don't expect it to work either since it's an Apple device with a Windows machine.
I've done some research regarding the possibilities of connecting an iPhone to something else (like a PC) over Bluetooth, and it doesn't seem to be possible.
I have found this SO answer which seems to say that I cannot use Bluetooth Classic to connect an iPhone to a PC.
Since I can't seem to be able to use Bluetooth Classic, I have also tried to use BLE, but I haven't worked out how to simulate the PC as a "peripheral device" to connect to it from the iPhone. I don't even know if that's possible.
So basically my questions are:
1) Is it possible to communicate via Bluetooth between an iPhone and a PC?
2) Would it be possible to use some sort of adapter for the iPhone to connect to the PC (For example, an Arduino with a Bluetooth chip, acting as a BLE peripheral, and sending the data to the PC?)
3) What alternative would I have to this? I know WiFi might work, but I am uncertain if the PC running the app will be network enabled when the project goes live.
You can connect an iPhone with PC over Bluetooth using BLE.
I tried with Linux machine (Ubuntu 16.04 with BLE dongle 4.0) which acts as BLE Peripheral and iPhone 8 with BLE 5.0 as central application. Both could able to successfully communicate using custom GATT service that we developed. The throughput i observed here was 2.5 kiloBytes per sec.
If you are so specific on Windows to act as BLE Peripheral, then i believe there are apps available in Windows store to download which enables Windows PC to act as peripheral. Once peripheral mode is enabled, you can always communicate to this over BLE using iPhone [recommended latest phones]. But you need to try this out.
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.