It seems like your inquiry is related to Intel® Edison platform. In order for you to get your answer in a timely manner, we are now transferring your thread tho the respective forum.
1 of 1 people found this helpful
You can do it with a system service that changes it every time the Edison boots making the effect that the speed has been set "permanently" to std. In that case you will need two files, I'll call them I2C_speed_chg.sh and I2C_speed_chg.service. I2C_speed_chg.sh will be stored in /home/root/ and I2C_speed_chg.service will be stored in /lib/systemd/system.
I2C_speed_chg.sh will look like this:
#!/bin/sh echo std > /sys/devices/pci0000:00/0000:00:09.1/i2c_dw_sysnode/mode
Once you have created this file give it executable rights with chmod +x I2C_speed_chg.sh.
I2C_speed_chg.service will look like the following:
#!/bin/sh [Unit] Description=Change Edison's I2C speed [Service] ExecStart=/home/root/I2C_speed_chg.sh [Install] WantedBy=basic.target
Once you have created I2C_speed_chg.service type the command systemctl enable I2C_speed_chg.service and now your Edison's I2C speed should be set "permanently" to std.
Thank you Peter
I am supposing that I can browse /home/root/ and /lib/systemd/system via the Edison drive in windows. However, when I tried to browse I found that the Edison drive is empty! Would you tell me please how can access the folders where I have to store the files?
I am sorry for asking in too many details but I have just moved from UNO to Edison and I am trying how to adapt to it.
I managed to copy the files in Edison using WinSCP and now the frequency changes automatically every time I reconnect it to power.
Firstly, I followed the procedure written here to access Edison: http://rexstjohn.com/use-win-scp-to-copy-files-to-intel-edison/
Secondly, I copied the two files in the designated folders
Finally, I wrote the two commands in PuTTy.
Thank you very much for your help
I'm glad to be of help .