1| Supported Targets | ESP32-S2 | ESP32-S3 | 2| ----------------- | -------- | -------- | 3 4# USB CDC-ACM Host Driver BG96 Example 5 6(See the README.md file in the upper level 'examples' directory for more information about examples.) 7 8This example shows how to set up ESP chip to interface with CDC-like device by using the CDC-ACM Host Driver. CDC-like devices implement a Vendor-specific class, and support a subset of the functions of a fully compliant CDC-ACM device. 9 10## How to use example 11 12### Hardware Required 13 14Any ESP board with USB-OTG supported and a Quectel BG96 LTE/GPS modem. 15 16Connect USB_D+, USB_D-, GND and +5V signals of ESP board to BG96. 17 18_Note:_ Quectel BG96 modem must be started after power-up by applying low pulse on PWRKEY (pin 15). 19 20#### Pin Assignment 21 22See common pin assignments for USB Device examples from [upper level](../../../README.md#common-pin-assignments). 23 24### Build and Flash 25 26Build the project and flash it to the board, then run monitor tool to view serial output: 27 28```bash 29idf.py -p PORT flash monitor 30``` 31 32(Replace PORT with the name of the serial port to use.) 33 34(To exit the serial monitor, type ``Ctrl-]``.) 35 36See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects. 37 38## Example Output 39 40After the flashing you should see the output at idf monitor: 41 42``` 43I (276) BG96: USB Host installed 44I (24446) AT: ATE0 45I (24446) AT: 46OK 47 48I (24526) AT: 49+QIND: SMS DONE 50 51I (24646) AT: 52APP RDY 53 54I (25446) BG96: Sending AT 55I (25446) AT: 56OK 57 58I (26446) BG96: Enabling GNSS 59I (26446) AT: 60OK 61 62GPVTG Sentence: 63 Track [deg]: 0.00 64 Speed [kmph]: 0.00 65 Speed [knots]: 0.00 66GPGSA Sentence: 67 Mode: A 68 Fix: 1 69 PDOP: 0.00 70 HDOP: 0.00 71 VDOP: 0.00 72GPGGA sentence 73Number of satellites: 0 74Altitude: 0.000000 75GPRMC sentence 76Longitude: 77 Degrees: 0 78 Minutes: 0.000000 79 Cardinal: 80Latitude: 81 Degrees: 0 82 Minutes: 0.000000 83 Cardinal: 84Date & Time: 00 Jan 00:00:00 1900 85Speed, in Knots: 0.000000 86Track, in degrees: 0.000000 87Magnetic Variation: 88 Degrees: 0.000000 89 Cardinal: 90Invalid Magnetic Variation Direction! 91Adjusted Track (heading): 0.000000 92I (27446) BG96: Sending AT+GSN 93I (27446) AT: 94860517045660414 95 96OK 97... 98 99``` 100