Forum Discussion
anupambit1797
Mar 07, 2025Iron Contributor
Parsing Issue
Dear Experts, I have a Data like below:- From this I have a to create an Output file with the below logic, (sample of an entry in Output file is below):- HARQ ID, can rang...
Kidd_Ip
Mar 08, 2025MVP
Believe you are looking to create an output dataset where HARQ IDs (ranging from 0–15) follow a retransmission sequence (0 -> 2 -> 3 -> 1 -> 0) while ensuring the System Frame Number (SFN) increments consecutively and loops back to 0 after reaching 1023:
# Number of HARQ IDs and retransmission sequence
harq_ids = list(range(16)) # HARQ IDs from 0 to 15
rv_sequence = [0, 2, 3, 1] # Retransmission sequence
# Max System Frame Number (SFN)
max_sfn = 1023 # SFN repeats after 1023
# Initialize variables to hold data
output_data = []
# Generate data
for sfn in range(2048): # Example: Generate data for 2048 frames (adjust as needed)
current_sfn = sfn % (max_sfn + 1) # Wrap SFN back to 0 after 1023
for harq_id in harq_ids:
# Calculate retransmission value (RV) for each HARQ ID
rv_index = sfn % len(rv_sequence) # Cycle through RV sequence
rv_value = rv_sequence[rv_index]
# Add the data to the output
output_data.append({"SFN": current_sfn, "HARQ_ID": harq_id, "RV": rv_value})
# Example of printing data (formatted for clarity)
for entry in output_data[:30]: # Print first 30 rows
print(entry)
anupambit1797
Mar 11, 2025Iron Contributor
Hi Kidd_Ip Thanks for your response, Sorry for my Ignorance, but which Language is it? doesn't seem to be PQ.
Br,
Anupam
- jonajjcMar 11, 2025Copper Contributor
It's python, you can use it in Excel with your data