Go to advanced search

by andira123
Mon Apr 24, 2017 9:51 pm
Forum: Off topic discussion
Topic: wifi signal in wavemon raspberry pi
Replies: 5
Views: 1764

Re: wifi signal in wavemon raspberry pi

it's hard to calculate because dbm fluctuates up and down. Do all raspberry pi shows this? I read some forums and someone said that raspberry pi's dbm are positive number. I also want to ask will it be the same result of dbm if I use my dongle on my laptop and in my raspberry pi? will I get the same...
by andira123
Mon Apr 24, 2017 7:06 am
Forum: Off topic discussion
Topic: wifi signal in wavemon raspberry pi
Replies: 5
Views: 1764

wifi signal in wavemon raspberry pi

Hi, I'm trying to see my wifi signal strength using wavemon. I've googled about dBm levels are around 0 ... -100 dBm. But why is my dBm around 10 ... 19 dBm. I'm confused. because I want to convert it to it's RSSI and I do not know how to convert a positive dBm into it's signal level in RSSI. thank ...
by andira123
Thu May 05, 2016 6:43 am
Forum: Automation, sensing and robotics
Topic: Darwin OP robot using raspberry pi
Replies: 1
Views: 1965

Darwin OP robot using raspberry pi

Hey everyone, I was wondering if it is possible to compile and run the Darwin OP source code at least the walking movement to the raspberry pi 2? I've read about it in the internet using ubuntu 10.10 but haven't tried it yet using raspbian. I'm also wondering if anyone had tried it before and it wor...
by andira123
Sun Apr 10, 2016 7:46 am
Forum: C/C++
Topic: One thread got stuck
Replies: 12
Views: 2302

Re: One thread got stuck

Based on your quoted code, the issue looks like you're mismatching your locking/unlocking on mutex locking3. Condensing your code: void* moves(void *args){ if(commandSearch==1&&WIFI==1&&commandMove==0&&command==0){ pthread_mutex_lock(&locking3); ... } pthread_mutex_unloc...
by andira123
Sun Apr 10, 2016 7:40 am
Forum: C/C++
Topic: One thread got stuck
Replies: 12
Views: 2302

Re: One thread got stuck

And one more thing, the CPU usage when playing normal is only around 59% but when it got stuck the CPU usage could get to 130% Thanks in advance. This is not direct answer to your question, but just observationist, but if you want reduce CPU usage and you use ARM platform is better use the ARM FPU ...
by andira123
Sun Apr 10, 2016 7:37 am
Forum: C/C++
Topic: One thread got stuck
Replies: 12
Views: 2302

Re: One thread got stuck

rzusman wrote:is readWifi() thread safe?

Where is this defined?
It's on another file. It only reads data sent from my laptop.
by andira123
Sat Apr 09, 2016 3:28 pm
Forum: C/C++
Topic: One thread got stuck
Replies: 12
Views: 2302

Re: One thread got stuck

Hmm, don't know if this makes a difference in what you're experiencing, but if you're using global variables to hold state information that one thread uses to control another thread then I'd declare the variables as volatile, otherwise a thread might hold a copy of the variable in a register and an...
by andira123
Sat Apr 09, 2016 7:04 am
Forum: C/C++
Topic: One thread got stuck
Replies: 12
Views: 2302

Re: One thread got stuck

Can you post the code? Have you tried putting some debug statements/logging in the thread that is getting stuck? I've posted the code. it's the moves function that is error. I've erase the mutexes, change the thread to a normal function not a thread. but it still does that. the commandMoves do not ...
by andira123
Sat Apr 09, 2016 6:01 am
Forum: C/C++
Topic: One thread got stuck
Replies: 12
Views: 2302

One thread got stuck

I'm working with dynamixel servo, and at some point the function that runs the servo got stuck in the middle of the function and so it just stops and won't do anything. I programmed the function to change a variable so that an if statement in the while loop will deny another moving thread to be crea...
by andira123
Tue Feb 23, 2016 9:10 am
Forum: C/C++
Topic: Receiving 2 Multicast
Replies: 2
Views: 918

Re: Receiving 2 Multicast

Okay thank you, I will read about it.
by andira123
Mon Feb 22, 2016 5:07 am
Forum: C/C++
Topic: Receiving 2 Multicast
Replies: 2
Views: 918

Receiving 2 Multicast

I'm new to socket programming and I want to know if it's possible to receive two multicast from different devices? I have no problem receiving data from one multicast. I want to receive two multicasts from two different devices. One device uses port 3838 (default from the program) and the other one ...
by andira123
Thu Feb 04, 2016 10:10 am
Forum: C/C++
Topic: Weird UDP output
Replies: 3
Views: 772

Re: Weird UDP output

