Reading EEPROM entry from sysfs - linux-device-driver

I am trying to read an eeprom entry from inside sysfs on beagleboard .Below Entry I am trying to read using simple cat/vi .
sys/bus/i2c/drivers/at24/1-0050/eeprom
But getting this error : cat: read error: Connection timed out
Can anyone let me know what is going wrong here?

If it is showing connection timed out.. i guess u should check the eeprom if it is connected properly or not or the connecting wires to it are ok..? i do not know on which platform u r using this ,, and how the eeprom is connected to the processor.. if it is through I2C then u need to check if that particular I2C port is enabled or no

Related

I'm not getting RX from a bluetooth PAN network I setup with my raspberry pi and another device. How can I debug?

I have one device that is bluetooth PAN capable and had success with a different raspberry pi. I think I messed up the configuration files on this new one but didn't change them before I enabled some process that I beleive created the pan0 network interface (seen in ifconfig). This is the guide I used "prog.world/raspberry-pi-pan" and I think I put in the wrong Address in /etc/systemd/network/pan0.network. I later tried to alter that interface with "ifconfig pan0 <actual IP 192.168 address that I assume is correct>. I tried to connect again and still am not recieving any info but I get confirmation that the connection is up and running on both sides. Could there be a way to restart or edit something to fix this? Look at the guide I mentioned above. Not sure how this all works after I make the config network files but it might have happened when I did the "sudo systemctl enable" command for systemd-networkd, bt-agent, and bt-network. Maybe there is another file I need to change the IP on?

How to scan all devices on local network using flutter

I am facing a problem with my flutter application I want to get a list of nearby devices on my same network for android 10 and below I am running this command using Process.run: ip neigh show however this command seems to be forbidden on android 11 and above as it always returns
Cannot bind Netlink socket: Permission denied
and not returning anything I tried the arp-scanner to check if it will work and to my luck, it worked but it has some data missing I need to get IP Address, MAC Address and Hostname the previous flutter plugin only return the IP addresses and always return null for the mac address.
If anyone has any suggestions on how to do this please help.
Google has removed the possibility to bind netlink socket to retrieve arp table from targetSdkVersion 30 through SELinux policies.
Without using bind function, I've made a library that does a workaround that consist in sending via netlink socket a type message not listed (30) and then I've used the socket receive to see which data system returns to that socket. From that, I've noticed that the received data was the arp table.
I do not know if this library works with flutter, but you can try it out.
You can find more here https://github.com/fulvius31/ip-neigh-sdk30/blob/main/ipneigh30/src/main/cpp/ip_neigh.c

Periodically the Internet disappears in the router Mikrotik

Good afternoon need help. There is a router Mikrotik. The Internet and wi-fi started to disappear, but the connection is periodically resumed. The Mac address is specified by my router in an error.
Error in logs : bridge port received packet with own address as source address (ee:ee:8c:0c:ee:fd), probably loop.
You need share a better environment description.
However, assuming you're using wireless interface, you can try proxy ARP on Wireless interface for avoid loops under WiFi bridge.
/interface wireless set arp=proxy-arp
More info here.

UART serial access with Rpi 3

I am trying to establish a serial connection between the RPI3 and an Arduino. Because that wasn't working I connected a USB to TTY cable from my laptop to the Rx/Tx pins of RPI. I was eventually able to use PuTTy to connect to it.
I am running Android Things on the RPI and the android code I have running is supposed to be a loopback (reading from UART and writing back what was read).
Here is where I am confused....
When PuTTy connected I was presented with a command line console on the RPI.
How do I get the Rx/Tx pins on the RPI to just be serial connections into and from my application and NOT a way to log into the console?
Is that a bad idea? I suppose if I ever needed to log into the RPI this would make it more difficult...
I figured out what I was doing wrong...
When following the setup directions at the below site I was using the Bluetooth mode instead of the Application mode. When I followed the directions for Application mode I was able to start using UART0 for serial comms
Set the console attribute to the following in cmdline.txt:
console=tty0
Add the following line in config.txt:
dtoverlay=pi3-disable-bt
Remove the following lines from config.txt:
enabled_uart=1
core_freq=400
https://developer.android.com/things/hardware/raspberrypi.html#disabling_the_console
Beginning with Developer Preview 3, in which USB-Serial devices support added, You can use external USB-UART dongles like this instead of UART of Raspberry Pi 3.

Configuring i2c on a Raspberry Pi2

I am trying to connect a Temp and Humi probe Adafruit AM2315 and it seams that the only thing I need to do is to get i2c running on my Pi2. I can't seams to find the proper instructions or command line to get it config and running ? Can someone help ?
did you connect it directly to the RPi2 I2C pins, or did you use the 10KOhm resistors too..?
It seems it needs two rapid connections to wake up first, before starting to send commands, see here:
http://raspberrypihobbyist.blogspot.it/2015/02/using-am2315-temperaturehumidity-sensor.html
David