Questions tagged [interruption]

126 questions
0
votes
2 answers

Arduino - Gyro sensor - ISR - TimeStamp

I currently working to recreate a quad-copter controller. I am working on getting data from my gyro sensor, and to do that, I'm using an ISR with an interuption. My problem is, when I call my function "gyro.getX" on the main program, it work. But,…
Aldarme
  • 23
  • 4
0
votes
2 answers

Python : Interruption between sending chunks via uart

I'm sending some data via uart. I take single file and split it into 5120byte parts(chunks). Between sending this chunks there is interruption (probably based on baudrate value) I need to catch this interruption and switch from sending data to…
KyluAce
  • 933
  • 1
  • 8
  • 25
0
votes
1 answer

NodeMcu Lua receive information from app in a server

I developed a simple app in MIT APP Inventor that controls a heat pump water heater. The app sends a different string for each button pressed and the NodeMcu verifies which button was pressed, as you can see in the code…
0
votes
1 answer

c# Android - ISurfaceTextureListener thread interrupted then resumed when activity closed

I have an activity (with an ISurfaceTextureListener) with an async OnSurfaceTextureUpdated method in which I call the async SendPixel method: public async void OnSurfaceTextureUpdated(SurfaceTexture surface) { bool sendPixel = false; …
0
votes
0 answers

Function interrupted without return and exception

I have an "Update" function in which the end isn't executed, then I use the function "Console.WriteLine" to know where the function is interrupted. Here is the Udate function: async Task Update() { count++; try { …
0
votes
1 answer

Gammu on my Raspberry Pi (2 and 3) works perfectly only for 30 minutes

I meanwhile installed gammu in two different raspberry pi (2 and 3), and it works fine - but only for rather exactly 30 minutes. The daemon (according to top) continues, but no sms is sent or received. A shutdown -r command or a reboot allows to…
Hermann
  • 1
  • 1
0
votes
1 answer

Arduino street light with button attachInterrupt

I am trying to run a program in Arduino Uno where the street light that has 3 colors, red, yellow and green, and when I press a button, the street light goes from green to yellow to red and then the pedestrian street light goes from red to green,…
0
votes
1 answer

Rook movement function not finding interruptions

I am trying to write a function that checks if the black king is in check by the white rook. The problem occurs when I try to search if there are any pieces in between the rook and the king. void rook_white(piece A[]) …
user5298139
0
votes
1 answer

AVPlayer video becomes blank when another audio is active

I'm using AVPlayer to play video. And follow these steps Open Music app, play a song, and pause it Go to my app and play a video With the headphone plugged in, press the middle button to resume Music app playback Then the Music app plays, but my…
onmyway133
  • 45,645
  • 31
  • 257
  • 263
0
votes
2 answers

How can I interrupt a thread created from within a method?

I know that you can interrupt a thread created from say a runnable class, but how can I interrupt this thread I created from a method? Using a volatile boolean isn't working for me, so I assume either there is a better way to do this, or I need to…
0
votes
1 answer

Code Interruption Error

So the code I have below attempts to find WIP in column H. If we find WIP: copy 3 cells and make 10 replicas of them in the next column either in the same row or the next available row. For some reason the code only runs the loop successfully for…
Ori Meir
  • 51
  • 1
  • 7
0
votes
1 answer

How does lsyncd handle one of multiple destination servers being down?

If we run lsyncd on a server and want to sync from that server to 2 or more servers, and one or more of those destination servers is down at that moment, how does lsyncd handle it? Is there some mechanism to automatically update the down servers as…
John
  • 41
  • 5
0
votes
3 answers

How and Why Thread is interrupted under overloaded traffic

I have implemented a connection check thread. When I have created a heavy traffic I have realized that there are many "ConnWatchdogThread" instances. I think "continue" statement triggers the interrupted thread live and in that case new…
Ahmet Karakaya
  • 9,899
  • 23
  • 86
  • 141
0
votes
1 answer

Atmega 8 interruption doesn't work

I wrote this code: #define __AVR_LIBC_DEPRECATED_ENABLE__ #include #include #include "lcd.h" #include int screen = 0; void insideTemp(void) { while (1) { //some code hiere } } void…
henio180
  • 156
  • 1
  • 8
0
votes
2 answers

Image Width and Height is 0 after setting div unvisible before load has finished

I load a lot of images to my site and it works fine if I'm patient. But sometimes I fire an action with myDiv.style.display = 'none'; in it during image load and then the image gets width=height=0, for all the images haven't been completed. When I…
TJB
  • 1
1 2 3
8 9