Go to advanced search

by Sohil.Mehta
Tue Apr 09, 2019 8:04 am
Forum: Raspbian
Topic: CSV file not being written to third partition
Replies: 4
Views: 1062

Re: CSV file not being written to third partition

If your additional partition is mounted at /userdata your script is not configured to write to it: with open('/messidata/messi-sensor.csv','a',os.O_SYNC,newline='') as mySensor: I am sorry. It is not /userdata. The third partition is named as /messidata. So have I configured it correctly now?
by Sohil.Mehta
Tue Apr 09, 2019 6:33 am
Forum: Raspbian
Topic: CSV file not being written to third partition
Replies: 4
Views: 1062

Re: CSV file not being written to third partition

Cant say for sure ( no code posted ) but I suspect you need to add full paths to your python code, as a program running at the command line and a program being run using systemd will be operating in 2 different environments, so the program running using systemd probably has no idea how to find your...
by Sohil.Mehta
Mon Apr 08, 2019 10:12 am
Forum: Raspbian
Topic: CSV file not being written to third partition
Replies: 4
Views: 1062

CSV file not being written to third partition

I created a 3rd partition on my SD card using Gparted to log data from a python application on a csv. So now I have three partitions: boot, rootfs and messidata. When I run a python application manually: python3 /usr/bin/messi/messi-sensor.py , it works perfectly fine and data is logged in the form ...
by Sohil.Mehta
Mon Apr 08, 2019 6:59 am
Forum: Raspbian
Topic: RTC time does not sync system time at boot
Replies: 8
Views: 534

Re: RTC time does not sync system time at boot

You shouldn't need to modprobe anything for the ds1307 on Raspbian. There is a device tree overlay to handle it for you. Have a look in /boot/overlays/README So there are 2 i2c-rtc files in /boot/overlay: i2c-rtc and i2c-rtc-gpio. I guess what you are talking about is i2c-rtc. As far as I know, thi...
by Sohil.Mehta
Mon Apr 08, 2019 6:54 am
Forum: Raspbian
Topic: RTC time does not sync system time at boot
Replies: 8
Views: 534

Re: RTC time does not sync system time at boot

A quick google does not show anything for a specific driver for that chip. You could try the rtc-ds1307 BUT I do not know if that will work fully or not - this site https://os.mbed.com/components/DS3231/ infers that it’s the same driver for a wide range of Maxim chips. Maybe some one else here know...
by Sohil.Mehta
Sun Apr 07, 2019 3:44 pm
Forum: Raspbian
Topic: RTC time does not sync system time at boot
Replies: 8
Views: 534

Re: RTC time does not sync system time at boot

I am using DS-1308. So should I do:

Code: Select all

sudo modprobe rtc-ds1308
by Sohil.Mehta
Sun Apr 07, 2019 2:49 pm
Forum: Raspbian
Topic: RTC time does not sync system time at boot
Replies: 8
Views: 534

Re: RTC time does not sync system time at boot

Andyroo wrote: You normally have to add an entry into /etc/modules e.g. rtc-ds1307 if its the DS1307 on I2C
Yes I did that already.
Andyroo wrote: You may also need to 'modprobe' the driver into the kernel (depends on what you have done so far to get it to update).
Can you tell me more about this?
by Sohil.Mehta
Thu Apr 04, 2019 12:48 pm
Forum: Raspbian
Topic: RTC time does not sync system time at boot
Replies: 8
Views: 534

RTC time does not sync system time at boot

So I have a DAQ system based on the Compute Module 3 Lite and I/O board that contains a GSM module and RTC. The very first time the GSM latched to the network, I got the correct timestamp and wrote it to the RTC using sudo hwclock -w . The RTC time is now always correct but I noticed that the system...
by Sohil.Mehta
Thu Apr 04, 2019 11:14 am
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 501

Re: Can't get UART1 to work on GPIO 14 and 15

Thanks @PHilE. It worked with the older version of the uart0.dtbo
by Sohil.Mehta
Thu Apr 04, 2019 8:36 am
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 501

Re: Can't get UART1 to work on GPIO 14 and 15

Unfortunately, the updates will have overwritten the older firmware and undone the fix. Is this answer to my question "Did sudo apt-get upgrade change this?" ? So in spite of using the June 2018 release, update and upgrade can cause the fix to be undone? The workaround is easy - download this older...
by Sohil.Mehta
Thu Apr 04, 2019 6:53 am
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 501

Re: Can't get UART1 to work on GPIO 14 and 15

Okay I used the 27-June-2018 release and after installing the GPS related python packages and putting the line dtoverlay=uart1,txd1_pin=14,rxd1_pin=15 in /boot/config.txt, I did a sudo apt-get update and upgrade . The output of sudo raspi-gpio get 14-15 is: GPIO 14: level=0 fsel=0 func=INPUT GPIO 15...
by Sohil.Mehta
Thu Apr 04, 2019 5:09 am
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 501

Re: Can't get UART1 to work on GPIO 14 and 15

Thanks a lot @fruitoftheloom.
by Sohil.Mehta
Thu Apr 04, 2019 4:53 am
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 501

Re: Can't get UART1 to work on GPIO 14 and 15

