Go to advanced search

by PeterO
Fri Jan 18, 2019 9:39 am
Forum: General discussion
Topic: Too Many Pis
Replies: 5
Views: 240

Re: Too Many Pis

by PeterO
Fri Jan 18, 2019 8:34 am
Forum: Troubleshooting
Topic: Phantom signals
Replies: 2
Views: 51

Re: Phantom signals

Hi everyone I have a project that requires a Raspberry Pi to communicate with an Arduino Uno. To cut a long story short at various points in time I need the pi to tell the arduino to send any one of six infrared signals. I wired the raspberry pi to the Arduino but found that the Arduino would look ...
by PeterO
Fri Jan 18, 2019 8:29 am
Forum: Advanced users
Topic: careless boot over wifi
Replies: 4
Views: 93

Re: careless boot over wifi

mattmiller wrote:
Fri Jan 18, 2019 7:12 am
Love it when some new poster comes along and says "Topic self explanatory" when its actually meaningless to most of the people on the forum :)
I just assumed it was an autocorrect of "cardless boot".. Is "careless booting" a real thing then :?:

PeterO
by PeterO
Fri Jan 18, 2019 8:26 am
Forum: General discussion
Topic: Some Raspberry Pis not connecting to Internet
Replies: 3
Views: 86

Re: Some Raspberry Pis not connecting to Internet

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=GB network={ ssid="S.A.L.'S" psk="password1" priority=1 } network={ ssid="NETGEAR30" psk="password2" key_mgmt=WPA-PSK priority=2 } Priority works the other way up. Priority=100 is chosen ahead of priority=50. Pay attent...
by PeterO
Thu Jan 17, 2019 6:39 pm
Forum: General discussion
Topic: How to contact moderator directly?
Replies: 15
Views: 408

Re: How to contact moderator directly?

Jamesh, thank you very much for taking all that time and writing these long answers. And also thanks for clearifying that security is very important for you. Of course you're right recent German hack was not because of cold boot attacks. It was just an example for the importance of IT security. Sor...
by PeterO
Wed Jan 16, 2019 11:11 am
Forum: Beginners
Topic: Multiple partitions on SD card that came with RPi2?
Replies: 38
Views: 469

Re: Multiple partitions on SD card that came with RPi2?

Why are you plugging your SD card into the PC anyway ?

It sounds like the card has NOOBS on it already.

Have you tried plugging it into you PI and seeing what happens ?

PeterO
by PeterO
Sun Jan 13, 2019 9:01 pm
Forum: Troubleshooting
Topic: Pi slow to respond to initial connection, fast after
Replies: 6
Views: 133

Re: Pi slow to respond to initial connection, fast after

Hello everyone, I do believe this is my first post! Raspberry Pi 3B+ is working amazingly with the exception of one thing. Whenever I go to connect to it over the internet or over wifi it lags at first before it connects. Connections after the initial connection are quite quick. I have this issue w...
by PeterO
Thu Jan 10, 2019 12:02 pm
Forum: Python
Topic: Converting Float Values Into Bytes for SPI
Replies: 8
Views: 154

Re: Converting Float Values Into Bytes for SPI

TBH I would convert them into a decimal string , then transfer them as a null terminated text string and parse them back into floating point format at the Arduino end.

Do not underestimate the value of being able to read the values "on the wire" when debugging your code.

PeterO
by PeterO
Thu Jan 10, 2019 10:40 am
Forum: Other projects
Topic: Custom 5V 2A supply - random reboots...
Replies: 7
Views: 391

Re: Custom 5V 2A supply - random reboots...

Ironically that filter circuit is called a PI filter due to it being like the Greek letter π. However, it really isn't appropriate to use one in a low voltage , high(ish) power supply, and especially not after the regulator. They were used in the high voltage (100s of volts) supplies for valve (tube...
by PeterO
Tue Jan 08, 2019 7:45 am
Forum: Off topic discussion
Topic: Does anyone know how much RAM will be in the Raspberry Pi 4?
Replies: 12
Views: 736

Re: Does anyone know how much RAM will be in the Raspberry Pi 4?

binaryhermit wrote:
Tue Jan 08, 2019 5:57 am
But it's reasonable to say
How can it be "reasonable" when it's based on zero knowledge :?:
PeterO
by PeterO
Sun Jan 06, 2019 11:07 am
Forum: C/C++
Topic: #include <sys/socket.h>
Replies: 9
Views: 353

Re: #include <sys/socket.h>

This was not included in my base Raspian install. What library is it in so that I can fetch with apt-get? tia! That sounds very strange ! If the package is already installed then either: 1) The file has subsequently been deleted 2) The file system is corrupt and the file is lost 3) The file is ther...
by PeterO
Fri Dec 28, 2018 8:16 pm
Forum: Python
Topic: Python Pygame Collisions
Replies: 5
Views: 133

Re: Python Pygame Collisions

You can describe what you've tried until you are blue in the face, but until you show your code there is no means by which anyone can tell you where you are going wrong. So please show us your code.

PeterO
by PeterO
Tue Dec 25, 2018 6:20 pm
Forum: Beginners
Topic: TCP/IP Communication from PC to RaspberryPi
Replies: 15
Views: 294

Re: TCP/IP Communication from PC to RaspberryPi

Yes the manual page for bcopy says "This function is deprecated (marked as LEGACY in POSIX.1-2001): use memcpy(3) or memmove(3) in new programs. "

