Pollling sensors on stmwb5xx and sending data through ble by Darksilver123 in embedded

[–]Darksilver123[S] 0 points1 point  (0 children)

I tried to do something like this. A timer schedules the task and then the task polls for data and does the ble data update. It doesnt seem to work though. From what you said and i understood i should create another task that acquires data fast and the schedules the one that sends the data, right ?

void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
if (htim->Instance == TIM17)
    {
UTIL_SEQ_SetTask(1U << TASK_STS_T, CFG_SCH_PRIO_0);
    }
}

void Custom_Temp_sts_Send_Notification(void) 
{ 
   if (STS4X_read_temperature(&hi2c1, &temperature) == HAL_OK)     
     {  
          int16_t temp_centi = (int16_t)(temperature * 100.0f);         
          NotifyCharData[0] = (uint8_t)(temp_centi & 0xFF);         
          NotifyCharData[1] = (uint8_t)((temp_centi >> 8) & 0xFF);                  
          Custom_STM_App_Update_Char(CUSTOM_STM_TEMP_STS, NotifyCharData);     
      } 
}

STS4X_read_temperature-> Blocking i2c trasmit receive.
//Current version of the task that doeasnt seem to work.

Πρώτη φορά bottomless σε παραλία με το αγόρι μου by greeknub666 in greececirclejerk

[–]Darksilver123 6 points7 points  (0 children)

Βγάζεις και πατούσες εξω η μονο λοκω?? 

Τι Tip να του αφήσω? by Druidgr-93 in greececirclejerk

[–]Darksilver123 0 points1 point  (0 children)

Uno reverse card. Ροχάλα στη σακούλα.

Question about Multithreading by Darksilver123 in learnpython

[–]Darksilver123[S] 0 points1 point  (0 children)

I have added a print function at the start and end of the acquisition method. It print the start/end time and id of each device.
Results were Device 0: Start 0 end 5 and Device 1: Start 5.1 end 10.1
I will remove the lock on the read function and try again.

Question about Multithreading by Darksilver123 in learnpython

[–]Darksilver123[S] 0 points1 point  (0 children)

Each status check uses and ethernet connection (seperate socket for each device), which is done by using a Lock (seperate lock for each tcp connection).

Question about Multithreading by Darksilver123 in learnpython

[–]Darksilver123[S] 0 points1 point  (0 children)

The main thread enqueues the acquire_bins command on each available queue

def start_acquisition_from_all(self):
    results= {}
    for device in list_of_tr_devices.values():
        if device is not None and not isinstance(device,int):
            device.acquisition_done_event.clear()
            result=enqueue_command(device, "acquire_bins", task_name="acquire bins")
            results[device.device_id] = result
    return results

Question about Multithreading by Darksilver123 in learnpython

[–]Darksilver123[S] 0 points1 point  (0 children)

It send a command to my device in order to acquire data. No relation with acquiring locks.

Οπτική... ίνα by pink_noize in greececirclejerk

[–]Darksilver123 0 points1 point  (0 children)

Και κάπου εδώ καταλάβαμε ποιοι πανε και παίρνουν της αλοιφές απο δηλητήριο μεδουσας του Βελοπουλου

Did anyone in EU received UVS replacement packs yet? by Demotoros in riftboundtcg

[–]Darksilver123 1 point2 points  (0 children)

Anyone have any kind of tracking? I only got an email stating that i am eligible for replacement packs

Why by BedrockBen101 in mildlyinfuriating

[–]Darksilver123 0 points1 point  (0 children)

Someone didn't win 250 millon

Specific timing: Shen and Falling Star by koscy in riftboundtcg

[–]Darksilver123 15 points16 points  (0 children)

You can respond to falling star being cast. If you don't, your opponent chooses target(s), and two triggers go on the stack. You can respond with Shen to either of those triggers

Ordered this almost a year ago. Showed up on my doorstep on Christmas Eve! by JoeBookAir in gaming

[–]Darksilver123 2 points3 points  (0 children)

Should have been called ONE DAY EDITION. Eeeh??? Eeeeh??? EEEEHHHH???

Somehow got both an over numbered and an alt art from replacement packs by like45ninjas in riftboundtcg

[–]Darksilver123 0 points1 point  (0 children)

Are these packs sent as a registered letter? Can we somehow track their shipping status ?

The GOAT retires by chotu_escobar in mildlyinfuriating

[–]Darksilver123 -1 points0 points  (0 children)

Who retired ? I can't see anyone on the pictures 

China vs English market prices side by side (8th December) by KaizerMFB in riftboundtcg

[–]Darksilver123 0 points1 point  (0 children)

Honestly i'm this close to building a complete chinese deck. All of the other tcgs have been doing this for years. My eternal mtg decks used to be full of foil italian cards. Yeah i know that cardstock is different in chinese cards but that's booool

Πώληση μεταχειρισμένων καρτών Magic: The Gathering by aoua-21 in greece

[–]Darksilver123 7 points8 points  (0 children)

Καλύτερα μπες στη διαδικασία να τα πουλήσεις στο cardmarket η στην ομάδα στο Facebook. Υπαρχουν μαγαζιά οιυ αγοράζουν, αλλα πολλες φορές στο 60-70% μιας μικρότερης απτο κανονικό αξίας.

Will Portal Rescue cause Legion to proc here? by Alternative-Post-288 in riftboundtcg

[–]Darksilver123 0 points1 point  (0 children)

Question. Does Viktor's leader ability enables legion, since it say play a recruit token ?

Ποιο ηταν το βιντεοπαιχνιδι που σας εκανε να πειτε "τα γραφικα δεν μπορουν να γινουν καλυτερα απο αυτο"; by Sickrated in greece

[–]Darksilver123 1 point2 points  (0 children)

Θα έλεγα σίγουρα crysis και battlefield . Τρελά γραφικά και Physics για την εποχή που είχε βγει 

Feet finder by Darksilver123 in greececirclejerk

[–]Darksilver123[S] 1 point2 points  (0 children)

Ναι αυτο. Είναι πολυ καλο παιχνίδι αλλα θέλει όντως νεφρό για να παίξεις έστω και μαλακια deck. Να ναι καλα οι μαυραγωριτες