m5stack / M5PoECAM

MIT License
19 stars 5 forks source link

New Unit Not Using DHCP #4

Open awiltjr opened 1 month ago

awiltjr commented 1 month ago

Just purchased a brand new "PoE-Cam with Wi-Fi" unit (PN: U121-B)

Plugged it into my PoE/PoE+ 802.3 AF auto-negotiating switch, unit gets typical Ethernet lighting, but never broadcasts for DHCP. Unit shows preference for 48v PoE+ and runs at 100mbit at Layer 1.

No new entries in the DHCP table for the unit, nor any DHCP packets when running a promiscuous tcpdump capture. What's odd is that at Layer 2 I'm not even seeing any ARP traffic for the unit either.

Is Note #2 still in place?

"The factory firmware of PoECAM will automatically obtain the IP after connecting to the switch and start the web server. By viewing the serial port output of PoECAM, you can get the IP address and the image stream URL, and you can preview the image in real time by visiting the URL with a browser under the same local area network."

If so, should it use DHCP, or does it just assign itself a static? I ran a semi-aggressive port scan on my LAN subnet but found no hits other than known devices.

If the U121-B unit is still supposed to have Note #2 functionality, but it isn't running ARP, DHCP, nor has a static, then do I just have a dud?

Gitshaoxiang commented 1 month ago

Hi, sorry for replying later. the default firmware is enabled DHCP.
it should print the log such like:

Poe connect successed
Poe got local ip at 192.168.2.81
Poe Listening url: 
192.168.2.81/stream -> image stream 

also, did you have a USB to TTL conversion board? check the serial log would be helpful for us position the issues. You can contact us by email(tech@m5stack.com) we will follow up with your message as soon as possible.

awiltjr commented 1 month ago

No worries on the delay at all, I'm in no rush myself.

I don't have the USB->TTL conversion board, but when sniffing my LAN I'm not even seeing the camera attempt to ARP or anything on Layer 2. Should the U121-B DHCP out the box?

rafalio commented 1 month ago

Similar issue here. Plugged in poecam-w 1.0, light is green and flashing, but see nothing on the network.

I don't have the official m5stack burner, but i used another usb ttl board to connect to it, and the output is something like this, then nothing. I see 'Cam Init Success' but nothing useful after that.

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x16 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13104
load:0x40080400,len:3036
entry 0x400805e4
UART INIT
Cam Init Success
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
Out finish 10
awiltjr commented 1 month ago

rafalio's findings mirror mine from a network and Layer 1 perspective; I have done extensive sniffing and tracing but do not see this U121-B unit do anything after negotiating a PoE standard, it's not ARP-ing or anything.