qcc3040可以做单挂耳吗?
取代csr8615那种?单个童话场景使用,非earbud模式。qcc3040可以做单挂耳机 肯定可以的只是不是立体声 Kevin.Zhao 发表于 2021-10-10 11:05
肯定可以的只是不是立体声
headset还是earbud工程做呢 jsr 发表于 2021-10-10 11:07
headset还是earbud工程做呢
都可以 headset的SDK也发布了吧 用3020不香吗?3020都白菜价了 可以做,L/R输出接一起 可以的,做个假配对数据就行 可以做,使用 earbud 工程, 直接跳过对耳配对的流程,然后执 主模式下的手机配对流程
参考代码如下:
void TwsTopology_Start(Task requesting_task)
{
twsTopologyTaskData *twst = TwsTopologyGetTaskData();
twst->start_cfm_needed = TRUE;
if (!twst->started)
{
DEBUG_LOG("TwsTopology_Start (normal start)");
twst->started = TRUE;
twst->app_task = requesting_task;
twst->pairing_notification_task.handler = twsTopology_HandlePairingActivityNotification;
Pairing_ActivityClientRegister(&twst->pairing_notification_task);
#if 0
MessageSend(TwsTopologyGetTask(), TWSTOP_INTERNAL_START, NULL);
#else
//// new code for headset device,gaillysu@qq.com added 2021.10.29
peer_find_role_completed(PEER_FIND_ROLE_PRIMARY);
//// peer_find_role_completed(PEER_FIND_ROLE_PRIMARY) will send PEER_FIND_ROLE_PRIMARY to tws_topologyhandler message right now
//// see to twsTopology_HandlePeerFindRolePrimary(), this function will do two things
//// 1:start pairing with headset (this device is primary role)
//// 2:start connecting peer earbud (secondary role)
#endif
}
else if ( twst->role == tws_topology_role_primary
|| twst->role == tws_topology_role_secondary)
{
DEBUG_LOG("TwsTopology_Start, sending immediate success");
TwsTopology_SendStartCfm(tws_topology_status_success, twst->role);
}
else
{
DEBUG_LOG("TwsTopology_Start called again. Response waiting for a role");
}
}
页:
[1]
2