NXP Semiconductors
UM11148
NxH3670 HAPI gaming
UM11148 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2019. All rights reserved.
User manual Rev. 1.4 — 24 December 2019
5 / 62
State Description
pairing In this state, the NxH3670 exchanges pairing information with the connected
device.
streaming The NxH3670 is connected and has opened audio connections with the other
device. Audio is streamed between both devices.
Commands or (external) events can cause transitions between these states. Below
an overview of the different transitions is given. The numbers match the numbers in
Figure 1.
1. When the initialization procedures have finished, the NxH3670 moves from the
booting state to the idle state. A PH_HCI_VS_APPLICATION_STARTED_SUB_EVENT
event is sent to indicate this transfer.
2. After the host (other than ‘none’) has selected the connection mode, the NxH3670
starts looking for other devices that are within range.
3. If a device is found, a PH_HCI_VS_DEVICE_FOUND_SUB_EVENT is sent to the host.
The state changes to ‘connected’.
4. The NxH3670 transitions to the ‘streaming’ state after the host issues
PH_HCI_VS_CONFIGURE_AUDIO_INTERFACE_CMD and enables audio connections.
This command can be issued before the NxH3670 is in the ‘connected’ state. In that
case, the NxH3670 immediately transition from ‘connected’ to ‘streaming’ state when
a connection has been established.
5. PH_HCI_VS_AUDIO_CONFIGURATION_CHANGED_SUB_EVENT is sent to inform the
host audio connections has been established and audio is being streamed.
6. The host can disable at any moment to stop audio streaming. When it does, the state
transitions to ‘connected’.
7. An event confirms that the audio is stopped.
8. If the connection mode is set to ‘none’, the other device is disconnected and the state
changes to ‘idle’.
9. When the other device moves out of range and the connections is lost, the host is
informed. PH_HCI_VS_DEVICE_LOST_SUB_EVENT is sent to the host and the state
changes to ‘idle’. It is up to the host to restart searching for the device by sending
PH_HCI_VS_CONNECT_CMD again.
10.If the connection mode indicates it can pair with other devices and an unpaired
device moves into range, the ‘pairing’ state is entered. In this state, the two devices
exchange pairing information. After the pairing procedure is finalized, the devices
disconnect and the host is informed (PH_HCI_VS_DEVICE_LOST_SUB_EVENT).
11.When another (paired or unpaired) device with a different
firmware version is in range, the host is informed using the event
PH_HCI_VS_WRONG_FIRMWARE_VERSION_SUB_EVENT.
2.2 Commands
2.2.1 Get version
This command can be used to retrieve the version of the firmware running on the
NxH3670.
Table 2. Get version
ID PH_HCI_VS_GET_VERSION_CMD