The code I originally sent you "works for me" ;) and is so old it may predate the legacy marking in posix.

PeterO
by PeterO
Tue Dec 25, 2018 5:50 pm
Forum: Beginners
Topic: TCP/IP Communication from PC to RaspberryPi
Replies: 15
Views: 294

Re: TCP/IP Communication from PC to RaspberryPi

Here is working (fixed) client.c code... memset(serverAddr.sin_zero, '\0', sizeof serverAddr.sin_zero); memmove( &serverAddr.sin_addr,hp->h_addr, hp->h_length); You have the src and dest the wrong way round in the memmove ! Oh, and you REALLY should check return values from things like connect and s...
by PeterO
Tue Dec 25, 2018 4:23 pm
Forum: Beginners
Topic: TCP/IP Communication from PC to RaspberryPi
Replies: 15
Views: 294

Re: TCP/IP Communication from PC to RaspberryPi

DuBBox wrote:
Tue Dec 25, 2018 3:26 pm
When I use the concrete IP-Addresses I can yes.

On the pi I can ping my working PC and on my working PC I can ping the pi
Can you post you complete source code so we can compile it and see what is going on.

PeterO
by PeterO
Tue Dec 25, 2018 3:12 pm
Forum: Beginners
Topic: TCP/IP Communication from PC to RaspberryPi
Replies: 15
Views: 294

Re: TCP/IP Communication from PC to RaspberryPi

Can you "ping" the machines from each other ?
PeterO
by PeterO
Sat Dec 22, 2018 8:32 am
Forum: General discussion
Topic: Wires and peripherals, ugly or tidy?
Replies: 19
Views: 878

Re: Wires and peripherals, ugly or tidy?

6by9 wrote:
Thu Dec 20, 2018 3:09 pm
He better, as my desk is adjacent!! :D
(Then again mine is almost as bad, despite us only having had since Monday to make a mess)
All settled in then ?
PeterO
by PeterO
Fri Dec 21, 2018 5:49 pm
Forum: Advanced users
Topic: How to get Raspberry's IP adress with c++ Code
Replies: 7
Views: 1214

Re: How to get Raspberry's IP adress with c++ Code

It always print Not Found Ok, so you posted in the "advanced users" forum, and asked about C++ (claiming to have already written your code in C++) , but it would appear you don't have much C or C++ experience ? Is that right ? If you are a new C/C++ programmer please say so and we can move forward ...
by PeterO
Fri Dec 21, 2018 1:09 pm
Forum: Advanced users
Topic: How to get Raspberry's IP adress with c++ Code
Replies: 7
Views: 1214

Re: How to get Raspberry's IP adress with c++ Code

Hi, My raspbery pi is doing regular tasks and send logs to the server. The network which server is running on has DHCP enabled. So sometimes IP of the raspberry can change (I thing IT guys, changes something on the network, and the IP which is assigned to raspberry is changes). When I need to chang...
by PeterO
Thu Dec 20, 2018 4:04 pm
Forum: Beginners
Topic: TCP/IP Communication from PC to RaspberryPi
Replies: 15
Views: 294

Re: TCP/IP Communication from PC to RaspberryPi

In your client code, you need to set the server IP address.... Here is code taken from an applcation of mine... Look at the call to "gethostbyname".... gboolean initCommsNetwork(void) { struct hostent *hp; struct sockaddr_in E803_server_name; int n; /* Create socket on which to send and recieve. */ ...
by PeterO
Wed Dec 19, 2018 6:24 pm
Forum: Troubleshooting
Topic: Why I can't use 2 usb hdd simultaniously?
Replies: 1
Views: 68

Re: Why I can't use 2 usb hdd simultaniously?

Best idea is to use a separately powered USB hub to connect the disks to the PI.
PeterO
by PeterO
Wed Dec 19, 2018 3:29 pm
Forum: Raspbian
Topic: 1 bug 1 flaw, no followup.
Replies: 10
Views: 1006

Re: 1 bug 1 flaw, no followup.

I also have never heard of xkill. https://linux.die.net/man/1/xkill HTH No help at all. What distribution does that web page refer to ? Does it apply to Raspbian ? You should always use man from the command line to get the pages installed on the local box to ensure they are appropriate. PeterO
by PeterO
Wed Dec 19, 2018 3:16 pm
Forum: Raspbian
Topic: 1 bug 1 flaw, no followup.
Replies: 10
Views: 1006

Re: 1 bug 1 flaw, no followup.

As anyone that does much on Linux will find use of xkill from time to time (we all make mistakes when writing or porting software), that is a very significant issue. You have a very "ego centric" view of the world. I've been writing X code for > 30 years and didn't even know that Xkill existed unti...
by PeterO
Wed Dec 19, 2018 2:01 pm
Forum: Beginners
Topic: How to mount external SSD
Replies: 7
Views: 328

Re: How to mount external SSD

Until you tell us what you have done, and show us what you have out into /etc/fstab no one will be able to tell you much ....

PeterO
by PeterO
Tue Dec 18, 2018 8:22 pm
Forum: Troubleshooting
Topic: Permission denied error even when using sudo.
Replies: 17
Views: 437

Re: Permission denied error even when using sudo.

n67 wrote:
Tue Dec 18, 2018 5:19 pm
There's so many better ways...
If you aren't going to help why do you post replies to questions ?
PeterO

Go to advanced search