I need to implement Device manager for some card with FTDI chip.
We are looking into JAVA or C#, and we need to use it for transferring vedio using SPI.
Do we need to use FTDI DLL for java or C#?
Can we encounter serious problems implementing this in java ?
I have used the direct connection with the FTDI DLL using both Java and C#. For Java I have used ftd2xxj, even contributed some extensions to that. Works very and seems actively being maintained. I switched to C# 2 years ago and I'm using the wrapper provided by FTDI FTDI C# Wrapper. This also works perfectly, and I would say using one of these libraries is the recommended way to connect to your device instead of using a serial port connection. You can tune a lot of things such as the latency on the USB port and packet buffer sizes and such. I can imagine this can come in handy with video.
The Java option is fully open-source and business friendly, the C# version is provided as is without any restrictions to redistribute etc.
I have an app that uses ftdi. The solution I selected is to use a C DLL and call the c routines with JNI.
There's also the libftdi/libusb approach if you want a more open source approach. I'm not to sure what interfaces to these exist for Java and c# though.
I have tested multiple FTDI chips in C and C# to do USB to SPI/I2C from Windows.
For Video generally SPI with an extra pin called D/C (data command ) is what is supported by displays devices.
Here is a video with an FT232H board + an OLED 128x64 display in SPI
I used the default ftdi windows C SPI library. The FT232H can deliver up to 3M byte/S in SPI in theory.
The device Nusbio (based on the FT232RL) also support I2C/SPI at a smaller transfer speed and works with the OLED 128x64 display in SPI.
Nusbio can deliver up to 20 K byte/S in SPI for display. The Nusbio library is written in C#.
I am currently experimenting with the FT4222 chip in I2C or SPI using the FTDI C library on top of which I wrote a C# library. The FT4222 can deliver up to 500 K byte/S.
In conclusion you have to pick your chip and if your OS target is Windows C + C#
would be my advice. FTDI does not provide a lot of support/samples for C#, but that is what I do.
Related
I want to make a program to interface with my Arduino through an USB port. I am already quite experienced with C# (which is the language I want to use), but I cannot find a way to install the Arduino USB driver without also installing the IDE. Can I download them somewhere? Or is there a better way to use USB (I do not need to upload any code to the board with the program)?
I know that there are a lot of tutorials on making the program, but they all seem to use the SerialPortclass which I assume is not the actual USB port but just a serial port made by the driver.
In short:
Q1: Where can I download the Arduino USB driver?
Q2: If I can't, what is the best way to do communicate using USB (maybe another driver or library)?
(Please tell me if my question does not make sense, this is the first time I am doing something with USB)
The "original" Arduinos that have build-in chip for serial communication are using FTDI's FT232RL chip. Here's the driver for these: http://www.ftdichip.com/Drivers/VCP.htm
The most cheap clones of those Arduino boards (from eBay, Aliexpress, etc) are using the CH340 chip for serial communication. Driver for these: http://www.wch.cn/download/CH341SER_EXE.html
I need some kind of code sample to make a bluetooth "radar" in Visual Studio Community 2015 with Visual C#. I just need to detect the nearby Bluetooth devices and the transmission signal.
I only get here:
https://msdn.microsoft.com/es-es/library/ff536587(v=vs.85).aspx
Found some old library (32FEET) but outdated.
But not even a single C# example. I need Bluetooth LE but i don't mind just test bluetooth 2.0.
In Java i found bluecode and in Linux bluez libraries.
Edit: for Windows 7
You're question is too broad but I'll answer it anyway.
Since your target is Windows 7, you won't get BLE support out of the box (as it is first introduced in Windows 8.1). You could work around this by talking to the dongle directly (like I do in the open source WinBeacon library) or by using a VM/Raspberry PI that runs Linux with bluez-stack that exposes some kind of Web API you can use.
For detecting BT 2.0 devices, I would recommend the 32feet library as I've used it in the past for detecting and pairing and it just works. When using the Microsoft BT stack, the 32feet library uses the Windows Bluetooth Socket API, which is well documented on MSDN. So if you only want to scan for devices, you might as well directly use the Socket API and use the 32feet source code as inspiration.
Good luck.
(Note: the following question is about a Intel based full Windows 8 tablet for which the drivers work perfectly for regular Windows Desktop (i. e. non-Metro) applications.)
For Metro applications, there's the generic WinUSB support, but I'm unsure what is needed to use the widely used FTDI driver and f2dx.dll user space handler. Due to the fact that the FTDI chips don't support direct endpoint based communication, but instead impose some additional custom protocol, I cannot simply use the endpoint based WinUSB driver. Would switching to the CDC mode of FTDI work with Metro (essentially, this causes the device to appear as a serial port) ?
This question under electronics seems to say that switching to CDC mode with your FTDI device is not an option, as the CDC mode is not true CDC, but rather a CDC-like implementation.
Unfortunately, I don't have a suggestion yet on what should work - looking into the exact same thing myself.
It seems that there's now an official guide from FTDI regarding this topic: WinRT Guide
I've found scatterings around the web but no concise answer. Everyone talks about developing BLE for Android and iOS, but how does one develop for Windows in C# (.NET)?
I've found this
http://social.msdn.microsoft.com/Forums/windowsapps/en-US/2f236b71-a6ac-4c42-aef3-723c3691cbf8/how-to-discover-connectdisconnect-and-reconnect-to-bluetooth-low-energy-device-from-windows-81?forum=wdk
I've tried the C# example, but I don't have any devices with health profiles (and I don't know how to set searching for a generic device). I did try modifying the code but it didn't help
I have a sensor tag and also a generic BLE HM-10 module useful for arduino projects. My iPhone can find both of these devices using the SensorTag application or LightBlue.
I also found this
http://orcs.sebsoft.com/openvision/index.php/8-vision/37-how-to-acquire-data-by-c-from-bluetooth-4-bluetooth-low-energy-ti-ble-keyfob-ti-sensor-tag
I tried starting it up and scanning, but it didn't find any BLE devices. I don't even know if what I'm doing it right.
I have a BT 4.0 USB dongle.
How on earth do I detect a bluetooth device?
Thanks
Here is a two-part blog post about enumerating and configuring BLE devices in Windows 8.1.
BLE for developers in Windows 8.1 Part I
BLE for developers in Windows 8.1 Part II
After reading this, the documentation on MSDN seemed to make a lot more sense.
This is just a guess, but if you're using a generic HM-10 BT module, you might need to program it first to be discoverable and pairable.
You do that using AT commands which you can find in the HM-10 datasheet. The way to send those commands to the module is up to you, you can either use a microcontroller, Arduino for example, or via a serial console.
I need device switch component which an be controlled by code(.net,C# Or vb) ON/OFF state is enough..
I have code knowledge in C#, .net window application, I need to make a switch that can be controlled using code via USB port ... so that using that switch I will turn on/off electrical devices (fan,light) for a specific time interval.. For my MINI Project
Note: I need the brief note regarding components needed and how to assemble it.
If you know any link which resembles this type of project pls refer me.
thanks.
You'll probably want to look into using an FTDI chip for this purpose. They do have a .NET interface available as well as traditional C DLLs.
FTDI offers two types of drivers - one emulates a simple COM port (Virtual COM Port, which is probably enough for you), and the other is more of a direct USB control (D2XX), although it still shows up as a COM port when the USB device is connected.
On the other hand, if you really only need on/off support, you could probably just use the .net serial port drivers for the most basic communication. Of course, the serial port drivers don't let you tie a serial port pin high or low, so you will need some method of reading the data coming from the PC. Many microcontrollers have freely available UART libraries exactly for this purpose, but you will need to also obtain an RS232 level shifting IC for this because the serial port from the PC outputs +/- 6V IIRC (might be +/- 12V), while most microcontrollers run off of and accept signals at 0/5V or 0/3.3V.
You could try something like the Arduino or one of its clones like the Sanguino. It's probably a bit overkill for your project, but they come pre-assembled and have a large support base.
You would also (for any low voltage switching circuit) need some form of relay board to switch electrical appliances that run on mains power. See here for some ideas.
Are you sure you have to do this with the USB port?
You'd need a device that implements a whole USB interface. This isn't as simple as using a line on the COM port (RTS/DSR etc...) or using the parallel port.
A quick search found this...