Go to advanced search

by davethomaspilot
Sat Jun 01, 2019 12:40 pm
Forum: Troubleshooting
Topic: Virtual Desktop with RealVNC
Replies: 11
Views: 6529

Re: Virtual Desktop with RealVNC

Is there a way to do something similar with x11vnc? I haven't figured out a way to do a reverse connection in realVnc like x11vnc supports. I want an application running on the vncserver host to instruct client machines to connect to the server. The reverse connection feature in realvnc starts a new...
by davethomaspilot
Fri Mar 29, 2019 8:47 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

Good idea.

Really easy to spoof the serial number. Most copiers wouldn't be running on a 3A+, so that would help a bit.

I know it's not going to be bullet proof. But, I want to do what's easy for me to do.

Thanks again!
by davethomaspilot
Fri Mar 29, 2019 6:21 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

Yes, I'm already getting the board serial using that interface. So, when you referred to BOARD MAC, you meant serial number. Makes more sense. I was going to construct a unique hardware identifier by combining an (obfuscated) combination of the serial number and wlan mac address. But there's no poin...
by davethomaspilot
Fri Mar 29, 2019 6:02 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

Actually, I guess there's no point in getting the mac address at all. Just get the serial an calculate it for the interface of interest?
by davethomaspilot
Fri Mar 29, 2019 5:59 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

I can confirm what DougieLawson posted for getting the mac address works. There's no "wrong interface", there's only one on an rpi3A+. You get an (lightly) encrytped version of wlan0 on an rpi3A+. For my purpose, I really don't care whether I get the eth0 or wlan0 when the code runs on a 3B+. But, I...
by davethomaspilot
Fri Mar 29, 2019 5:38 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

