1

I am trying to get a SIM7600E-H-4G-HAT running on my Raspberry Pi 3B+, but it is not working. Here is what I've done so far:

  1. Inserted my SIM-Card, connected the antenna to Main, connected the entire hat via GPIO pins to my Pi without any USB cable connected to that hat. I left the two yellow jumpers factory-default like, centered just as pictured in the manual.

  2. I booted the raspberry, set via raspi-config the serial options as described in the manual (no, then yes).

  3. chmod 777 for sim7600_4G_hat_init and added sh /home/.../sim7600_4G_hat_init to rc.local

  4. Rebooted, installed minicom, started sudo minicom -D /dev/ttyS0 and nothing happens and it does not even react on any keystroke. I even compiled the bcm2835 directory and the phoncecall-demo. When I try to sudo ./Phonecall it says

Failed to get byte count on serial.

Both LEDs shine red permanently. What am I doing wrong?

tlfong01
  • 4,665
  • 3
  • 10
  • 24
user1511417
  • 111
  • 1
  • 2
  • 1
    You are doing wrong to use rc.local if using an operating system with systemd like Raspbian or Ubuntu or arch. Please take note that using /etc/rc.local has limitations due to Compatibility with SysV. We have seen many problems here on this site using it. Following the recommendation of the developers from systemd you should avoid using it. – Ingo Sep 20 '19 at 22:28
  • Ah let me see. I skimmed your user manual: "SIM7600E-H 4G HAT User Manual, Rev 1.0 - WaveShare 2018jun08": https://www.waveshare.com/w/upload/6/6d/SIM7600E-H-4G-HAT-Manual-EN.pdf and read Section3 "Using with Rpi" specifying the following Rpi to SIM7600 interface: (1) Pin 22 (BCM P6), Power up the module, (2) Pin 07 (BCM P4), Pull high enable flight mode. So I guess the sim7600_4G_hat_init should unitialize pins BCM P6 and BCM P4, among other things. Now what you did the following might have a problem: (3) chmod 777 sim7600_4G_hat_init, / to continue, ... – tlfong01 Mar 17 '20 at 06:44
  • (4) add to file: "/etc/rc.local filesh" the following bash command: "/home/pi/SIM7600X/sim7600_4G_hat_init", because (5) as @ingo says /etc/rc/local might not be compatible to your raspbian stretch or buster, (6) Your init program might be out of date and not compatible to your raspbian, (6) Furthermore, your following setup looks OK: (c) sudo apt-get install minicom, (d) minicom -D /dev/ttyS0. But I have two troubleshooting suggestions: / to continue, ... – tlfong01 Mar 17 '20 at 06:45
  • SUGGESTION ONE:(7) You might like to do the following loopback test: "BEFORE INSERTING SIM7600, short RxD to TxD and make sure minicom can loopback". SUGGESTION TWO: Do not test SIM7600 in HAT mode but test first in standalone UART serial AT command control SIM7600 mode: (e) set jumeper to "C", use Win10 terminal emulation program puTTY, me prefer RealTerm, or Rpi terminal emulation program miniCom, me prefer CuteCom to test AT commands. I use RealTerm to send "AT" and recvived "OK" before the real tests. :) / to continue, ... – tlfong01 Mar 17 '20 at 06:45
  • If both of my suggestions OK, then you go back to try the Rpi HAT mode, which is a bit complicated (with three USB ports for AT mode, GPRS mode, and Debug mode. Cheers. – tlfong01 Mar 17 '20 at 06:46
  • SUGGESTION 3 - In standalone mode, press power and hold Power Key for one second to make sure that the network LED blinks once per second, to make sure the SIM7600 is basically working OK. – tlfong01 Mar 17 '20 at 06:51
  • And for SIM7600 newbies, the AT command test setup CHEAT SHEET: https://imgur.com/gallery/Lla5nFh. Cheers. – tlfong01 Mar 17 '20 at 07:52
  • I am refreshing my memory of using "etc/systemd/system.conf " to replace the outdated "/etc/rc.local". References: (1) https://imgur.com/SFzMPbc, (2) Rpi3B+ / Rpi4B Watchdog and LM2956 / LM2941 PSU Remote Control Problem https://raspberrypi.stackexchange.com/questions/99584/rpi3b-rpi4b-watchdog-and-lm2956-lm2941-psu-remote-control-problem. – tlfong01 Mar 18 '20 at 08:30
  • Now let me walk through the troubleshooting steps successfully completed so far: (1) Test SIM7600 AT commands in USB to UART mode, using Win10 RealCom. (2) Instead of using /etc/rc.local, tested Rpi4B buster /etc/systemd/system.conf to init a bash script. (3) Next step is to build the "sim7600_4G_hat_init" driver, which the OP seems failed getting to work. I am reading this manual: "How to use the SIM7100 module in Linux V1.0 - SimCom 2014dec30", using Ubuntu as an example to compile and install driver GobiSerial.tar.gz. / to continue, ... – tlfong01 Mar 18 '20 at 14:03
  • User manual specifies that if the above driver is installed correctly, the following 5 ttyUSB port will be setup: (1) /dev/ttyUSB0-diag port for output developing messages, (2) /dev/ttyUSB1- NMEA port for GPS NMEA data output, (3) /dev/ttyUSB2-AT port for AT commands, (4) /dev/ttyUSB3-Modem port for ppp-dial, (5) /dev/ttyUSB4-audio port, (6) /dev/ttyUSB5-Virtual Net card. I think me newbie should not try all 5 options in one go. Instead I would try /dev/ttyUSB2-AT port for AT commands first.. – tlfong01 Mar 18 '20 at 14:10
  • Okay can you please test your suggestions and then write an official answer here? I think it is not appropriate to post a line of comments. Thanks a lot. – user1511417 Mar 21 '20 at 11:58

0 Answers0