There is a typo in your dtoverlay line (it should be rxd1_pin), but that's probably a transcription error when writing this post. Yes, you are right. Sorry about that. Correction: dtoverlay=uart1,txd1_pin=14,rxd1_pin=15 Can you confirm by removing any reference to the uart0 overlay while I ponder a...
by Sohil.Mehta
Wed Apr 03, 2019 1:42 pm
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 501

Re: Can't get UART1 to work on GPIO 14 and 15

Raspberry Pi Compute Module 3 Lite
by Sohil.Mehta
Wed Apr 03, 2019 12:23 pm
Forum: Compute Module
Topic: Can't get UART1 to work on GPIO 14 and 15
Replies: 11
Views: 501

Can't get UART1 to work on GPIO 14 and 15

I am trying to get my Ublox GPS module to work on UART1 GPIO 14 (TXD1) and 15 (RXD1). Hence I added this line in /boot/config.txt: dtoverlay=uart1,txd1_pin=14,rxd_pin=15 From the datasheet I know that to get UART1 on GPIOs 14 and 15, I need to use alt 5. But the above line in config.txt got UART1 t...
by Sohil.Mehta
Wed Mar 20, 2019 7:30 am
Forum: Compute Module
Topic: How to check if File system is corrupted or not
Replies: 1
Views: 247

How to check if File system is corrupted or not

I have installed a headless version (Lite version) of Raspbian Stretch on a 16 GB SD card. What is a sure shot way of knowing that the file system is not corrupted? I have disconnected the power supply on the Compute module abruptly some 5-6 times. When I connect the SD card to my laptop via a card ...
by Sohil.Mehta
Wed Dec 19, 2018 8:58 am
Forum: Compute Module
Topic: RTC time is drifting within one day
Replies: 3
Views: 1322

RTC time is drifting within one day

I have built my own Compute Module IO board based on the schematics of CMIO Rev3.0 available online, and added some extra things over it like GPS/GNSS Module, IMU, RTC with a coin cell, etc. The processor that I am using is Compute Module 3 Lite. Since GPS is my only source of getting the actual tim...
by Sohil.Mehta
Sat Dec 15, 2018 8:18 am
Forum: Compute Module
Topic: [SOLVED] Wrong Part Number provided for the SODIMM Connector
Replies: 7
Views: 4198

Re: Wrong Part Number provided for the SODIMM Connector

Sorry for the late reply. But this issue was solved long back. Posting the answer here, in case someone faces a similar issue: So there are two revisions of the BoM of the CMIO board, that can he downloaded from: https://www.raspberrypi.org/documentation/hardware/computemodule/designfiles.md Rev 3.0...
by Sohil.Mehta
Fri Oct 26, 2018 10:01 am
Forum: Compute Module
Topic: [SOLVED] Wrong Part Number provided for the SODIMM Connector
Replies: 7
Views: 4198

Re: Wrong Part Number provided for the SODIMM Connector

Just realised something: There are 2 versions of the CMIO. v1.2 and v3.0. Obviously, I referred to the newer version first. The part number given in v3.0 is: T632S252200-4TAB (from Amphenol) But the one given in v1.2 is: 1473005-4 (from TE connectivity) I found the TE Connectivity part online and ev...
by Sohil.Mehta
Fri Oct 26, 2018 9:50 am
Forum: Compute Module
Topic: [SOLVED] Wrong Part Number provided for the SODIMM Connector
Replies: 7
Views: 4198

Re: Wrong Part Number provided for the SODIMM Connector

@Scotty: I came across that too. But I don't know if it will work. That's why would be great if I can know what's the exact part on the CMIO board.
by Sohil.Mehta
Fri Oct 26, 2018 9:18 am
Forum: Compute Module
Topic: [SOLVED] Wrong Part Number provided for the SODIMM Connector
Replies: 7
Views: 4198

[SOLVED] Wrong Part Number provided for the SODIMM Connector

I downloaded the BoM of the Raspberry Pi Compute Module IO Board from the Raspberry Pi website. The part number given for the SODIMM connector (Reference J1) in the BoM is: T632S252200-4TAB This part is from Amphenol (as claimed in the BoM). However I did not find the datasheet of this part number o...
by Sohil.Mehta
Mon Aug 27, 2018 7:04 pm
Forum: Raspbian
Topic: Can't get a unix command using subprocess to start from a service file
Replies: 3
Views: 195

Re: Can't get a unix command using subprocess to start from a service file

Which service file? init or gps? I did type = forking for both and I get the same error.
by Sohil.Mehta
Mon Aug 27, 2018 6:50 pm
Forum: Raspbian
Topic: Can't get a unix command using subprocess to start from a service file
Replies: 3
Views: 195

Re: Can't get a unix command using subprocess to start from a service file

I verified. Whether python3 or python, the codes work fine when I use the rc.local method. The problem is with the service file.
by Sohil.Mehta
Mon Aug 27, 2018 6:42 pm
Forum: Raspbian
Topic: Can't get a unix command using subprocess to start from a service file
Replies: 3
Views: 195

Can't get a unix command using subprocess to start from a service file

So I have this init.py code that initialises a few GPIOs and a unix command to connect to the gpsd socket. I use python3 to run this code Here is the code: #!/usr/bin/python3 import RPi.GPIO as GPIO import subprocess GPIO.setmode(GPIO.BCM) GPIO.setup(4, GPIO.OUT) #For GPS GPIO.output(4, GPIO.HIGH) G...

Go to advanced search