When I do: pi@HeatTracker:~/HeatTracker $ ls /sys/class/net/*/address /sys/class/net/lo/address /sys/class/net/uap0/address /sys/class/net/tun0/address /sys/class/net/wlan0/address You can see the interfaces. The uap0 and wlan0 have the b8:27:eb:c9:d8:3b address: pi@HeatTracker:/ $ cat /sys/class/ne...
by davethomaspilot
Fri Mar 29, 2019 5:37 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

Just to clarify...

The only MAC on an RPI3A+ is the wifi MAC, correct?
by davethomaspilot
Fri Mar 29, 2019 5:35 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

Thanks!!

Never would have figured it out on my own.
by davethomaspilot
Fri Mar 29, 2019 5:24 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

I don't see anything in the mailbox interface documentation referenced in this thread where an interface can be passed for the mac address request. How is that done? How would I map something like wlan0 to an interface (integer, I assme)? THAT IS THE BOARD MAC ..... NOT THE WIFI MAC What is "THE BOA...
by davethomaspilot
Fri Mar 29, 2019 5:16 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

Again, there is no eth0
pi@HeatTracker:~/HeatTracker $ cat /sys/class/net/eth0/address
cat: /sys/class/net/eth0/address: No such file or directory
pi@HeatTracker:~/HeatTracker $
RPI3A+ does not have ethernet.
by davethomaspilot
Fri Mar 29, 2019 4:59 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

It's not just byte swapping. Note the nibble swapping. 0xb8 versus 0x8b. 0x27 versus 0x72, etc. Normally, it's just the bytes that are swapped, not the nibbles. Maybe if I had the memory layout (which bytes were at each address), I could figure it out. This rpi has no eth0 (it's an rpi3A+). That's w...
by davethomaspilot
Fri Mar 29, 2019 3:53 pm
Forum: Bare metal, Assembly language
Topic: Understanding the mailbox property interface
Replies: 25
Views: 2968

Re: Understanding the mailbox property interface

Maybe I should start a new thread, but my question seems closely related to this one. I want to use the mailbox interface to get mac address. I'm getting something back that can be "nibble swapped" to match the mac address I get by doing: pi@HeatTracker:/ $ cat /sys/class/net/wlan0/address b8:27:eb:...
by davethomaspilot
Sun Mar 03, 2019 8:54 pm
Forum: Networking and servers
Topic: Raspberry pi 3 B+ as Access Point and Wifi client
Replies: 15
Views: 10034

Re: Raspberry pi 3 B+ as Access Point and Wifi client

Thanks for this info! I followed pieyeguy's advice and expanded the dhcp address range to include 192.168.50.1. I can wifi connect to the hotspot and then ssh and/or vnc connect to 192.168.50.1. The pi also connects as a client to my wifi router. Everything works! But, it doesn't seem reliable. Eve...
by davethomaspilot
Wed Feb 20, 2019 12:34 am
Forum: General discussion
Topic: OK, what am I doing wrong with Stretch and X11vnc
Replies: 9
Views: 3179

Re: OK, what am I doing wrong with Stretch and X11vnc

Ok, so you can fix x11vnc by just getting a more recent version that what's in the latest version of stretch. You can't get it with apt-get install, probably because there seems to be a push to use realvnc instead. Ok, fine, but they are not equivalent, especially if you want to use the more advance...
by davethomaspilot
Tue Feb 19, 2019 4:08 pm
Forum: Networking and servers
Topic: Internet access for ethernet connected RPI network-- Stretch, 3b,3b+
Replies: 2
Views: 487

Re: Internet access for ethernet connected RPI network-- Stretch, 3b,3b+

Ok, got it working. Caveat--I don't really understand this stuff, it's just "Monkey read, monkey do". I borrowed the iptables setup that I see in this script: https://github.com/arpitjindal97/raspbian-recipes/blob/master/wifi-to-eth-route.sh sudo iptables -F sudo iptables -t nat -F sudo iptables -t ...
by davethomaspilot
Tue Feb 19, 2019 3:28 pm
Forum: Networking and servers
Topic: Internet access for ethernet connected RPI network-- Stretch, 3b,3b+
Replies: 2
Views: 487

Internet access for ethernet connected RPI network-- Stretch, 3b,3b+

I have a network of ethernet connected network of rpis with static ips. May not be relevant, but one of the rpis is set up as a wireless hotspot with a bridge using what I think is Surfer Tim's tutorial: https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/ After trying LOTS of d...
by davethomaspilot
Mon Feb 18, 2019 3:51 pm
Forum: General discussion
Topic: Stretch and X11VNC
Replies: 2
Views: 570

Re: Stretch and X11VNC

Sounds like the "stack smashing" x11vnc but that was introduced in several releases of x11vnc. I feel the version you get with apt-get install on stretch is pretty much useless. The bug is known, but apparently the policy is not to point to a newer release unless it's a security issue. Here's a thre...
by davethomaspilot
Fri Feb 15, 2019 5:48 pm
Forum: Raspbian
Topic: How to debug slow shutdown on Stretch
Replies: 0
Views: 218

How to debug slow shutdown on Stretch

I have hardware that monitors a GPIO defined in a dt-overlay that to determine that the rpi has completed shutdown. When the signal goes active, the five volt supply powering the rpi is turned off. I initiate a shutdown using: sudo shutdown -hP now Sometimes the shutdown occurs in just a few seconds...
by davethomaspilot
Fri Feb 15, 2019 3:55 pm
Forum: Networking and servers
Topic: Raspberry pi 3 B+ as Access Point and Wifi client
Replies: 15
Views: 10034

Re: Raspberry pi 3 B+ as Access Point and Wifi client

Thank you!

I put working on this on hold, pending a reply indicating "been there,done that".

I'll give it a try soon.
by davethomaspilot
Thu Feb 14, 2019 4:26 pm
Forum: Networking and servers
Topic: Raspberry pi 3 B+ as Access Point and Wifi client
Replies: 15
Views: 10034

Re: Raspberry pi 3 B+ as Access Point and Wifi client

Will this support simultaneous use of hotspot and wifi client? Some posts say you must choose a hotspot frequency that's the same as what the client uses. But, I think I read your script uses one based on the least congesting frequency band? Does that impact the reliability of the client connection?
by davethomaspilot
Tue Feb 12, 2019 3:40 pm
Forum: Networking and servers
Topic: Raspberry pi 3 B+ as Access Point and Wifi client
Replies: 15
Views: 10034

Re: Raspberry pi 3 B+ as Access Point and Wifi client

Thanks for this info! I followed pieyeguy's advice and expanded the dhcp address range to include 192.168.50.1. I can wifi connect to the hotspot and then ssh and/or vnc connect to 192.168.50.1. The pi also connects as a client to my wifi router. Everything works! But, it doesn't seem reliable. Even...
by davethomaspilot
Wed Nov 21, 2018 5:00 pm
Forum: Advanced users
Topic: pigpio--scheduling a future interrupt
Replies: 2
Views: 1381

Re: pigpio--scheduling a future interrupt

sigalarm has 1 second granularity. I need something in the millisecond or better range. The nice thing about the pigpio implmentation is that (I think) it uses hardware to do PWM on a GPIO. I think that means once started, a pulse on the GPIO will not be pre-empted by anything done in the kernel. Th...
by davethomaspilot
Tue Nov 20, 2018 10:35 pm
Forum: Advanced users
Topic: pigpio--scheduling a future interrupt
Replies: 2
Views: 1381

pigpio--scheduling a future interrupt

I see how to use gpioSetISRFuncEx in the pigpio C interface library. I think I can use this along with a gpio "wave" to get an ISR to execute at a precise, future time. I'm wondering if there's a way to do this without requiring a GPIO to toggle, or does use of the dma hardware/time stamping dictate...
by davethomaspilot
Thu Nov 15, 2018 4:19 pm
Forum: Advanced users
Topic: pigpio -- initMboxBlock: init mbox zaps failed
Replies: 0
Views: 718

pigpio -- initMboxBlock: init mbox zaps failed

I get this message when I abort debugging my application. I then have to reboot the pi. I read in another thread that its probably due to DMA resource being exhausted. Is there something I can add at the beginning of my app (even just for development/debugging) to clean up so I don't have to do a re...
by davethomaspilot
Mon Nov 12, 2018 9:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: An experiment in bit-banging SPI
Replies: 22
Views: 18289

Re: An experiment in bit-banging SPI

Joan, My project requires doing an SPI during a future 750 usec time window. This is to read a register on a wireless radio chip that provides a frequency error. The SPI read has to be done when data on a serial input (not SPI, bu regular serial) is know to be idling at 1. And, that's only guarantee...

Go to advanced search