Go to advanced search

by deepo
Mon Jun 01, 2020 11:30 am
Forum: General discussion
Topic: FLOATING POINT
Replies: 44
Views: 1713

Re: FLOATING POINT

I don't know anything about QEMU, but if you're looking for help on printf and scanf have a look here: https://www.programiz.com/c-programming/c-input-output To make a simple calculator you could implement a "parse a line" calculator, i.e. let the user input e.g. 4.5 * 5.333 Then your program should...
by deepo
Sat May 30, 2020 9:34 pm
Forum: Troubleshooting
Topic: bluetoothctl won't pair Apple Wireless Keyboard 1G
Replies: 2
Views: 182

Re: bluetoothctl won't pair Apple Wireless Keyboard 1G

Have you looked at the guides floating in web-land?
https://adeepbite.com/apple-bluetooth-w ... pberry-pi/

There's also this thread:
viewtopic.php?t=138578

/Mogens
by deepo
Fri May 29, 2020 9:07 pm
Forum: Automation, sensing and robotics
Topic: How to manage the CAN message rate with the SocketCAN API?
Replies: 1
Views: 179

Re: How to manage the CAN message rate with the SocketCAN API?

Sorry, I don't know anything about CAN messages, but... An unobtrusive way to measure message rate is to record a timestamp before sending an amount of messages, send the messages incrementing a counter variable for each message sent, and another timestamp recorded when you stop sending messages. Th...
by deepo
Fri May 29, 2020 8:06 pm
Forum: Graphics programming
Topic: How to Program Graphics in C++ on Rasp Pi
Replies: 30
Views: 1679

Re: How to Program Graphics in C++ on Rasp Pi

There's also Rockette:
viewtopic.php?f=33&t=275104

/Mogens
by deepo
Fri May 29, 2020 3:30 pm
Forum: Beginners
Topic: Filtering data in file...
Replies: 14
Views: 460

Re: Filtering data in file...

HI All i have a file like this: one five two four three one *four five five two What i am trying to achieve is to add star to beginning of every line which contains sting 'five' but not to the one which already the star at the beginning. Anybody could help? School assignment? What tools have you be...
by deepo
Fri May 29, 2020 12:13 pm
Forum: Other projects
Topic: Car pi question
Replies: 12
Views: 739

Re: Car pi question

Does the interface box contain an amplifier?
If not, then you need an amplifier.
The Raspberry Pi can't drive speakers by itself.

/Mogens
by deepo
Fri May 29, 2020 11:47 am
Forum: Networking and servers
Topic: BLE connection with an android
Replies: 26
Views: 3799

Re: BLE connection with an android

No i did not transfer files from arduino to android. I was reading a txt file byte by byte and transmitting over ble. Okay so how can i change the cputemp code so that i can continously send strings without selecting a characterstic every time. You could look into something like the Eddystone beaco...
by deepo
Thu May 28, 2020 7:14 pm
Forum: Networking and servers
Topic: BLE connection with an android
Replies: 26
Views: 3799

Re: BLE connection with an android

