Part Number: CC2640R2F
Hello Team,
One of my customers has used simplelink_cc2640r2_sdk_1_50_00_58 SPP-BLE server program with their application and reported that when he is using Mobile application for downloading data , it works fine but when he has made one of their equipment as Central by using Host_test application ( CC2640R2F) + Host MCU, he is able to get connected with this application 50% time. For debugging, I wish to suggest them HCI tester tool interfaced with Host_Test and tried to create a script for them as below with attached xml file:
________________________________
ClearTrace
Send_HCI_Reset
sleep (2000)
#init
Send_GAP_DeviceInit 8, 3, 0, 0, 1
Wait_HCI_Vendor_Specific_Event 5000, 0x67f, , ,
Wait_HCI_Vendor_Specific_Event 5000, 0x600, , , , , ,
#scan for 5 seconds
Send_GAP_SetParam 2, 10000
Wait_HCI_Vendor_Specific_Event 5000, 0x67f, , ,
#start scan
Send_GAP_DeviceDiscoveryRequest 0x03, 0x00, 0
#wait for scan to complete
OnEventWait_HCI_Vendor_Specific_Event 10000, 0x601, ,
OnTimeout
ClearTimeout
OnMismatch
ClearMismatch
RestartEvent
End Event
WaitForAllEvents 12000, True
ClearAllEvents
sleep 200
#establish link
Send_GAP_EstablishLinkReq 0, 0, 0, "05:04:03:02:01:00"
Wait_HCI_Vendor_Specific_Event 5000, 0x67f, , ,
Wait_HCI_Vendor_Specific_Event 10000, 0x605, , , , , , , ,
#Writing Characterstic
Send_GATT_WriteLongCharValue 0, 1F, 0, "01:00"
Wait_HCI_Vendor_Specific_Event 5000, 0x67f, , ,
Wait_HCI_Vendor_Specific_Event 10000, 0x513, , ,
#Writing Characterstic
Send_GATT_WriteLongCharValue 0, 1E, 0, "01:72:00:FF:FF:FF:FF:FF:FF:94"
Wait_HCI_Vendor_Specific_Event 5000, 0x67f, , ,
Wait_HCI_Vendor_Specific_Event 10000, 0x513, , ,
#waiting for Meter
Wait_HCI_Vendor_Specific_Event 20000, 0x051B, , , ,
Wait_HCI_Vendor_Specific_Event 20000, 0x051B, , , ,
#Terminate Link
Send_GAP_TerminateLinkReq 0, 0x13
Wait_HCI_Vendor_Specific_Event 5000, 0x67f, , ,
_________________________________________________
But when I am trying to run this file, HCI tester tool is giving me below error:
| 11:42:32.320 ERROR - Script parse Error |
| 11:42:32.320 ERRORed Line (37): Send_GATT_WriteLongCharValue 0, 1F, 0, "01:00" |
|
11:42:32.320 Script: -- Aborted |
Please advise what change should I make to this script file for running these API using HCI Tester tool
Regards,
Vikas Chola