# SIM7600G-H 4G HAT not working with python

**URL:** <https://forum.core-electronics.com.au/t/sim7600g-h-4g-hat-not-working-with-python/21164>\
**Category:** Uncategorized\
**Created:** [4 November 2024 09:49 UTC](https://forum.core-electronics.com.au/t/sim7600g-h-4g-hat-not-working-with-python/21164 "2024-11-04T09:49:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyath72854](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Priyath72854](https://forum.core-electronics.com.au/u/Priyath72854)\
**Post date:** [4 November 2024 09:49 UTC](https://forum.core-electronics.com.au/t/sim7600g-h-4g-hat-not-working-with-python/21164/1 "2024-11-04T09:49:31Z")

</div>

# SIM7600G-H 4G HAT (B) for Raspberry Pi, LTE Cat-4 4G / 3G / 2G Support, GNSS Positioning, Global Band

Hi

I got the above HAT for use with Rapsberry Pi zero. It was working fine out of the box without any config and suddenly it is not working anymore.

when running the demo code (modified for my needs) I get the device busy and log off. I tried changing all the USB and S0 port but to no avail.

However with minicom it is working and I can obtain GPS coordinates.

When issuing the lsusb command the USB port number changes between 3 and 5

I am a bit lost as to what may have caused this to happen. Any help is greatly appreciated.

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/9/910f2d5566e715dcb02e77dede4a393bb5d53f16.png)

![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/2/2ad115977a878fe03d2abf10d7faf144e96d23b5.png)

I get the below errors when running the Python GPS code

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/e/e1de088df8254377f1a2b445c0d9eb06b21726e0.png)

---

<div class="post-metadata">

**Author:** ![lia262073](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@lia262073](https://forum.core-electronics.com.au/u/lia262073)\
**Post date:** [4 November 2024 15:15 UTC](https://forum.core-electronics.com.au/t/sim7600g-h-4g-hat-not-working-with-python/21164/2 "2024-11-04T15:15:05Z")

</div>

If `gpsd` is running, it might conflict with your Python script by holding onto the GPS device. Either stop the `gpsd` service or configure it to release the device after it’s used. To stop `gpsd`, you can run:

```auto
sudo systemctl stop gpsd

```

---

<div class="post-metadata">

**Author:** ![Priyath72854](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Priyath72854](https://forum.core-electronics.com.au/u/Priyath72854)\
**Post date:** [5 November 2024 03:27 UTC](https://forum.core-electronics.com.au/t/sim7600g-h-4g-hat-not-working-with-python/21164/3 "2024-11-05T03:27:44Z")

</div>

thanks. gpsd was not installed. but it worked today without me doing anything. How can i find out what’s causing this? Are there any specific commands that i can execute to troubleshoot

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [7 November 2024 04:59 UTC](https://forum.core-electronics.com.au/t/sim7600g-h-4g-hat-not-working-with-python/21164/4 "2024-11-07T04:59:12Z")

</div>

The joys of intermittent issues.

Not entirely sure what could have been causing it at this point.

It could have been anything from Power supply instability, temperature, Port Conflicts, loose connection…

If it was a one-off fault it may be fully resolved and never come back and might not be worth the worry or time spent investigating.

---

<div class="post-metadata">

**Author:** ![Priyath72854](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Priyath72854](https://forum.core-electronics.com.au/u/Priyath72854)\
**Post date:** [17 November 2024 19:36 UTC](https://forum.core-electronics.com.au/t/sim7600g-h-4g-hat-not-working-with-python/21164/5 "2024-11-17T19:36:34Z")

</div>

I solved this issue. There was a modem service running in the background. I had to find the process Id and disable it.

Thanks for your input
