Raspberry PI ad-hoc configuration - raspberry-pi

I'm working on a project where i have two raspberry PI connected in ad-hoc mode. the project is for transmitting streaming data using UDP supported by a self developed ARQ protocol for reliable data transmission. the thing is that i want my 2 raspberry Pi to be synchronized! i tried to install the NTP server on one device and get the time on the other (as an NTP client) but when i wanted to reconnect them on ad hoc mode again, it was necessary to reboot the devices where the time was lost because the devices don't contain the hardware clock!
is there are any idea how to synchronize the two raspberry in ad-hoc mode ?
thank you!

Related

Device descriptor request failed

I tried working with my RPi Pico today and my computer doesn't recognize the usb I triple checked the cable is power and data. And yes I'm holding the button
I've also had this annoying issue. Seems to happen even more often on the Pi Pico W.
Use my laptop USB-C port to connect via a USB-C to USB 3.0 hub and this happens every so often.
Bought a powered hub from Amazon: "UGREEN USB C Hub 4 Ports, USB C to USB Hub 3.0". It has a separate USB-C power input in addition to the laptop USB-C connection and it works fine when no other USB devices are connected to the hub. Seems to be an issue similar to what Foibled2 mentioned where the underlying issue may be power related.
I'm struggling with the same thing. Other than uninstalling in Device Manager and rebooting (sometimes several times) I can get it to recover.
There must be a better way.
I've seen references to Zadig, etc. But finally figured out the issue in my circumstance.
I disabled all of my other USB serial devices (Prolific USB for GPS tracker; and CH340 USB for Android Nano).
After that, I could plug / unplug my R Pi Pico between application and USB drive mode without rebooting.
Works now as advertised. Hope this helps short cut a few hours for someone else!

How to uninstall the TPM simulator and use the real TPM chip on raspberry pi?

I'm using a raspberry pi running on Window IoT Core, and connects to Azure IoT hub. When I initially wanted to provision the device I just used a TPM simulator (via the Windows Device Portal). Now I've chucked in a real TPM chip to the pi, and I want to provision the device using that chip.
But I'm not seeing an option to do that on the device portal - TPM Configuration section.
How it looks now on the device portal now.
Maybe I'm missing something obvious. Any help is greatly appreciated.
Firmware TPM (fTPM) requires special Processor/SoC support that is not currently implemented on Raspberry Pi 2 or 3. You can use MinnowBoard or DragonBoard410c instead.MinnowBoard Max needs firmware version 0.80 or higher. DragonBoard410c provides fTPM capabilities out of the box enabled by default.

STm32L4R5VG firmware upgrade in run time

In my application, I am using STm32L4R5VG as a host MCU. I want to upgrade the firmware of host MCU in run time over USB through the Android mobile app.
I have looked into USB DFU mode, but in that case, my device will enumerate as ST USB and also I need to enable the boot loader with boot pin.
In actuality, my device will connect with the Android mobile app using the CDC class device and enumerates as VCP. So I want to send the firmware file from Android mobile to host MCU over VCP and write into Bank2 of internal flash (as current code is in Bank1). Once the file transfer is done, the device will reboot on its own and check for the latest firmware and boots from Bank2.
I am stuck at how to write at bank2 securely during run time and perform self reset to boot from Bank2.
If anyone already worked on this or know about this then please guide me or point to the link where I can get details for this.

Raspberry PI Access Point is not viewable on any device

I am working to setup RPI 3 model B as a standalone Access point as specified in this article. After i followed all instructions, and rebooted the RPI, The AP is not accessible or viewable on my iPhone or PC so i can connect through the wifi.
I am implementing this on a with latest raspbian stretch image (March version).
Let me know what i am missing so i can see the AP wifi network i set on the RPI device.
Thanks.
I don't know what issue you're having, but please try my setup from https://github.com/avishayp/pi-ap. I've tested it with multiple rpi3 devices.

How to connect TWO android devices to a pc via USB

I wrote an app which runs on two android tablets at the same time. The app enables both devices to communicate with a java server which is running on the pc, via WLAN socket communication.
The problem with the WLAN connection is that it doesn't always seem to be reliable. So I wanted to setup a socket communication to the server via USB cables.
My problem no is how to connect TWO android devices to the server via USB cables. I found this tutorial for connecting ONE device to the server via ADB, but I see no possibility using this approach for two devices:
http://www.anothem.net/archives/2010/10/15/android-usb-connection-to-pc/
Has anyone an idea how to solve it? Thanks!
If your tablet is runs ICS or newer Android OS, then it is very likely that it has OTG capable micro-USB socket, and you can add a USB-Ethernet dongle, and then connect the 2 tablets to your PC over ethernet, instead of USB. This, might be the most elegant solution.
Of course, you'd need a switch (or hub) to connect them together. Also note that, not all USB-Ethernet dongles may work out-of-the-box. You might have to experiment with few models, especially the el-cheapo ones to get them to work.