PSoC™ 4 Forum Discussions
I'm running into issues with pairing/authenticating with a previously bonded device. When I call CyBle_GapAuthReq() when connecting to a new device, the procedure works just fine. However, if I connect to a previously paired/bonded device (bonding required is set with "just works" bonding), then I get the HCI error CYBLE_HCI_HOST_REJECTED_LIMITED_RESOURCES_ERROR when calling CyBle_GapAuthReq().
Is CyBle_GapAuthReq() the correct function call to re-encrypt the connection when I connect to a previously bonded device? Or is there an alternate call based on whether they were bonded or not?
Show LessHi,
I have a BLE central and a BLE peripheral with multiple characteristics.
My BLE central reads the values using CyBle_GattcReadCharacteristicValue( connHandle, readRequestParam ).
Now in the event callback for the CYBLE_EVT_GATTC_READ_RSP event, I can not see a direct way to distinguish, which characteristics values I am getting when I try to read all values at the same time.
I know I can use a state machine approach to read each characteristic one by one and setting the current characteristics handle globally during the read process, but this seems a bit to much hustle.
My code reads in the M590E GSM Modem via serial communication using interrupt. An array has been created to receive all the value coming into the mcu. My question is how do i do it in a way such that its onlt the massage alone i get to extract from the message content.
I use AT+CNMI = 2,2,0,0,0
this sends the whole message to the serial com directly, i want to kindly tell me how am i could retrieve the message content alone, without the other informations.
Attached is a copy of my project.
Thanks alot
Show LessHi all,
I've created a new Keil project exporting PSoC Creator original project.
Now, to obtain output .hex file from Keil compilation, the toolchain call CyElfTool.exe as postbuild rule to execute to inject checksum at fixed flash address 0x90300000.
I've compared the .hex file generated by Keil without postbuild rule and the .hex file generated by CyElfTool.exe as postbuild rule.
They are quite different. One is Intel Hex 16 and Cypress in Intel Hex 64
My problem is that I have to verify the 2 .hex file and verify that CyElfTool.exe doesn't modify anything a part checksum injection, so i'm looking for a tool that can convert one in the other or viceversa.
Here Keil .hex file:
:020000040000FA
:10000000001000204D0800000B0700000B07000047
:1000100010B544480068012189040843414908603B
:10002000182000F083F93F480068012189048843C3
:100030003C4908603C48486010203C490863C006C1
...
...
Hexe Cypress .hex file (by CyElfTool.exe):
:40000000001000204D0800000B0700000B07000010B54448006801218904084341490860182000F083F93F4800680121890488433C4908603C48486010203C490863C00666
:40004000384988600020086037481130384908603849092000F050F9092000F043F900203549C86010BD70B500BF72B600BF012032490877002411E0062060433049451881
:40008000284600F0F1F8064668792A79000210430146304600F010F9601CC4B2022CEBD32849294800F022FE332000012749886077204002C86099200004254908610862A3
:4000C0000B208004886299200004086305208107086206201F49086018480078022108431649087008464078C321084014301349487008460078162108431049087003204F
:40010000C00415498860062014490860FF20B23088601B20C00112498860FFF779FF00F0CAF870BD00010B400600008000020240000002406504000000020B4000700F4088
:400140009E0F0000080E0000E00D00000000014000500F4000800F4000010440000204400003044000F002F800F03EF80CA030C8083824182D18A246671EAB4654465D463E
:40018000AC4201D100F030F87E460F3E0FCCB6460126334200D0FB1AA246AB46334318470C0E00002C0E0000103A02D378C878C1FAD8520701D330C830C101D504680C60CE
Many thank Guys
PS: PSoCs ROCKS!!!
Show LessFrom my understanding, BLE subsystem (BLESS) runs concurrently with the main loop in the main() function. If both share a variable, is it possible to get a race condition? If it is possible, how to prevent it? Does PSoC creater supplies a mutex like object that we can use to lock/unlock?
Show LessDescription:
We test our application code (size~ 30KB) together with original hello-sensor sample code (size~8KB);
we find ota time of T(hello-sensor) is Ta and our application code is Tapp where Tapp > Ta too much.
We observe the reason why Tapp is bigger than Ta is owing to code size during OTA wireless transfer and
synchronous program/erase speed dependent of code size. Besides that, any other bug/reason we can
improve the OTA speed from handset side?
Besides, OTA speed seems to have something to do with OS system on handset like android phone/iOS phone;
how to prevent OTA speed change if user upgrades a higher version OS on phone?
Show LessWith standard BLE Android has a maximum of usually 6 packets per interval and iPhone 4 per interval. Has anyone tried with length extension on. Does the number of packets per interval increase or stay the same? If it does not then appending multiple packets into a longer one would be the best solution to increasing throughput. If it doesnt would probably be best to leave it as is for compatibility with both BLE 4.1 and 4.2 phones.
Much Thanks,
-Nick
Show LessI'm designing a board for the PSoC4-BLE and I'm wondering if there is any inherent need of the chip for a 32kHz crystal oscillator?
I'm not using it in my design, so I'd like to leave it out in order to bring down the cost of my board. I just want to be sure that I'm not going to run into any problems if I leave it out.
Show LessGood Morning Everybody,
In our quest to reduce power consumption I ran into this forum post:
Does it reduce power and how do you do it in PSOC creator?
Thanks,
Michael
Show LessHi all,
I'm working on sending data via Wi-Fi module ESP8266 from my kit to the serwer, right now I'm trying to get the response of this module after using the AT+CIPSEND command, unfortunately sometimes it works properly, and sometimes it doesn't. I have no clue what could be wrong right now. The problem is that about 50% of runs ends up with the ESP8266 restarts on its own after I send the CIPSEND command. When I searched in the Internet it says that the restart is caused because of the timeout of the device (rst cause 4) but on the other hand sometimes it works. Could You please give me a hand? I attach my whole project to this post. the function that I'm mentioning is in the load_com function when gE is pressed on the keyboard.
Show Less