Skip to content

proj: Implement simple TX-RX comms#56

Merged
svire-at merged 3 commits intoShiegeChan:devfrom
Ferni41359:proj/50/simple-tx-rx
Dec 3, 2025
Merged

proj: Implement simple TX-RX comms#56
svire-at merged 3 commits intoShiegeChan:devfrom
Ferni41359:proj/50/simple-tx-rx

Conversation

@Ferni41359
Copy link
Collaborator

@Ferni41359 Ferni41359 commented Dec 1, 2025

  • Please check if the Pull Request fulfils these requirements

    • PR title follows the style: Type: Descriptive Name
    • Commit messages follow the guidelines
    • Code compiles
    • New additions are tested
    • Changes are documented on the website (refer to the docs section)
  • Link related open issue
    [TASK] Simple TX-RX Wave Transmission for FSK #50

  • Provide a short description
    Implement simple TX-RX path between two SensEdu boards

  • Does this PR introduce a breaking change? (What must be changed in other projects/examples due to this PR?)
    N/A

  • Other information (Anything else reviewers should know)
    N/A

@fanfare-ff fanfare-ff linked an issue Dec 1, 2025 that may be closed by this pull request
11 tasks
Comment on lines +31 to +35





Copy link
Collaborator

@svire-at svire-at Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to coding style guidelines for adding empty lines in code.


}

// TWO OPTIONS: SINGLE WAVE --> enable in the loop with delay; CONTINUOUS WAV --> enable in the set up
Copy link
Collaborator

@svire-at svire-at Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment potentially not needed?

// wait for the data and send it
while(!SensEdu_ADC_GetTransferStatus(adc));
SensEdu_ADC_ClearTransferStatus(adc);
serial_send_array((const uint8_t *) & mic_data, mic_data_size << 1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should have the reference operator & without 'space' between it and the type or the variable. Refer to previous examples.

Comment on lines +20 to +21
data = zeros(1,ITERATIONS);
time_axis = zeros(1,ITERATIONS);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style

Comment on lines +36 to +43
% % save measurements
% if ~exist("Measurements", 'dir')
% mkdir("Measurements");
% end
% file_name = sprintf('Measurements/%s_%s.mat', "measurements", datetime("now"));
% file_name = strrep(file_name, ' ', '_');
% file_name = strrep(file_name, ':', '-');
% save(file_name, "data", "time_axis");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove completely if not needed.

Copy link
Collaborator

@svire-at svire-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! In general, the coding style and neatness of the code should be taken care of. I left couple of comments as an example what should be changed.

Comment on lines +32 to +33
.mem_address = (uint16_t*)sine_lut, // TODO
.mem_size = sine_lut_size, // TODO
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments


// Configure the DAC

#define DAC_SINE_FREQ 33000 // 32kHz
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment doesn't match the actual frequency that is set

@Ferni41359
Copy link
Collaborator Author

@svire-at fixed. Please review it again in case it needs another changes.

Copy link
Collaborator

@svire-at svire-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! :)

@svire-at svire-at merged commit f44a4fe into ShiegeChan:dev Dec 3, 2025
@fanfare-ff fanfare-ff changed the title feat: Implement simple TX-RX comms proj: Implement simple TX-RX comms Dec 11, 2025
fanfare-ff pushed a commit that referenced this pull request Jan 23, 2026
* feat: Add basic structure for FSK project

* feat: Implement simple TX-RX transmission

Create FSK_TX, FSK_RX, rx_demod scripts

* Fix: coding style (#56)

* feat: Add two frequency settings

* feat: Implemented loop for bit modulation

* feat: TX with two DAC

* feat: Create Tx Rx sync with 2 DAC

* feat: Encode U symbol successfully

* feat: FSK demodulation working

* feat: Dynamic LUT implemented

* feat: Implement dynamic thresholding

Update Algorithm
Add Serial Monitor message transmission

* feat: Code polished

* refactor: Fix styling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Simple TX-RX Wave Transmission for FSK

2 participants