FT232RL to Bluefruit LE UART Friend

Hi there!

I have a Xiegu X6100 transceiver which offers a USB-C port. When connecting this port with a USB cable to my PC two serial COM ports are created .

· USB-Enhanced-Serial-A CH342 (COM5)

· USB-Enhanced-Serial-B CH342 (COM6)

I’m only interested in the second COM port since it provides CI-V data I want to send with the Bluefruit device. My idea is to connect a FT232RL to my transceiver and wire the serial lines to the Bluefruit device. How does the Bluefruit device differs the two COM ports?

I can monitor the CI-V data perfectly with a terminal programm (Coolterm) but there I have to tell which port I want to monitor.

Thanks for your help

Patrick

With my limited knowledge of USB (especially when it comes to USB-C).

USB uses a host (usually a PC) that talks to devices. Your Xiegu X6100 transceiver is a device, not a host. The FT232RL is also a device, not a host.

You can not connect two devices to each other. Unless you can configure Xiegu as a host it will not work.

I see. So what can I do to get the data to the Bluefruit device? The X6100 sends data on every frequency change on the transceiver (TRX) and this data I would like to use. The TRX has inbuilt bluetooth but I can not use it with my iPad since it is not cerfied.

It actually does have a host USB port in addition to the device port that presents the virtual COM ports. However, that port is described as being used for "mouse, keyboard or other external input devices", so I'm not sure whether it could be of use for this application.

As the "UART" in "Adafruit Bluefruit LE UART Friend" implies, this device has a UART interface. Since the X6100 does not expose a convenient UART interface, the Bluefruit LE UART Friend is perhaps not well suited for interfacing with the X6100.

There is a UART interface internally, which is connected to the CH342 chip in the unit. However, you would need to open the X6100 up to access it, and even then it is not clear whether a header is provided to easily make the electrical connections, or whether you would have to do some delicate solder mask scraping and soldering work to make the connections directly to traces on the PCB. I see some headers in the pictures of the X6100 PCBs, but they are not labeled and they could be anything.

This is the sort of thing that you might be better off asking about on forums that are specifically dedicated to amateur radio (though some of the Arduino Forum members are certainly knowledgeable in that area in general). If you do that, please do add a link here on this forum topic to your post on the other forum in order to make the information available to interested parties.

Something you might consider is using a Raspberry Pi single board computer such as the Raspberry Pi Zero W or Raspberry Pi Zero 2 W. These have a USB host interface that can read the serial data from the virtual COM port of the X6100's USB device interface. You could run a program on the Raspberry Pi computer that would send that data on via BLE, or perhaps you could use the Raspberry Pi alone in place of whatever you were going to use the iPad for. Obviously there will still be technical challenges involved with the Raspberry Pi approach, but it is at least better suited for use with the USB device interface that is presented by the X6100.

I just ordered a Pi Pico 2. It also has a USB host interface. I will give it a try.

Thanks for your help

It might work, but it is important to note that, despite it also being a Raspberry Pi brand product, that is very different than the Raspberry Pi Zero W products I suggested.

The Zero W is a single board computer (SBC). It is functionally equivalent to an older, low spec desktop or laptop computer, running a standard Linux operating system, except in a more compact and versatile form factor that makes it more suitable to incorporating into projects.

The Pico 2 is a microcontroller development board, like a more powerful version of an Arduino UNO. It does not run a personal computer operating system. It is true that it does have a USB host capability. However, you are going to be working with it at a much lower level than would be the case with a computer where the operating system will handle all the USB stuff for you and simply provide you with a file you can open to communicate via the port.

In addition, we most often see people use the USB host on microcontroller dev boards for connecting USB HID devices such as mice, keyboards, and game controllers, and perhaps for MIDI devices as well. It is less common to see them used with virtual COM port (VCP) devices, since we would generally just use the UART interface on the board when we need to do serial communication. So you will likely find that there is less information, libraries, example code available for interfacing a Pico 2 with a VCP device

This means that, even though it is likely technically possible to use the Raspberry Pi Pico 2 board in this application, I think you are going to find it to be much more technically challenging to accomplish compared to a Raspberry Pi SBC. If you are up for a challenge and can persist through the inevitable difficulties, I'm sure you will be able to achieve success.

In addition to the disadvantages, there are certainly advantages to using a microcontroller board like the Pico 2 instead of an SBC. The microcontroller boards are cheaper (the SBC price is deceptive because you will typically end up spending much more for accessories like a good quality SD card and beefy power supply) and more power efficient (especially important in a battery powered application, but also relevant in that you can get by with a cheaper power supply). Although having a Linux operating system can be convenient, it also introduces a huge amount of complexity into the system under the hood, which might cause the device to be less reliable/deterministic when compared to a relatively "bare metal" program running on a microcontroller. And if you are interested in Arduino then the microcontroller dev board is a win because you have the option of writing your program using the Arduino framework, which is not really an option when using an SBC.

Thanks for your detailed reply. I think I will order a Zero W too. I thought it won’t be a big challenge to send data from the USB port to a BLE device but I might have been wrong…