View previous topic :: View next topic |
Author |
Message |
kartmanne
Joined: 02 Mar 2018 Posts: 28
|
Posted: Thu Mar 28, 2019 10:39 am Post subject: ATMEGA with FT232... and USB-BT-dongle |
|
|
HI,
I designed a pcb with ATMEGA and FT232. This works fine as the FT232 is used for serial communication to a PC (USB-serial port installed as COMXY).
Now I want to replace the USB-cable with bluetooth.
It seems to be simple: 1. plug a USB-BT-dongle into the PC (will automatically install a serial port), 2. plug a USB-BT-dongle into the USB-socket connected to the FT232.
I'm not that familiar with BT, but I think, the ATMEGA has to walk through some setup of the USB-BT-dongle to allow the PC that BT-pairing. Can some one give me some infos, where I can find basic infos so that I can program the setup sequence?
(BASCOM-AVR version : 2.0.8.1 , Latest : 2.0.8.1 ) _________________ CU
Manfred |
|
Back to top |
|
|
laborratte
Joined: 27 Jul 2005 Posts: 299 Location: Berlin
|
Posted: Thu Mar 28, 2019 12:20 pm Post subject: |
|
|
This is not possible, you can not plug two USB-Devices (BT and FT232) together. One of them needs to be an USB-Host. |
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Thu Mar 28, 2019 1:49 pm Post subject: |
|
|
Hi,
As laborratte said, that won't work.
Every USB connection consists of a Host and a Slave. The PC is an USB host and the BT adapter is a USB slave, The FT232 is also a USB Slave (PC to FT232 would work)
Look for a BT adapter that has a Serial or better yet an TTL serial interface. You can connect it then to the AVR (Directly for a TTL interface or over a MAX232 RS232/TTL converter if the BT adapter has a serial interface).
Regards
Ian Dobson _________________ Walking on water and writing software to specification is easy if they're frozen. |
|
Back to top |
|
|
Per Svensson
Joined: 03 Oct 2004 Posts: 235 Location: Gothenburg, Sweden
|
|
Back to top |
|
|
laborratte
Joined: 27 Jul 2005 Posts: 299 Location: Berlin
|
Posted: Fri Mar 29, 2019 3:00 pm Post subject: |
|
|
An OTG device puts itself in host mode when connected to a slave device. So you have still one host-controller and one (or more) slave devices in the system.
I doubt that there is any Bluetooth dongle on this planet that supports OTG. |
|
Back to top |
|
|
kartmanne
Joined: 02 Mar 2018 Posts: 28
|
Posted: Sun Apr 07, 2019 6:58 am Post subject: |
|
|
HI Guys,
many thanks. I read more about USB and followed the link to OTG. I guess, I understand the master/slave concept of USB much better, now.
So, to use BT I may design a schematic with both USB and a integrated BT-module (HC-05), both in slave configuration. And switch to one of these both communication system. _________________ CU
Manfred |
|
Back to top |
|
|
|