Okay, thanks for the reply. I'll try working it out
by andira123
Tue Feb 02, 2016 5:02 pm
Forum: C/C++
Topic: Weird UDP output
Replies: 3
Views: 772

Weird UDP output

I have this code to receive a UDP connection from 255.255.255.255 broadcast in port 3838. The data that is sent is the first 4 output are char 'R', 'G', 'm', and 'e' and the rest are uint8_t and uint16_t I use this code to receive it #include <sys/types.h> #include <sys/socket.h> #include <netinet/i...
by andira123
Thu Jan 07, 2016 3:57 pm
Forum: C/C++
Topic: Multithreading
Replies: 2
Views: 708

Re: Multithreading

- This post probably belongs better in the C/C++ sub-forum. - And using the [ code ] [ /code ] tags makes code much easier to read. - And the while loop in main() will over time create many instances of the threads, is that what your want ? no, I want the sensor function kept running even though th...
by andira123
Thu Jan 07, 2016 3:55 pm
Forum: C/C++
Topic: Multithreading servo and sensor
Replies: 2
Views: 845

Multithreading servo and sensor

So here is the case, I have two functions the first function is for sensors and the second one is for servo movement. I want the two functions to run together independently using C. so the sensor will always run even though the servo haven't stop moving. here is my code so far #include "/home/p...
by andira123
Thu Jan 07, 2016 3:31 pm
Forum: C/C++
Topic: Multithreading
Replies: 2
Views: 708

Multithreading

So here is the case, I have two functions the first function is for sensors and the second one is for servo movement. I want the two functions to run together independently using C. so the sensor will always run even though the servo haven't stop moving. here is my code so far #include "/home/p...
by andira123
Mon Dec 28, 2015 4:20 am
Forum: General discussion
Topic: C++ connect and receive data from wifi connection
Replies: 6
Views: 13547

Re: C++ connect and receive data from wifi connection

I was wondering, is there a library to connect to an access point and receive data from a device that is connected to the raspberry or can we use socket programming? I don't know if socket programming works for wifi or only ethernet cables. You're confusing layers of the TCP/IP network model. Don't...
by andira123
Mon Dec 28, 2015 4:18 am
Forum: General discussion
Topic: C++ connect and receive data from wifi connection
Replies: 6
Views: 13547

Re: C++ connect and receive data from wifi connection

PeterO wrote:Socket programming in C or C++ is not trivial task, to doing it properly is an advanced subject.
This tutorial might help:
http://www.linuxhowtos.org/C_C++/socket.htm

PeterO
Thank you sir :)
by andira123
Mon Dec 28, 2015 4:17 am
Forum: General discussion
Topic: C++ connect and receive data from wifi connection
Replies: 6
Views: 13547

Re: C++ connect and receive data from wifi connection

WIFI is just another way to communicate using Internet Protocols (IP). Like ethernet. Your program should use regular socket programming, client and server. Using TCP/IP. It should not need to be aware of how the traffic is communicated, ethernet, WIFI, PPP whatever. Not sure what you have in mind ...
by andira123
Sun Dec 27, 2015 12:42 pm
Forum: General discussion
Topic: C++ connect and receive data from wifi connection
Replies: 6
Views: 13547

C++ connect and receive data from wifi connection

So the scenario is that I want to connect my raspberry to an android tethering signal. My raspberry will wait for a data to be receive via a wifi dongle. The android will broadcast a data lets say it broadcast a char 'a'. When my raspberry receives the 'a', it will run function1 in my C++ code. if i...
by andira123
Wed Nov 25, 2015 12:35 pm
Forum: General discussion
Topic: ethernet won't work after touching 5 volt
Replies: 4
Views: 835

Re: ethernet won't work after touching 5 volt

Are the USB ports working? I once killed the chip that drives ethernet/USB on one of my older Pis (still not quite sure how I did it - might have been plugging in an unpowered USB HDD). Neither USB nor ethernet worked after that, rendering that Pi usable only via serial login console. :( I don't re...
by andira123
Wed Nov 25, 2015 2:01 am
Forum: General discussion
Topic: ethernet won't work after touching 5 volt
Replies: 4
Views: 835

Re: ethernet won't work after touching 5 volt

Is the Pi booting properly? http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=58151 Possibly you have just "blown" the fuse, which means the Pi isn't getting enough power to start up. Leave it unpowered overnight and see if it has recovered by the morning. it doesn't work. but th...
by andira123
Tue Nov 24, 2015 3:00 pm
Forum: General discussion
Topic: ethernet won't work after touching 5 volt
Replies: 4
Views: 835

ethernet won't work after touching 5 volt

so I accidentally touch a jumper that is connected to the 5 volt pin to the ethernet outer plug of a raspberry pi 2 B Model 1GB. It switched off for a moment than starts again. after that the ethernet won't light up when connected to my laptop. can anyone help? Thank you.

Go to advanced search