Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question for 12cn setup #212

Open
siiiii opened this issue Apr 1, 2018 · 6 comments
Open

question for 12cn setup #212

siiiii opened this issue Apr 1, 2018 · 6 comments

Comments

@siiiii
Copy link

siiiii commented Apr 1, 2018

I am trying to set this up with m y 12cn cam.

When I put sd folders into sd card, it ends up in orange blinking state.

any advice will help thanks.

@Clem-
Copy link

Clem- commented Apr 2, 2018

Hi @siiiii
Have you checked that Wifi settings in wpa_supplicant.conf are correct?
Also check Network configuration in yi-hack.cfg.

If you need more help with that, please post the content of these files.

@siiiii
Copy link
Author

siiiii commented Apr 2, 2018

more info:
My cam version is 1.8.5.1K

wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
ssid="my_wpa2_wifi"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="some_password"
}

yi-hack.cfg

### Set the root password
ROOT_PASSWORD=1234qwer

### Network configuration
IP=192.168.31.207
NETMASK=255.255.255.0
GATEWAY=192.168.31.1
NAMESERVER=192.168.31.1

### Led color after full boot
LED_WHEN_READY=-boff -bon

### Timezone
TIMEZONE=EST5EDT,M3.2.0,M11.1.0

### NTP server
NTP_SERVER=0.ca.pool.ntp.org

### Debug
DEBUG=no

@Clem-
Copy link

Clem- commented Apr 2, 2018

Could you also set DEBUG to yes and post the debug log?

@siiiii
Copy link
Author

siiiii commented Apr 3, 2018

here it is:

Hardware version informations : 
    hwplatform=2
Software version informations : 
    [sys]
    version=1.8.5.1K_201508311131
    [kernel]
    version=3-0.8
    provider=18e
    devtype=18e
Firmware letter is : 'K'
The RTSP server binary version which will be used is the 'K'
The HTTP server binary version which will be used is the 'M'
Check for some files size...
    -rwxr-xr-x    1 root     root        144885 Oct  4  2016 /home/hd1/test/http/serverJ
    -rwxr-xr-x    1 root     root        144912 Oct  4  2016 /home/hd1/test/http/serverM
    -rwxr-xr-x    1 root     root        121932 Oct  4  2016 /home/hd1/test/rtspsvrI
    -rwxr-xr-x    1 root     root         39572 Oct  4  2016 /home/hd1/test/rtspsvrK
    -rwxr-xr-x    1 root     root         39580 Oct  4  2016 /home/hd1/test/rtspsvrM
The blue led is currently blinking
Debug mode = yes
Check for wifi configuration file...*
/home/wpa_supplicant.conf
Start wifi configuration...
Status for wifi configuration=0  (0 is ok)
Wifi configuration answer: 
Do network configuration 1/2 (ip and gateway)
Done
Configuration is :
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    ra0       Link encap:Ethernet  HWaddr B0:D5:9D:67:B9:B7  
              inet addr:192.168.1.207  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::b2d5:9dff:fe67:b9b7/64 Scope:Link
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:783 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:191374 (186.8 KiB)  TX bytes:200 (200.0 B)
    
Do network configuration 2/2 (DNS)
Done
Get time from a NTP server...
But first, test the NTP server '0.ca.pool.ntp.org':
Previous datetime is Mon Apr  2 08:30:53 EDT 2018
Done
New datetime is Mon Apr  2 08:30:53 EDT 2018
Start blue led on
Start ftp server...
Check for ftp process : 
 1233 root      1716 S    tcpsvd -vE 0.0.0.0 21 ftpd -w /
Start http server : serverM...
Check for http server process : 
 1260 root      1408 S    ./serverM 80
Start rtsp server : rtspsvrK...
Check for rtsp process : 
 1332 root      2660 S <  ./rtspsvrK