Hi @douglas i am trying to send a .txt file from raspberry pi zero w to android mobile application BLE Terminal or my custom application. There are two ways of doing the same i.e complete file transfer or file read any of the method will be helpfull for me. Please guide me. I have succesfully done ...
by deepo
Tue May 26, 2020 6:29 pm
Forum: General discussion
Topic: Unstable raspberry pi quadcopter without gyroscopes. :-(
Replies: 49
Views: 1652

Re: Unstable raspberry pi quadcopter without gyroscopes. :-(

Well, that explains why a Raspberry is not suitable for such a job. Would you say that a microcontroller like the Ardiuno would be better able to control an airplane? Or would you discard the wish of my own programming and advise me to use things like Navio or other pre-made boards? Come on Lukas, ...
by deepo
Tue May 26, 2020 5:47 pm
Forum: Advanced users
Topic: RPI to arduino(MKR 1010) Master-Slave Ethernet Protocol.
Replies: 4
Views: 245

Re: RPI to arduino(MKR 1010) Master-Slave Ethernet Protocol.

Wired and WiFi components can communicate with each other through a wifi router, so no need to convert wifi to cabled ethernet with another component. Or am I reading your post wrong?
Look into sockets in python to create a socket server on the Pi.

/Mogens
by deepo
Tue May 26, 2020 5:19 pm
Forum: General discussion
Topic: Running a Script after boot finishes
Replies: 4
Views: 205

Re: Running a Script after boot finishes

To my knowledge there is no option to have a script to run "after" reboot, but people have used e.g. sleep 30 && myscript.sh to be sure that the pi has booted.

/Mogens
by deepo
Tue May 26, 2020 5:03 pm
Forum: General discussion
Topic: Unstable raspberry pi quadcopter without gyroscopes. :-(
Replies: 49
Views: 1652

Re: Unstable raspberry pi quadcopter

Thanks for the great answers. But that sounds rather frustrating, because I'm pretty sure that taking off and being stable in the air won't be that easy with gyros. I think about the project, as hard as it is for me to give up. So my replacement plan is to build an rc plane instead of a drone. I do...
by deepo
Fri May 22, 2020 5:45 pm
Forum: Advanced users
Topic: mpack not sending email to gmail
Replies: 4
Views: 278

Re: mpack not sending email to gmail

There is another thread here somewhere, where the solution was to either setup a 16 character password or allow less secure stuff in Gmail.

/Mogens
by deepo
Thu May 21, 2020 8:42 pm
Forum: Troubleshooting
Topic: One button Timestamp label
Replies: 6
Views: 206

Re: One button Timestamp label

All you need appears to be there, if you follow the links in the description of the video.
https://github.com/yokoyama-flogics/dym ... mp_printer

It says:
gen_datetime_label: Sub-program, to generate label image, which is called by printdatetime_server.

/Mogens
by deepo
Thu May 21, 2020 8:30 pm
Forum: Beginners
Topic: Best way to share keyboard and mouse between Pi and PC
Replies: 17
Views: 631

Re: Best way to share keyboard and mouse between Pi and PC

Have been using Barrier with Raspberrypi 4B and Windows 10. Found it to be very useful to cut from Windows 10 and Paste to the Raspberrypi. Only problem I have is how to active Barrier on both the Raspberrypi and the Windows 10 at startup. Has anyone succeeded? Yes I have - both running as a servic...
by deepo
Wed May 20, 2020 8:47 pm
Forum: Troubleshooting
Topic: One button Timestamp label
Replies: 6
Views: 206

Re: One button Timestamp label

by deepo
Wed May 20, 2020 7:50 pm
Forum: Networking and servers
Topic: Pi to monitor server online status
Replies: 9
Views: 447

Re: Pi to monitor server online status

How far have you come? Are you able to create the checkwifi.sh script in the first link? Are you able to add the script to cron? You won't want to implement the reboot and ifdown/ifup features, that's where you want to add sending an email. I haven't worked with MSMTP so I'm afraid I can only link t...
by deepo
Wed May 20, 2020 7:25 pm
Forum: Advanced users
Topic: Sending commands and Receiving Data from phone (Bluetooth)
Replies: 2
Views: 151

Re: Sending commands and Receiving Data from phone (Bluetooth)

Anything usefull here?
https://github.com/rjmatthews62/BtAVRCP

The AVRCP spec details how the thumbnail is supposed to be.
But I can see that your image is from that spec, so maybe there's not much help to find in the spec.

/Mogens
by deepo
Tue May 19, 2020 9:34 pm
Forum: Beginners
Topic: Best way to share keyboard and mouse between Pi and PC
Replies: 17
Views: 631

Re: Best way to share keyboard and mouse between Pi and PC

I use Barrier at work and have the Windows computer as server and my Linux as the client, as I mostly use the Windows computer and some times the Linux computer. Barrier works by sending keyboard presses and mouse movements to the other computer when the mouse is moved to the screen(s) of the other ...
by deepo
Mon May 18, 2020 8:13 pm
Forum: Beginners
Topic: video stream in real time
Replies: 6
Views: 276

Re: video stream in real time

My guess is that you have added a port forward configuration in your router, so that http port 80 is routed to your Raspberry Pi. You have also setup dynamic dns, so that requests to http://nomesito.ddns.net/ goes to the IP address of your router. And the port forward allows http requests to be serv...
by deepo
Mon May 18, 2020 8:06 pm
Forum: Beginners
Topic: video stream in real time
Replies: 6
Views: 276

Re: video stream in real time

Thanks for the informations. So is it impossible, in any other way, to view this video stream outside the local network ? I would like to point out that vice versa the index.htlm page can be viewed outside the local network. What alternative solution would you suggest ? The index.html page is viewa...
by deepo
Sun May 17, 2020 8:41 pm
Forum: Beginners
Topic: video stream in real time
Replies: 6
Views: 276

Re: video stream in real time

You are unable to see the video in browsers that are not placed on the same net as the Raspberry Pi and the camera (or whatever is at http://192.168.1.2:51042). By placing a link (the a href thing) on a page you effective ask any browser that views the page to visit http://192.168.1.2:51042 but that...
by deepo
Sat May 16, 2020 8:44 pm
Forum: Off topic discussion
Topic: What do you guys store your pi boards in when not in use?
Replies: 34
Views: 3781

Re: What do you guys store your pi boards in when not in use?

Roken wrote:
Fri May 15, 2020 10:56 pm
"When not in use"?

What does this mean?
LOL
How many do you have, and what are they all doing?

/Mogens

Go to advanced search