Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
123Next
Return to list New
View: 5683|Reply: 29

4G-IoT

[Copy link]

1

Threads

12

Posts

44

Credits

Novice

Rank: 1

Credits
44
Post time 2018-5-15 21:03:09 | Show all posts |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


6

Threads

51

Posts

220

Credits

Intermediate member

Rank: 3Rank: 3

Credits
220
Post time 2018-5-15 21:10:46 | Show all posts
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| Post time 2018-5-15 21:14:32 | Show all posts
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| Post time 2018-5-16 17:40:55 | Show all posts
@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| Post time 2018-5-17 19:43:39 | Show all posts
Note from the board "out of the box" no support for GPIO port

53

Threads

654

Posts

3587

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
3587
Post time 2018-5-18 10:02:59 | Show all posts
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.

53

Threads

654

Posts

3587

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
3587
Post time 2018-5-18 10:03:41 | Show all posts
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| Post time 2018-5-18 13:56:04 | Show all posts
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

53

Threads

654

Posts

3587

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
3587
Post time 2018-5-18 14:40:48 | Show all posts
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| Post time 2018-5-18 15:17:02 | Show all posts
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 the 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 the 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 the 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 the Code


You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-18 09:29 GMT+8 , Processed in 0.033615 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list