Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Nishant

Search: Search took 0.00 seconds.

  1. Replies
    39
    Views
    1,197

    Finally I have been able to make some code. In...

    Finally I have been able to make some code. In the code below I am doing the encryption and decryption to together and it works but with some noise.

    encryption + decryption

    #include <Audio.h>...
  2. Replies
    39
    Views
    1,197

    Thanks a lot , that made it very clear. I have...

    Thanks a lot , that made it very clear. I have running the code given below and instead of taking a audio_block , I am testing with a fixes array of [128] and my code works but it fails when a take...
  3. Replies
    39
    Views
    1,197

    audio_block_t *in =NULL; in =...

    audio_block_t *in =NULL;
    in = receiveWritable();
    // if (!in) return;
    Serial.print("Audio_block:");
    Serial.println(in->data[0],HEX);

    I am getting varying values some are 32bits and some...
  4. Replies
    39
    Views
    1,197

    Sorry typo error. There seems to be error while...

    Sorry typo error. There seems to be error while typecasting and working with audio_block->data. But when I try my code with static array similar to audio_block->data size my code works
  5. Replies
    39
    Views
    1,197

    I am able to copy audio block data for...

    I am able to copy audio block data for processing , the same works out if I use a pre filled array of similar size
  6. Replies
    39
    Views
    1,197

    audio_block_t data[] is uint16_t so it does not...

    audio_block_t data[] is uint16_t so it does not have negative values
  7. Replies
    39
    Views
    1,197

    The code below is working perfectly and I don't...

    The code below is working perfectly and I don't need to use the modified println too



    #include <Crypto.h>
    #include <AES.h>
    #include <string.h>


    AESSmall256 aes256;
  8. Replies
    39
    Views
    1,197

    I am trying this code but somewhere data is...

    I am trying this code but somewhere data is getting corrupted

    #include <Arduino.h>
    #include "effect_encoder.h"
    #include <Crypto.h>
    #include <AES.h>
    #include <string.h>

    AESSmall256 aes256;
  9. Replies
    39
    Views
    1,197

    https://www.pjrc.com/teensy/td_libs_AudioNewObject...

    https://www.pjrc.com/teensy/td_libs_AudioNewObjects.html

    Also when take a single sample using code

    void AudioEncoder::update(void)
    {
    audio_block_t *in =NULL;
    in = receiveWritable();
    ...
  10. Replies
    39
    Views
    1,197

    @MarkT , how do I combine all 16 blocks of...

    @MarkT , how do I combine all 16 blocks of encrypted data into one array before transmitting ?
  11. Replies
    0
    Views
    123

    FMCW RADAR using HB100 and teensy

    I have seen this project on internet but the author has not yet shared his design. Any idea how this can be implemented ?
    https://hackaday.io/project/9970-hb100-fmcw-radar
  12. Replies
    39
    Views
    1,197

    Do I need to typecast the encrypted data ...

    Do I need to typecast the encrypted data
    uint8_t aes_block [16] back to
    uint16_t before
    transmit()
  13. Replies
    39
    Views
    1,197

    @MarkT thanks for help, i will work on the code...

    @MarkT thanks for help, i will work on the code as you suggested. I hope the audio is not delayed or distorted due ptr typecasting
  14. Replies
    39
    Views
    1,197

    Thanks for the correction.But any suggestions how...

    Thanks for the correction.But any suggestions how can I break and then recombine the int into bytes for processing for AES
  15. Replies
    39
    Views
    1,197

    @ MarkT , each value of AUDIO_BLOCK_SAMPLES is 32...

    @ MarkT , each value of AUDIO_BLOCK_SAMPLES is 32 Bit Int. I am trying to use block cipher which accepts only byte. How can I modify int to byte ?One thing which comes to my mind is using highByte()...
  16. Replies
    39
    Views
    1,197

    @houtson it works thanks. @el_supremo I want to...

    @houtson it works thanks. @el_supremo I want to process 16 Bytes through my update() function in audio object. When I use AudioMemory(16) so
    audio_block_t *block ;
    block = receiveWritable();...
  17. Replies
    39
    Views
    1,197

    Yes you are correct. But why should Serial.print...

    Yes you are correct. But why should Serial.print introduce distortion ?
  18. Replies
    39
    Views
    1,197

    Hi all, I am testing a very basic custom audio...

    Hi all, I am testing a very basic custom audio object where a just read a audio block and transmit the same.But the in the output is distorted and I am not able to identify why is that. I am sharing...
  19. Replies
    39
    Views
    1,197

    Oh I am really sorry, it was a coding issue.It is...

    Oh I am really sorry, it was a coding issue.It is working now thanks all for guiding me.
  20. Replies
    39
    Views
    1,197

    Thanks @houtson for the advice. But even if a put...

    Thanks @houtson for the advice. But even if a put the serial output like this

    void AudioEncoder::update(void)
    {
    audio_block_t *block;
    uint32_t i;
    int32_t sampleRect; //rectified result
    ...
  21. Replies
    39
    Views
    1,197

    Thanks for reply. When I use ...

    Thanks for reply.
    When I use
    Serial.print(sampleRect); I don't see any output in serial monitor
  22. Replies
    39
    Views
    1,197

    Working with New Audio Objects

    Hi All ,

    1. I am new member to Teensy family. I am playing around with existing audio objects created by other member to design custom objects.

    2. I trying to add Serial.print() to update()...
Results 1 to 22 of 22