View: 25742|Reply: 29

4G-IoT

[Copy link]

1

threads

12

posts

44

credits

Novice

Rank: 1

credits
44
Published in 2018-5-15 21:03:09 | Show all floors |Read mode
I need help.
I flashed my 4g-iot and connect for debugging via adb
But I can not see and can not work with the GPIO port.
Also I do not see UART ports, which are indicated in the manual (2 pieces)

I tried java, C ++, Kotlin.
2 day does not work in any way.

ls | grep tty*
tty   
ttyC0  
ttyC1  
ttyC2  
ttyC3  
ttyGS0
ttyGS1
ttyGS2
ttyGS3
ttyGS4
ttyGS5
ttyGS6
ttyGS7
ttyMT0
ttyMT1
ttyMT2
ttyMT3
ttyp0  
ttyp1  
ttyp2  
ttyp3  
ttyp4  
ttyp5  
ttyp6  
ttyp7  
ttyp8  
ttyp9  
ttypa  
ttypb  
ttypc  
ttypd  
ttype  
ttypf


0

threads

1

posts

20

credits

Novice

Rank: 1

credits
20
Published in 2019-4-24 17:16:57 | Show all floors
admin replied at 2018-11-13 18:33
We have updated the usage of gpio on user manaul for Orange pi 3G-IOT and Orange pi 4G-IOT

in android 6 it's dosn't work, i try install android 6 from Download and Full calibration, GPIO not work....

/sys/bus/gpio - missing
/sys/class/gpio/  - missing
dmesg | grep -i pio - None

but cat /sys/devices/virtual/misc/mtgpio/pin give me

pin: [mode] [pull_sel][din][dout] [pull en] [dir][ies][smt]
0:11101010
--------
100+:11101010

but i can't config it by
echo -wdout123 1 > pin -This is Set the GPIO to output high level
echo -wdout123 0> pin -This is Set the GPIO to output high level

!! if i use
echo "-w=123:0 0 0 1 0 1 1 0" > pin
Status by "cat pin" changed
but i use electic tester and nothing in 37 changed

WTF??


6

threads

51

posts

220

credits

Intermediate member

Rank: 3Rank: 3

credits
220
Published in 2018-5-15 21:10:46 | Show all floors
If the GPIO/serial devices are missing the most likely reason is that the GPIO/serial device driver is not enabled in the kernel, or it was built as a module and then it was not loaded.

1

threads

12

posts

44

credits

Novice

Rank: 1

credits
44
 Author| Published in 2018-5-15 21:14:32 | Show all floors
jonsmirl replied at 2018-5-15 21:10
If the GPIO/serial devices are missing the most likely reason is that the GPIO/serial device driver  ...

I think the official firmware to the device is already with the driver turned on.

1

threads

12

posts

44

credits

Novice

Rank: 1

credits
44
 Author| Published in 2018-5-16 17:40:55 | Show all floors
@admin please give an answer.
Will linux (not android) be implemented
Will it be implemented android 7+
Will support continue?

1

threads

12

posts

44

credits

Novice

Rank: 1

credits
44
 Author| Published in 2018-5-17 19:43:39 | Show all floors
Note from the board "out of the box" no support for GPIO port

62

threads

653

posts

5498

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
5498
Published in 2018-5-18 10:02:59 | Show all floors
MiXaiLL76 replied at 2018-5-16 17:40
@admin please give an answer.
Will linux (not android) be implemented
Will it be implemented android ...

For linux, so sorry we still working on, sooner would be around middle of next month. For Android, we have made Android 8.1, waiting our engineer to have final test of it. Or if you are available, you could have a test: https://mega.nz/#F!RgcXERLS!Xpx1fhm4I47guXB-zPJRQQ
For any support, i am so sorry i am not good at it, i will try my best as i could.

62

threads

653

posts

5498

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
5498
Published in 2018-5-18 10:03:41 | Show all floors
MiXaiLL76 replied at 2018-5-17 19:43
Note from the board "out of the box" no support for GPIO port

Not really understand why there is no support for GPIO port?

1

threads

12

posts

44

credits

Novice

Rank: 1

credits
44
 Author| Published in 2018-5-18 13:56:04 | Show all floors
Edited by MiXaiLL76 at 2018-5-18 13:59
admin replied at 2018-5-18 10:03
Not really understand why there is no support for GPIO port?

