Go to advanced search

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

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: 6
Views: 110

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: 161

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: 476

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: 233

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: 128

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: 287

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: 287

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: 287

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: 287

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: 852

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: 1209

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: 1209

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: 287

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: 987

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: 987

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: 327

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: 426

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
by PeterO
Mon Dec 17, 2018 9:28 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1230
Views: 35170

Re: Why Avoid BASIC on RPi?

ejolson wrote:
Mon Dec 17, 2018 9:19 pm
PeterO wrote:
Mon Dec 17, 2018 7:29 pm
I'm sure I'm not alone
Have you though about translating your Algol Fibonacci program so it runs on Algol 68 Genie?
There was no Algol-68 compiler for the 803 so it is of very little interest to me.
PeterO
by PeterO
Mon Dec 17, 2018 7:29 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1230
Views: 35170

Re: Why Avoid BASIC on RPi?

DavidS wrote:
Mon Dec 17, 2018 6:56 pm
... does not mean that everyone that is a long time ARM coder is going to fall in line with the lunacy.
I'm sure I'm not alone in thinking that in this situation the lunacy lies elsewhere .....

PeterO
by PeterO
Mon Dec 17, 2018 10:38 am
Forum: General discussion
Topic: Username on forums (sorry for frequent posts)
Replies: 8
Views: 284

Re: Username on forums (sorry for frequent posts)

W. H. Heydt wrote:
Mon Dec 17, 2018 2:41 am
It certainly has the pattern for a radio (or TV) station in the eastern half of the US.
Which you knew because of WKRP ? :lol:
Ah, I now see you are in USA :-) Some of us Brits would only know because of watching WKRP :-)
PeterO
by PeterO
Fri Dec 14, 2018 10:13 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1230
Views: 35170

Re: Why Avoid BASIC on RPi?

Actually...This thread was about BASIC. So: But have you ever noticed how DavidS manages to turn every thread into a moan about how no one supports RiscOS ? Hey, weren't you the guy preparing ALGOL 60 to run on whatever an Elliott 803 has for an operating system? :) No OS on that machine, and I hav...
by PeterO
Fri Dec 14, 2018 9:43 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1230
Views: 35170

Re: Why Avoid BASIC on RPi?

The whole discussion about operating systems is moot - this is new code, no one in their right mind is going to write new code using an old deprecated operating system that may or may not be supported, especially when its trivial to use the current operating systems instead. That's bad engineering....
by PeterO
Tue Dec 11, 2018 10:47 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 1230
Views: 35170

Re: Why Avoid BASIC on RPi?

PeterO, Yeah, autocodes. Us young kids were spoiled with those new fangled, formally defined, portable, high level languages. The old guys said that was just a fad that would never catch on. By the way, your ALGOL 60 FIBONACCI NUMBERS program is now up on github: https://github.com/ZiCog/fibo_47849...

Go to advanced search