I'm looking at this shield for the PSOC 4 development kit:
It says that it is mainly for automotive applications, but there are no sample projects that I could find that related directly to automotive applications. Does anyone know if there are any sample projects for an actual automotive application? Specifically for pulling information such as speed, RPMs, etc... from the OBD-II port through CAN from a vehicle?
Any help pointing me in the right direction would be appreciated. Thanks in advance.Show Less
I'm trying to use a PSoC 4 BLE module from the CY8CKIT-042-BLE-A (CY8C4248LQI-BL583) to read the signal strength of two non-connectable Bluetooth beacons which operate at 10Hz. I then want to do some on-device calculations, and send out a vector based on the signal strengths to another PSoC 4 module.
However, I can't figure out how to set up the Bluetooth so that it can both read advertisements and write them. I've tried numerous sample projects from the "100 Projects in 100 Days" put out by Cypress. For the "Day 10: Observer" project, it will read the beacons, but when I try to switch the GAP to anything but "Observer", it stops working. There is no option for "Broadcaster and Observer" like there is for "Central and Peripheral". I have read that Central and Peripheral should have all the API's enabled, but that doesn't seem to be the case because it breaks the functionality of this code.
Additionally, "Day 11: Central and Observer" seems like it would be exactly what I need, but it won't read the beacons because they're non-connectable, and I don't understand what I need to change to get it to read them.
Does anyone have any advice on how I can both read from non-connectable beacons and then re-broadcast an advertisement of my own? (it doesn't need to be connectable)Show Less
1/ I have 10 samples of the CYBLE-212020-01, which we will be fitting in our new product.
The new PCB is around 2 weeks away, consequently, I’ve been using the CYBLE 212019-00 ( fitted to a Cypress kit cyble-212019-eval ez-ble evaluation board), which is plugged into a the CY8CKIT-042 BLE board.
2/Using the CY8CKIT-042 BLE board, I’ve used the over the air update example ( upgradeable stack and device CY8C4248LQI-BL583). This over the air update works.
I’ve changed the device to CYBLE 212019-00 ( same memory size to the BL583 etc ) and the i/o pin for sw2.
3/ After programming, the LED is green, I’ve used an APP on my mobile phone, which detects the ‘findme’ advertising packet. I can connect ( LED goes out) & then disconnect ( Green LED comes on). The Red LED comes on after 40 seconds ( the period which I’ve set in the GAP Settings).
4/ If I reset the dev kit ( SW1) & then press SW2 ( to request the over the air update ) when the LED is green, my mobile phone sees the OTA bootloader, however CY Smart 1.2 doesn’t see the OTA Bootloader.
The LED is RED and goes out completely after 3 minutes as set in the GAP setting in the upgradeable stack example project and the phone app no longer sees the OTA Bootloader advert.
( USB dongle is BLE 4.2, firmware 184.108.40.206, Hardware 220.127.116.11)
5/ When I reset the dev kit, the LED is RED and the mobile phone sees the OTA Bootloader advert, the LED goes off after 3 minutes.
6/ The only way that I can get the original ‘findme advert’ back is to reprogram the device from PSoc 4.0 creator.Show Less
When I rebuid it, err. produced.
I'm stucking in my project (see attachment) and need your help. My project is based on the BLE_HID_Joystick example with some changes for my requirements. I did not change the BLE modul and copied the BLE code, but I get an api error 100 (CYBLE_ERROR_INVALID_PARAMETER) and 300 after connecting to CySmart. My hardware is the CY8CKIT-042-BLE with the black PRoC board.
I couldn't find what error 300 is and I don't know how to solve error 100 (CYBLE_ERROR_INVALID_PARAMETER). It would be great if anyone would help me. I used PSoc creator 3.3 and 4.0.
The UART output:
BLE HID Keyboard Example Project <\r><\n> Bluetooth On, StartAdvertisement with addr: c04929199580<\r><\n> EVT_ADVERTISING, state: 3 <\r><\n> EVT_ADVERTISING, state: 3 <\r><\n> EVT_ADVERTISING, state: 3 <\r><\n> EVT_GATT_CONNECT_IND: 0, 4 <\r><\n> EVT_GAP_DEVICE_CONNECTED: connIntv = 0 ms <\r><\n> API Error: 300 <\r><\n> API Error: 10<\0>API Error:<\0>API Erro?API Error: 300 <\r><\n> API Error: 300 <\r><\n> CYBLE_EVT_GATTS_XCNHG_MTU_REQ, final mtu=<\0>API Erro<2>
can me somebody help with uart - speed?
When I set up the speed of uart to 19200bd, all is ok.
When I set up the speed of uart to 115200, I have a problem with receiving the characters. When I send characters from PC, uart interrupt detects twice more character.
Send from PC: HELLO
Receive in processor: H, null,E,null,L,null,L, null, O, null. Between characters is received the character: 0 (dec). I use the interrupt:RX FIFO not empty.
But in 19200bd, processor does not receive the character 0(dec).
The uart actual speed is 115196bd (The CLK of processor is 48MHz).
I tried to change Oversampling, CLK of processor, Stop bits, but everything does not work.
Thank you for help:)Show Less
I'm still stuck on a couple of things with my project. This is a project to add SD storage and BLE communications to a 1982 pocket computer. I'm trying to interface the PSoC to LH5801 CPU by emulating RAM. I am able to write data from the MCU to the CPU, but things are breaking down when I try to read the data bus and use the R/W signal.
Right now, I have a decoded CS on P0.5. This has an interrupt on falling edge that triggers the main routine to read the address bus and see what needs to be done. The R/W line goes to P0.4, and is also ANDed with the inverted CS signal to control OE of the data bus pins.
Looking at the timing diagrams for the PC, it seems that R/W pulses low after address and data are set up when writing to memory. So, I would like to have an interrupt on R/W that gets enabled when CS goes low, and disabled when CS goes high. The W interrupt handler would then read the data bus and write the data to MCU memory.
The problem I'm stuck on is that I can't find how to enable interrupts for both P0.4 and P0.5, and, when I tried to move R/W to one of the remaining available pins (P4.0-1, or P5.0-1) the designer tells me that the function is not reachable from those pins. I can't use anything on P1, P2, or P3, because those ports are fully allocated for address and data lines.
I thought there was a way to have more than one interrupt per port. Can someone tell me more about this, or how I can use P4 or P5?
ADC have possibility to select different mode of input channels but when I select it I receive error ( see pic).
Something wrong with configuration or it`s not possible to mix ?Show Less
I have been using CYBL10161-56LQXI where currently I am working over the BLE v4.2.
I have a question about the data that we store in CYBLE_EVT_GATTC_HANDLE_VALUE_NTF.
What I know till now is about CyBle_GattsNotification() that it is a non-blocking function and what it does.
I have save the data to be sent to the client over, CYBLE_GATTS_HANDLE_VALUE_NTF_T my_variable; // my declaration
and in some function this is what I use,
my_variable.value.val = MyData;
my_variable.value.actualLen = length;
my_variable.value.len = length;
my_variable.attrHandle = charAttrHandle;
So, my question is, do we need the memory that we are using to set up the descriptor(my_variable) to exist after my call returns? As right now I am saving it on the stack, which means at some point I am going to lose it.
Is it possible to program the CY8CKIT-049-4245AXI development kit via bluetooth ?
The plan is to break of the programmer part, connect the RX and TXD pins P4.0 and P4.1 to the TXD and RXD pins of the bluetooth module HC-05. The programmer software on the PC connects to the COM port (enumerated) of the computers bluetooth.
Is the above plan workable ??
I just want to replace the programming wires to the kit with bluetooth.
The entire system works off 3.3 VDC.
I tried the above scheme but the programmer software timed out always.