1 2 Previous Next 18 Replies Latest reply on Apr 14, 2017 9:01 AM by jeffr_71

    CYBLE 012011-00 Interface to a Microchip PIC

      Hi, I may be going a little senile, but I want to simply connect the CYBLE 012011-00 device to a Microchip PIC via the Rx and Tx lines to use the device as a simple serial link. I have done this on an HC05 module and I only need 4 lines to connect (GND, +5v, Rx, Tx). I am trying to figure out which of the 31 pins on the CYBLE 012011-00 to use. The power pins are simple, but there appear a number of Rx and Tx lines. I guess the CYBLE 012011-00 has two UARTS (SCB0 and SCB1) and there are two RX lines and two Tx lines for each of these. I do not know which ones to use in CYSPP mode. Similarly, I cannot find which pins are the CYSPP and CP_ROLE pins as these need asserting low. Can anyone help please? Thank you, Chris

        • 1. Re: CYBLE 012011-00 Interface to a Microchip PIC

          A  CYBLE 012011-00 is not like an HC05 BlueTooth board. You must Program it to enable the UART Ble function.  It uses a Ble 4.2 API for interface. .There is a new library to allow you to interface it with Your microChip PIC.  Check this out http://www.cypress.com/documentation/software-and-drivers/ez-serial-ez-ble-module-firmware-platform

          • 3. Re: CYBLE 012011-00 Interface to a Microchip PIC

            Hi Chris,


            As Bob suggested, the User Guide contains the pin information that you need. See Section 8.1 for a table of each functional pin on all supported modules (note this is the *B guide revision, soon to be updated online to *C with a few extra modules). A couple of quick points/answers for your case:

            • The UART RX/TX pins are the same on every module running EZ-Serial firmware: P1.4 (RX) and P1.5 (TX). This allows easy host communication with the built-in USB-to-UART bridge interface provided by the BLE Pioneer kit.
            • On the 012011-00 and 2120XX-X0 footprint:     
              • CYSPP is P3.3
              • CP_ROLE is P3.5

            If you're using the CYBLE-012011-EVAL part, note that P3_5 on the module can be mapped to either or both of P3.5 and P2.7 using jumpers on the evaluation module PCB. To be able to use the SW2 button on the BLE Pioneer kit to select the role at boot time, you should ensure that it is connected to P2.7. (If you're using a custom design with your own PCB, this is not really relevant.)

            • 4. Re: CYBLE 012011-00 Interface to a Microchip PIC

              Hi Bob and jrow, thank you for this helpful information. I was rather hoping for an easy life and just use the device as a UART, but it looks as if I need to do some work. My original design choice was the Microchip RN42 which although not low energy, does appear to meet my needs. I do not need low energy as the device will be mains powered and does not always need to be on. I will have a think about this,

              • 5. Re: CYBLE 012011-00 Interface to a Microchip PIC

                Hi Chris,


                If you connect CYSPP to GND and CP_ROLE to VDD, that should give you about the closest thing to classic Bluetooth SPP as anything you'll find. The BLE spec doesn't have an official profile like SPP (largely because the low-energy protocol isn't optimized for streaming serial data as a use case). There will always need to be some additional work on the client side to interface with the CYSPP GATT structure, but it is relatively simple compared to some BLE profile client implementations.

                1 of 1 people found this helpful
                • 6. Re: CYBLE 012011-00 Interface to a Microchip PIC

                  Dear jrow,


                  Thank you for this information. However, it is all rather sad as it appears that the Cypress BLE devices cannot be used as a simple BLE UART without being programmed. This causes my manufacturer a problem as they will need to go (presumably) to Cypress to program the devices in the manufacturing quantities required (generally in batches of a few thousand). The advantage of the Cypress devices over other BLE devices is that they operate at 5v - the rest of the circuit uses 5v. I am looking for a device that can be used out-of-the-box as a component part. I am not interested in using the BLE microcontroller as the board it is to go on already has a microcontroller, and not all the manufactured boards will require a Bluetooth device.


                  Do Cypress have any 5v BLE devices that have a serial interface that can be used without needing to program the device?


                  Best wishes



                  • 7. Re: CYBLE 012011-00 Interface to a Microchip PIC

                    Hi Chris,


                    The CYBLE module line-up is currently being switched to use EZ-Serial firmware by default from the Cypress factory. This hasn't been fully implemented yet, but it will be soon. Once this occurs, modules will ship with this firmware and will not require an initial reflash before using it (though you will still be able to use the typical PSoC Creator development process and reflash custom projects).

                    1 of 1 people found this helpful
                    • 8. Re: CYBLE 012011-00 Interface to a Microchip PIC

                      Dear jrow,


                      thank you for this information. This is really good news and I will watch out for the new modules as they will be just what I need for the new design.


                      Best wishes Chris

                      • 9. Re: CYBLE 012011-00 Interface to a Microchip PIC

                        Hey jrow, 




                        Sorry to reuse this thread but I beleieve my question is somewhat related. 


                        I recently purchased a CYBLE-222014-EVAL EZ-BLE which promises out-of-the box EZ-Serial support given using the pioneer kit. I've tried to follow the steps listed in EZ-Serial BLE Firmware User Guide (http://www.cypress.com/file/323251/download) and was expecting the module to be start advertising as a peripheral as soon as it was plugged in. However, I dont see any radio activity and not quite sure if the EZ-Serial works.




                        I was of course able to use PSoc Creator to program the module but just like chris.hudson, I'm also interested in using it out-of-the-box via EZ-Serial. Is this truly supported and do I need to reprogram the module since it's now programmed via PSoc Creator?





                        • 10. Re: CYBLE 012011-00 Interface to a Microchip PIC

                          No problem; this is definitely a related question. Most likely, the evaluation module that you bought didn't have EZ-Serial firmware pre-loaded at the factory; that only started with modules manufactured beginning the first work week of 2017, and previously stocked CYBLE EVAL modules at various distributors probably aren't included in that. New bare modules that you purchase today should have the firmware preloaded, according to the PCN.


                          If you've reflashed some other firmware on it using Creator, then it doesn't have any EZ-Serial functionality regardless of what it originally had, so that's the most relevant point now.


                          In any case, you can download the EZ-Serial firmware in precompiled .hex form for the CYBLE-222014-01 module from the EZ-Serial page, then use PSoC Programmer to flash that onto the eval module. At that point, you can follow the instructions in the guide and use the module as if it had come from the factory with EZ-Serial on it.

                          • 11. Re: CYBLE 012011-00 Interface to a Microchip PIC

                            Dear jrow,


                            it is good that there are units now being shipped ready to use the serial comms straight from the box. Do these have a specific part number so that I can order them directly (I am in the UK)?


                            Best wishes



                            • 12. Re: CYBLE 012011-00 Interface to a Microchip PIC

                              Hi Chris,


                              There is no new part number; the hardware is identical and the firmware switch was formally announced via Product Change Notice (PCN) towards the end of last quarter. By this point, distributors should have new stock on-hand for mass-production modules. If you are not time-constrained, you can order a small quantity of the desired modules from your local distributor first to make sure that they do in fact have EZ-Serial firmware on them.

                              • 13. Re: CYBLE 012011-00 Interface to a Microchip PIC

                                I just bought a CYBLE-212019-EVAL 01 (1610-1-01G 9)  module from Digikey, since I read about EZ-serial somewhere.  However, after hooking it up to my micro/PC terminal (using a USB serial adapter), I get nothing at all...in fact my Android phone does not even see the module, let alone move any data.  The PC terminal never shows anything (though I really wasn't expecting it to until I connected at the phone & ran a bluetooth terminal) 


                                I was surprised to find the EZ-Serial manual is about 240 pages!!


                                VDD to 3.3V


                                GND to gnd & VDD/VDDR jumper installed


                                header 1.4 UART_RX to my UART_TX


                                header 1.5 UART_TX to my UART_RX


                                header 3.5 CP_ROLE tied to to 3.3V  (also jumper installed & verified pin5 of actual radio is tied in  )


                                header 3.4 ATEN_SHDN tied to 3.3V (also tried floating)


                                header 3.3CYSPP tied to gnd


                                tried also wiring  FACTORY_TR high, then apply power....still nothing 


                                do these connections seem correct? These have been carefully checked  (these match the wiring exactly), but again I see nothing (not even a pairing)  on the phone or PC

                                • 14. Re: CYBLE 012011-00 Interface to a Microchip PIC

                                  Hello nnovotney,


                                  The apparently non-communicative state in your case could be caused by tying CYSPP to GND, which forces/enables the CYSPP data pipe in hardware and bypasses the "command mode" that supports command/response/event communication through the API. Point #6 in the "UART Communication Issues" troubleshooting guide in Section 6.1 in the User Guide notes this, and other possible causes.


                                  When powered, a module with factory default EZ-Serial firmware will be visible on a device that is capable of BLE scanning and running an app that is designed to do this (e.g. CySmart or LightBlue on iOS devices, or CySmart or nRF Connect on Android devices). Note that generic not-yet-paired BLE devices will not always appear in the regular Bluetooth Device list provided on some platforms.


                                  On Android, most "Bluetooth Terminal" apps are designed around the classic Bluetooth Serial Port Profile (SPP), and these are not compatible with BLE devices regardless of the firmware on them.

                                  1 2 Previous Next