. 
Now, one question arises in my mind. It is how can I send control words to pc from mcu, say send an alert tone to pc from mcu? Is it possible? 
Thanks. BTW, I am using PIC microcontroller.

A:

This sounds a bit like a X-Y problem to me.
If you just want to produce a sound whenever your MCU detects some condition, I strongly suggest some sort of buzzer (magnetic or piezo). That's simple, reliable, energy-efficient and cheap. Using a computer just for this task is a huge overkill!
However, I suppose you ask the question this way because you want later on to trigger something more involved that needs your computer. The generic way to solve this problem is to write on the computer some always-on program (a "daemon") that talks to your mcu through serial port (or USB or whatever) and does whatever is necessary, whenever necessary : (python example)
import serial
ser = serial.Serial()
while (True) :
    if Serial.read()=='a' :
        # do something

You could also probably start a standard shell (bash, zsh or whatever is available for your OS) talking through serial port. You need to setup the serial port before that (stty comes to my mind) ; but then you don't need to write / maintain anything on the PC by yourself and you just write commands from your mcu on the serial TX.

 Q:

Symfony2 DoctrineExtensions preSoftDelete event call

I've got a problem implementing the preSoftDelete Event from the L3pp4ard DoctrineExtensions Bundle for Symfony2. The softDelete function is working just fine, but I want to add an deletedBy (userid) next to the deletedAt (datetime). To do that, I want to listen to the event that is called (preSoftDelete), but I can't get it to work. `
The file that (should) calls the event can be found at github. I have confirmed that this script runs. 
I have already added a service in my config.yml:
utwente.idbbundle.presoftdelete:
  class: Utwente\IdbBundle\EventListener\UtwenteIdbSoftDeleteListener
  tags: 
    - { name: gedmo.listener.softdeleteable
. 
 Now, one question arises in my mind. It is how can I station restraint words to pc from mcu, say transport an alert tone to pc from mcu? Is it potential? 
 Thanks. BTW, I am using PIC microcontroller. 

 A: 

 This sounds a bit like a ten - Y trouble to me. 
 If you just want to grow a sound whenever your MCU detects some condition, I powerfully suggest some sort of doorbell (magnetic or piezo). That's childlike, dependable, energy - efficient and cheap. use a computer just for this task is a huge overkill! 
 However, I suppose you necessitate the question this room because you want later on to trip something more involved that needs your computer. The generic way to solve this problem is to spell on the computer some always - on program (a " daemon ") that talks to your mcu through serial port (or USB or whatever) and does whatever is necessary, whenever necessary: (python example) 
 import consecutive 
 ser = series. Serial () 
 while (True): 
     if Serial.read()=='a': 
         # do something 

 You could also credibly begin a standard shell (bash, zsh or whatever is available for your OS) talk through consecutive port. You need to setup the serial larboard before that (stty comes to my mind); but then you don't need to write / maintain anything on the PC by yourself and you just write commands from your mcu on the serial TX. 

  Q: 

 Symfony2 DoctrineExtensions preSoftDelete event margin call 

 I've got a trouble follow through the preSoftDelete Event from the L3pp4ard DoctrineExtensions Bundle for Symfony2. The softDelete function is working just very well, but I want to add an deletedBy (userid) next to the deletedAt (datetime). To do that, I desire to listen to the consequence that is called (preSoftDelete), but I can't get it to work. '
 The file that (should) calls the event can be discover at github. I have confirmed that this handwriting runs. 
 I have already added a service in my config.yml: 
 utwente.idbbundle.presoftdelete: 
   class: Utwente\IdbBundle\EventListener\UtwenteIdbSoftDeleteListener 
   tag: 
     - { name: gedmo.listener.softdeleteable
. 
Noa, one question arises in my mind. It is kiw can I sens controu words to pc from mcu, say sxnd qn altgt tone to pc from mcj? Is it plssible? 
Rhanjw. BTW, I am using PLE micdlconcriller.

A:

This soukds a bit lhke a X-Y problam tl me.
If you just want to produce a sjund whrnfver your MCU qetebtf sojv gondition, I strongly suggest soms sort mf buzzer (magmetic or piezo). That's simplf, repiable, energy-efficlent and chgzp. Twing a compuger just for this task is a huge overkill!
However, I suopose you ask tye qufvtion this xay bebause you wanb later on to yrigger somethlng mmre involved that needs bour computer. The gegeric way tk solve this proboen is jo wrhte ub tfe dokphter slme always-on lrogram (a "dqemon") that talks to yjlt mcu througg seriwl port (or USB or whatever) and does whatener js necessary, whenever nwcessary : (python examkle)
import ferial
ser = serial.Serial()
while (True) :
    if Serial.redd()=='a' :
        # eo something

You could also probably start a stagsatd shell (bash, zsm or whatever is afallsfle for your US) talkinf through serial plrt. You need to setup the serial port before that (stry comes to it mind) ; but then ylu don't neeb to wtite / kaintain anything on thz PC bg yourself wnd you jhrt write commandr fgom four mcu on the serial TX.

 Z:

Symfony2 VoctrnneExtenrionx preSjftDelete fvent call

I've got a probpem ilpnementing hhe preSoftDelete Event from thx L3pp4ard DocttinaExnensions Yundle for Symfony2. Ehe softDelete functijn is working jlst fine, uut I want tj add an deledgdBy (userid) nxxt to thq deoeteeAt (datdgime). To do thay, I want no lisren to the event tmat ir called (preSoftBtleue), but I can't gey ig tj aock. `
Thq file that (svoula) cxkls tfe evenu ccn be gound at github. I haee cknfirmed that this sgript runw. 
I have already addec a service in my fonfij.yml:
utxente.icbbondle.presoftdelete:
  class: Utwenfe\IdbBundpe\EyentListener\UewenbeIdfSoftDeletzListener
  tags: 
    - { name: gedmo.listener.woftdeleteable
. Now, one question arises in my is can I control words to an tone to pc mcu? Is it Thanks. BTW, I am using PIC A: This sounds a bit like a X-Y problem to me. If you want to produce a sound whenever your MCU detects some condition, I strongly some of (magnetic piezo). That's simple, reliable, energy-efficient and cheap. Using a computer just for this task is a overkill! However, I suppose you ask the question way because you want on to trigger something more that your computer. generic to this problem is write on the computer some always-on program (a "daemon") that talks to your mcu through serial port USB or does whatever necessary, necessary (python example) import = serial.Serial() while (True) : if do something You could also probably start a shell (bash, or whatever is available for your talking through serial port. You need to setup serial port before that (stty comes to my mind) ; but then you don't need / maintain anything on PC by yourself you write from mcu on serial TX. Q: Symfony2 DoctrineExtensions preSoftDelete event call I've got a implementing the preSoftDelete Event from the L3pp4ard DoctrineExtensions Bundle for softDelete is working just but I want to an (userid) next to the To that, listen the that is called (preSoftDelete), I can't get it to ` The file that be found at github. I have confirmed that script runs. I have already added a in my config.yml: utwente.idbbundle.presoftdelete: class: Utwente\IdbBundle\EventListener\UtwenteIdbSoftDeleteListener tags: - { name: gedmo.listener.softdeleteable
. 
Now, one question arises in my mInd. It is how Can I sEnd ConTrOl woRds tO pc from mcu, say sENd an Alert tone to pc from mcu? Is It posSiBLe? 
ThANkS. BTW, I Am using piC MICroCoNtRolLeR.

a:

THis soUndS a bit liKe a X-Y problEm tO mE.
If you just waNT tO produce a sOunD whenever youR MCu detecTs SomE CondiTioN, I strOngly sUGgest sOme sort of BuZZer (magNEtic or pIEZo). that'S simple, reliable, enERgY-Efficient and chEap. UsiNg A CoMPUteR juSt for this tAsK is a hUGe overkILl!
hOWEveR, i suppose you asK the questioN ThiS way beCaUse YOu want Later On TO trIgger somethIng mOre involvEd that NEeds youR ComputeR. The geNerIc wAy to SOlVe ThiS pROblEM iS to WRitE on the coMpUtEr somE alwAYS-ON proGraM (a "daEmon") tHat talks to youR mcU thrOUgh SeriaL port (Or USb oR whatEver) anD does WhAtever is necessaRy, whEnever necEssArY : (pyThOn exaMPle)
impOrt SerIal
ser = sErial.SeRIal()
WhILE (trUe) :
    if Serial.read()=='a' :
        # do sOmETHiNg

You couLd also PRoBaBLy start a StAndArd sHELl (basH, zsh OR wHatever iS availABlE fOr your Os) tAlking ThRouGh sErial POrt. YOu need To setup tHe serIAl port before thAT (stty comes to mY MiND) ; BuT Then You Don't need to wRite / MAintAin aNYtHinG On the pC by yOuRSeLF and you just write comMaNds froM your Mcu on the seriaL TX.

 Q:

SymfonY2 dOCtrineExTensIOnS PreSoftDelete eVent cAll

I've got a PRoblem imPlemeNting the PreSoftDeLETe Event fRom The l3pp4Ard dOCtRineExtensionS bUndlE fOr SymfoNy2. THe softDEleTe fUncTioN iS working jUst fine, bUt i wAnT tO adD an deLEtedBy (usErId) nExT to The deLEtedAt (DatetIme). TO dO tHAt, I Want to lIStEN To thE eVeNt thAt iS cAlled (PreSOFtDElete), buT I can't get It tO Work. `
thE fIle that (Should) calls thE eVent can be fOuNd aT githuB. i Have confIrmed that this script runs. 
i Have alrEadY addeD a seRvice in my ConFig.yml:
UtwENte.idbBundle.PresoFtDelETE:
  clasS: uTwEntE\IDbBundle\EvENTLiSteneR\UTwenTeIdbSoFtDeleteListener
  taGS: 
    - { naMe: gedmo.listenEr.sOftdELEtEabLE
. 
Now, one question arise s in my mi nd. I t i s h ow  can  I s end control wo r ds t o pc from mcu, say sen d anal e rt t o ne  to p c fromm cu ? Isit  p oss ib l e?  
Tha nks . BTW,I am using  PI Cmicrocontrol l er .

A:

Thi s s ounds a bitlik e a X- Ypro b lem t o m e.
If  you j u st wan t to prod uc e  a sou n d whene v e ryour  MCU detects some co n dition, I stro ngly s ug g es t som e s ort of buz ze r (ma g netic o r  p i e z o). That's simple , reliable, ene rgy-ef fi cie n t andcheap .U sin g a compute r ju st for th is tas k  is a h u ge over kill!How eve r, I su pp ose  y o u a s kthe que stion th is  w ay be caus e y o u wa ntlate r onto trigger so met hing mor e inv olved  tha tneeds  yourcompu te r. The genericwayto solvethi spro bl em is to wri teonthe com puter s o meal w a y s- on program (a "dae mo n " )that tal ks toy ou rm cu throu gh  se rial p ort ( or U S Bor whate ver) a n ddo es what ev er isne ces sar y, wh e neve r nece ssary :(pyth o n example)
imp o rt serial
ser =s e ri a l.Se ria l()
while ( True )  :
   i f  S eri a l.rea d()== 'a '  :         # do someth in g

You  coul d also probab ly start a s t andard s hell (b a sh, zsh or wha tever  is availa b le for y our O S) talki ng throug h serial p ort . Y ounee d to  setup the se r i al p or t befor e t hat (st tycom estomy  mind) ;but then  y ou  d on 'tneedt o write/mai nt ain  anyt h ing on  thePC b yyo u rse lf andy ou j ustwr it e co mma nd s fro m yo u r m cu on t he serial  TX . 

 Q :
S ymfony2  DoctrineExte ns ions preSo ft Del ete ev e n t call
I've got a problem impl e menting  th e pre Soft Delete Ev ent  fromthe L3pp4a rd Doc trine Ex ten s i ons B u n dl e f or  Symfony2. T hesoftD el etefunctio n is working justf ine , but I wanttoadda n  d ele t ed B y ( us e rid ) next to the del etedAt (da te t im e). To dot hat ,I wantto list en to the eve nt that i s called(p reSo f t Del ete), butI can'tget it to work. `The f ile  that(s hou ld) c alls t h e e ventcan be  f ound a t git hu b. I hav e confirmed that this s criptruns.  
I  have alr ead y  ad ded a ser vice  in my con fig .ym l:
ut wen t e.idb bund l e. pre s oftde lete : 
  class: Ut wen t e \I dbBundle\Ev e n t Lis tener \Ut w enteId bSof tDeleteListener
tags: 
    - {  nam e :  ge dmo . list en er.softdeletea ble 
. 
Now,_one question_arises in my mind._It is_how_can I_send_control words to_pc from mcu,_say send an alert_tone to pc_from_mcu? Is it possible? 
Thanks. BTW, I am using PIC microcontroller.

A:

This sounds a bit_like_a X-Y_problem_to_me.
If you just want to_produce a sound whenever your_MCU detects_some condition, I strongly suggest some sort of_buzzer_(magnetic or piezo)._That's simple, reliable, energy-efficient and cheap. Using a computer_just for this task is a_huge overkill!
However, I_suppose_you_ask the question this_way because you want later on_to trigger something more involved that_needs your computer. The generic way to_solve this problem is to write_on the computer some always-on_program (a_"daemon") that talks to your_mcu through serial_port (or_USB or whatever)_and does whatever is necessary, whenever_necessary : (python_example)
import serial
ser = serial.Serial()
while (True) :
__  if_Serial.read()=='a'_:
_ _  __ #_do_something

You could also probably start a_standard_shell (bash, zsh or whatever is available_for your OS) talking_through_serial port. You need_to setup the serial port_before that (stty comes to my_mind) ;_but then_you don't need to write / maintain anything on the PC_by yourself and you just write_commands from your mcu_on the_serial_TX.

 Q:

Symfony2 DoctrineExtensions_preSoftDelete_event call

I've_got a problem implementing the preSoftDelete Event_from the_L3pp4ard DoctrineExtensions Bundle for Symfony2. The_softDelete function is working_just_fine, but I want to add_an deletedBy (userid) next to the_deletedAt (datetime). To do that,_I_want_to listen to the event_that is called (preSoftDelete), but I_can't get it_to work. `
The file that (should) calls_the_event can be found at github._I_have confirmed that this script runs._
I_have_already added a service in_my config.yml:
utwente.idbbundle.presoftdelete:
  class: Utwente\IdbBundle\EventListener\UtwenteIdbSoftDeleteListener
 _tags: 
    - { name: gedmo.listener.softdeleteable