Now I will try android 8.1
on android 6.0 GPIO ports were not available

Thanks for the answer

62

threads

653

posts

5498

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
5498
Published in 2018-5-18 14:40:48 | Show all floors
MiXaiLL76 replied at 2018-5-18 13:56
Now I will try android 8.1
on android 6.0 GPIO ports were not available

I am not sure how is the perfermence of GPIO on android 8.1, so maybe i could wait your feedback.

1

threads

12

posts

44

credits

Novice

Rank: 1

credits
44
 Author| Published in 2018-5-18 15:17:02 | Show all floors
Edited by MiXaiLL76 at 2018-5-18 21:31
admin replied at 2018-5-18 14:40
I am not sure how is the perfermence of GPIO on android 8.1, so maybe i could wait your feedback.
...

The firmware was successful.
But I can not find the GPIO ports on the device. (like this https://www.youtube.com/watch?v=pV25gWwxSrM)
  1. k37mv1_bsp:/sys/class # ls -l
  2. total 0
  3. drwxr-xr-x 2 root root 0 2018-05-18 10:07 BOOT
  4. drwxr-xr-x 2 root root 0 2018-05-18 10:07 MTK_SMI
  5. drwxr-xr-x 2 root root 0 2018-05-18 10:07 MT_pmic_adc_cali
  6. drwxr-xr-x 2 root root 0 2018-05-18 10:07 SysramDrv
  7. drwxr-xr-x 2 root root 0 2018-05-18 10:07 Vcodec
  8. drwxr-xr-x 2 root root 0 2018-05-18 10:07 accdet
  9. drwxr-xr-x 2 root root 0 2018-05-18 10:07 actuatordrv_main_af
  10. drwxr-xr-x 2 root root 0 2018-05-18 10:07 android_usb
  11. drwxr-xr-x 2 root root 0 2018-05-18 10:07 bdi
  12. drwxr-xr-x 2 root root 0 2018-05-18 10:07 block
  13. drwxr-xr-x 2 root root 0 2018-05-18 10:07 btif
  14. drwxr-xr-x 2 root root 0 2018-05-18 10:07 camera-pipemgr
  15. drwxr-xr-x 2 root root 0 2018-05-18 10:07 ccci_md_sta
  16. drwxr-xr-x 2 root root 0 2018-05-18 10:07 ccci_node
  17. drwxr-xr-x 2 root root 0 2018-05-18 10:07 devmap
  18. drwxr-xr-x 2 root root 0 2018-05-18 10:07 emmcrpmb
  19. drwxr-xr-x 2 root root 0 2018-05-18 10:07 firmware
  20. drwxr-xr-x 2 root root 0 2018-05-18 10:07 flashlightdrv
  21. drwxr-xr-x 2 root root 0 2018-05-18 10:07 fm
  22. drwxr-xr-x 2 root root 0 2018-05-18 10:07 graphics
  23. drwxr-xr-x 2 root root 0 2018-05-18 10:07 hidg
  24. drwxr-xr-x 2 root root 0 2018-05-18 10:07 hidraw
  25. drwxr-xr-x 2 root root 0 2018-05-18 10:07 i2c-adapter
  26. drwxr-xr-x 2 root root 0 2018-05-18 10:07 ieee80211
  27. drwxr-xr-x 2 root root 0 2018-05-18 10:07 input
  28. drwxr-xr-x 2 root root 0 2018-05-18 10:07 ir_receiver
  29. drwxr-xr-x 2 root root 0 2018-05-18 10:07 ispdrv
  30. drwxr-xr-x 2 root root 0 2010-01-01 03:01 leds
  31. drwxr-xr-x 2 root root 0 2018-05-18 10:07 lt8912b
  32. drwxr-xr-x 2 root root 0 2018-05-18 10:07 main_flashlight
  33. drwxr-xr-x 2 root root 0 2018-05-18 10:07 mem
  34. drwxr-xr-x 2 root root 0 2018-05-18 10:07 misc
  35. drwxr-xr-x 2 root root 0 2018-05-18 10:07 mmc_host
  36. drwxr-xr-x 2 root root 0 2018-05-18 10:07 mtd
  37. drwxr-xr-x 2 root root 0 2018-05-18 10:07 mtk-adc-cali
  38. drwxr-xr-x 2 root root 0 2018-05-18 10:07 mtk_cmdq
  39. drwxr-xr-x 2 root root 0 2018-05-18 10:07 mtk_disp_mgr
  40. drwxr-xr-x 2 root root 0 2018-05-18 10:07 net
  41. drwxr-xr-x 2 root root 0 2018-05-18 10:07 pmic_ftm
  42. drwxr-xr-x 2 root root 0 2018-05-18 10:07 pmic_isink_test
  43. drwxr-xr-x 2 root root 0 2018-05-18 10:07 pmsg
  44. drwxr-xr-x 2 root root 0 2010-01-01 03:01 power_supply
  45. drwxr-xr-x 2 root root 0 2018-05-18 10:07 ppp
  46. drwxr-xr-x 2 root root 0 2018-05-18 10:07 regulator
  47. drwxr-xr-x 2 root root 0 2018-05-18 10:07 rtc
  48. drwxr-xr-x 2 root root 0 2018-05-18 10:07 scheddrv
  49. drwxr-xr-x 2 root root 0 2018-05-18 10:07 scsi_device
  50. drwxr-xr-x 2 root root 0 2018-05-18 10:07 scsi_disk
  51. drwxr-xr-x 2 root root 0 2018-05-18 10:07 scsi_host
  52. drwxr-xr-x 2 root root 0 2018-05-18 10:07 sec
  53. drwxr-xr-x 2 root root 0 2018-05-18 10:00 sensor
  54. drwxr-xr-x 2 root root 0 2018-05-18 10:07 sensordrv
  55. drwxr-xr-x 2 root root 0 2018-05-18 10:07 sensordrv2
  56. drwxr-xr-x 2 root root 0 2018-05-18 10:07 sound
  57. drwxr-xr-x 2 root root 0 2018-05-18 10:07 spi_master
  58. drwxr-xr-x 2 root root 0 2018-05-18 10:07 spm
  59. drwxr-xr-x 2 root root 0 2018-05-18 10:07 stpbt
  60. drwxr-xr-x 2 root root 0 2018-05-18 10:07 stpgps
  61. drwxr-xr-x 2 root root 0 2018-05-18 10:07 stpwmt
  62. drwxr-xr-x 2 root root 0 2018-05-18 10:07 sub_flashlight
  63. drwxr-xr-x 2 root root 0 2018-05-18 10:07 switch
  64. drwxr-xr-x 2 root root 0 2018-05-18 10:07 thermal
  65. drwxr-xr-x 2 root root 0 2018-05-18 10:07 timed_output
  66. drwxr-xr-x 2 root root 0 2018-05-18 10:07 tty
  67. drwxr-xr-x 2 root root 0 2018-05-18 10:07 udc
  68. drwxr-xr-x 2 root root 0 2018-05-18 10:07 wmtWifi
  69. drwxr-xr-x 2 root root 0 2018-05-18 10:07 wmtdetect
  70. drwxr-xr-x 2 root root 0 2018-05-18 10:07 xt_idletimer
Copy code

On my Orange Pi Plus2 it works, but I can not even see the folders.

I tried searching

  1. k37mv1_bsp:/sys/class # find . -name "*gpio*"
  2. ./misc/mtgpio
  3. k37mv1_bsp:/sys/class #
Copy code
But he did not give results
  1. k37mv1_bsp:/sys/class # cd misc/mtgpio/
  2. k37mv1_bsp:/sys/class/misc/mtgpio # ls
  3. dev pin power subsystem uevent
  4. k37mv1_bsp:/sys/class/misc/mtgpio #
Copy code
It is not something with which to work.



Maybe I'm doing something wrong?
I tried to find all this through the adb shell.

I'll write here, if I find something and wait for your answers

lsmod
  1. k37mv1_bsp:/dev # lsmod
  2. Module                  Size  Used by
  3. wlan_drv_gen2        1622578  0
  4. wmt_chrdev_wifi        10880  1 wlan_drv_gen2
  5. gps_drv                21050  0
  6. fmradio_drv           304655  0
  7. bt_drv                 20902  0
  8. wmt_drv              1123073  7 wlan_drv_gen2,wmt_chrdev_wifi,gps_drv,fmradio_drv,bt_drv
Copy code


You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list