DSPS Opening a serial port

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
RoniKreinin
Offline
Last seen:2 years 11 months ago
加入:2018-01-02 16:10
DSPS Opening a serial port

I am using the DA14580 to try and replace a USB cable for a sensor. The connection looks like this:

Windows 10 PC <- BLE(DSPS) -> DA14580 <- UART(Pins 2_3 and 2_4 for Rx/Tx) -> CP2102 UART to USB bridge <- USB-> Sensor

I have established a connection between the PC and DA14580 by using a C# .NET application, and am able to send and receive data successfully.
The problem is that in order to turn on the sensor and send/receive data to/from it, I need to open the serial port for the sensor first.
Does anyone know if this is possible and how I would go about doing it if it is?

I am using Da1458x_DSPS_v_5.150.2

Thanks

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 4 days ago
工作人员
加入:2015-06-08 11:34
Hi RoninKreinin,

Hi RoninKreinin,

Apart from what you are asking is out of scope of this forum, as far as i can understand you have a sensor that uses USB interface (which is a slave i suppose) and you connect that sensor to another USB slave device which will produce the UART data, who exactly between the CP2102 and the sensor is going to be the master on this connection since both devices are slave devices ? I dont think that this will work.

Thanks MT_dialog