Processes after startup :
  PID USER       VSZ STAT COMMAND
    1 root      1708 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW   [rcu_kthread]
    7 root         0 SW<  [khelper]
    8 root         0 SW   [kworker/u:1]
  143 root         0 SW   [sync_supers]
  145 root         0 SW   [bdi-default]
  146 root         0 SW<  [kintegrityd]
  148 root         0 SW<  [kblockd]
  161 root         0 SW   [khubd]
  174 root         0 SW<  [cfg80211]
  175 root         0 SW   [kworker/0:1]
  257 root         0 SW<  [rpciod]
  260 root         0 SW   [kswapd0]
  314 root         0 SW   [fsnotify_mark]
  322 root         0 SW<  [nfsiod]
  331 root         0 SW<  [crypto]
  405 root         0 SW   [mtdblock0]
  410 root         0 SW   [mtdblock1]
  415 root         0 SW   [mtdblock2]
  420 root         0 SW   [mtdblock3]
  425 root         0 SW   [mtdblock4]
  430 root         0 SW   [mtdblock5]
  435 root         0 SW   [mtdblock6]
  438 root         0 SW   [romblock0]
  441 root         0 SW   [romblock1]
  444 root         0 SW   [romblock2]
  447 root         0 SW   [romblock3]
  450 root         0 SW   [romblock4]
  453 root         0 SW   [romblock5]
  456 root         0 SW   [romblock6]
  591 root         0 SW<  [kpsmoused]
  600 root         0 SW   [kworker/u:2]
  616 root         0 SW   [mmcqd/0]
  620 root         0 SWN  [jffs2_gcd_mtd4]
  624 root      1712 S    /bin/sh /etc/init.d/rcS
  636 root       872 S <  udevd --daemon
  642 root      1704 S    /bin/sh /etc/init.d/S80network
  656 root         0 SWN  [jffs2_gcd_mtd5]
  657 root      1708 S    /bin/sh ./init.sh
  664 root         0 SW   [flush-mtd-unmap]
  675 root      1712 S    /bin/sh /home/hd1/test/equip_test.sh
  677 root         0 SW   [flush-179:0]
  682 root      1704 S    telnetd
  686 root       984 S    /home/log_server
  816 root         0 SW   [RtmpTimerTask]
  817 root         0 SW   [RtmpMlmeTask]
  818 root         0 SW   [RtmpCmdQTask]
  819 root         0 SW   [RtmpWscTask]
  949 root         0 SW   [hidog]
  987 root      1164 S    ./peripheral
  988 root      1144 S <  ./dispatch
  989 root      1060 S    ./exnet
 1165 root      3136 R    /home/wpa_supplicant -B -i ra0 -c /home/wpa_supplica
 1233 root      1716 S    tcpsvd -vE 0.0.0.0 21 ftpd -w /
 1260 root      1408 S    ./serverM 80
 1278 root      1120 S    ./record_event
 1279 root     22976 S    ./mp4record 60
 1306 root      1716 S    /usr/sbin/crond -b
 1326 root       904 S    /home/led_ctl -boff -yfast
 1327 root      102m S    ./rmm
 1332 root     27252 S N  ./rtspsvrK
 1469 root      1708 R    ps
 1474 root      1704 R    sh -c df |grep hd1|awk '{print $4}'
Storage status :
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.5M      2.6M    896.0K  75% /
tmpfs                    17.2M     16.0K     17.2M   0% /dev
/dev/mtdblock5            8.9M      8.2M    724.0K  92% /home
tmpfs                    32.0M     40.0K     32.0M   0% /tmp
/dev/hd1                 29.7G     10.3M     29.7G   0% /tmp/hd1
tmpfs                   512.0K     16.0K    496.0K   3% /home/mmap_tmpfs
tmpfs                    16.0M         0     16.0M   0% /home/tmpfs
tmpfs                    16.0M      3.0M     13.0M  19% /home/jrview
/dev/hd1                 29.7G     10.3M     29.7G   0% /tmp/hd1/test/http/record

@Clem-
Copy link

Clem- commented Apr 3, 2018

It seems like your camera cannot reach your Wifi.
You have to make sure that your router will give the camera the IP of 192.168.31.207 (need to configure it in the router)

Otherwise, you can follow this pull request and make the changes in order to get an ip address automatically and don't bother with Network configuration.

@siiiii
Copy link
Author

siiiii commented Apr 11, 2018

great its working now except the time is wrong even though I set it to TIMEZONE=EST5EDT,M3.2.0,M11.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants