From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-14-2008 09:00 PM
04-16-2008 01:22 PM - edited 04-16-2008 01:23 PM
04-16-2008 10:21 PM
05-19-2008 10:39 PM
05-20-2008 02:39 PM - edited 05-20-2008 02:43 PM
Hi Seoul,
The UART device has to be enabled after it's opened and configured. There is a VI called "BF Device Enable" in the Blackfin Devices Palette. Use that to enable the device after you use BF UART Open and BF UART Control and before you read/write. Let me know if that helps.
On a side note, in future it would be great if you could create a new forum post for a new topic (like this) and not post in multiple places 1, 2 . This way it would easier to address your specific question and won't get lost in other posts. Thank you.
05-20-2008 03:16 PM
Nitin,
Hi, how are you? You think you could possibly look at my previous thread and let me know if you have any suggestions? I have UART communications working properly between two boards and I also have wireless communications working with the bluetooth devices if I send characters across. I believe my problem is coming from trying to take the output of mu_law compression and sending it to the tx_buffer. I have tried multiple different things to get each 8 bit unsigned character from the output array. In C what I did to send mu_law compressed data through UART is:
//buffers for the data that will be compressed
short mu_buffer[2] = {0,0};
short tx_exp[2] = {0,0};
//storing the data in the buffers
tx_exp[0] = (short)(iChannel0LeftIn>>8);
tx_exp[0] /= 4;
tx_exp[1] = (short)(iChannel0RightIn>>8);
tx_exp[1] /= 4;
//mu law compression functions sends the 8 bit data to the transfer buffer
mu_compress(tx_exp, mu_buffer, 2);
tx_buffer[0] = (char)mu_buffer[0];
tx_buffer[1] = (char)mu_buffer[1];
I do have up to the mu_law working in LabVIEW. I can compress, and expand on the same board and still play my audio normally. I want to make the compression happen on one board, then send it over UART to another board and the other board will expand the audio and play it back. I have this working entirely in C, and I really want to get it working in LabVIEW. Then I will attempt the bluetooth after.
Thank you for any suggestions!
-Sean
05-20-2008 08:01 PM
01-07-2012 10:01 AM
Hello!I've seen that you said that you managed to make communication via UART work properly betwwen two board.
I am working on a project that involves this step: i am recording a sound and transmitt it to the first blackfin( where i have the compression part of MELP alghoritm) , compress the sound here, and then i have to transmitt via UART the signal compressed to the second blackfin , where i have the decompression part of the MELP algorithm and then share the result obtained from the second blackfin to my headphones.
I have to compare the signal entering the first blackfin, with the result of the decompression returned by the second blackfin.
Unfortunately, I wasn't able to make my communication via UART between the two blackfins work.
I was wondering if you could ,please , send me the code where you did this to take a look.