Search found 7 matches

by Jcz
Fri Nov 19, 2021 6:45 am
Forum: NetBurner Software
Topic: Stopping Websocket Update when Ethernet disconnects
Replies: 3
Views: 3934

Re: Stopping Websocket Update when Ethernet disconnects

I ended up removing the code that access the InterfaceBlock to turn DHCP on/off and went back to my GetDHCPAddress() call. This resulted in the system not crashing. But once I went back to compiling the data as a JSON object instead of my test string the crash happened again.
Maybe I'll just be ...
by Jcz
Fri Nov 19, 2021 5:57 am
Forum: NetBurner Software
Topic: Stopping Websocket Update when Ethernet disconnects
Replies: 3
Views: 3934

Re: Stopping Websocket Update when Ethernet disconnects

I'm using a MOD54415 and we're on NNDK ver 2.7.1
I've since narrowed it down to the writeall() function sending the data as what is crashing the system, using NB::Websocket::ws_write also yields the same result.
I've tried re-working how data is sent to the web client, so now the webclient requests ...
by Jcz
Fri Nov 12, 2021 12:52 pm
Forum: NetBurner Software
Topic: Stopping Websocket Update when Ethernet disconnects
Replies: 3
Views: 3934

Stopping Websocket Update when Ethernet disconnects

So I'm unfortunately still stuck on this problem but I think I've narrowed it down. Here's the code for my websocket update task and the function that handles starting and stopping DHCP:


void ToggleDHCP(bool enable)
{
int interface = GetFirstInterface();
InterfaceBlock *dhcpIntf ...
by Jcz
Wed Nov 10, 2021 6:05 am
Forum: NetBurner Software
Topic: Checking Ethernet Connection
Replies: 2
Views: 3471

Re: Checking Ethernet Connection

Thanks a lot!
My netinterface.h didn't have GetInterfaceLink, I'm running 2.7.1
But I did find GetInterFaceBlock which also appears to report back whether or not the connection is alive.

I've found the TestDHCP example code, I think I should be able to get what I need from this.
by Jcz
Mon Nov 08, 2021 9:14 am
Forum: NetBurner Software
Topic: Checking Ethernet Connection
Replies: 2
Views: 3471

Checking Ethernet Connection

I have a websocket running on my mod54415 system that gets data sent through it a few times per second.
I'm wondering if there's an elegant way besides what I'm currently doing to check if the ethernet connection is lost (like if the cable gets yanked out) and the system isn't expecting the loss in ...
by Jcz
Wed Mar 03, 2021 12:49 pm
Forum: NetBurner Software
Topic: Trouble Reading GPIO Pin Value
Replies: 3
Views: 2688

Re: Trouble Reading GPIO Pin Value

Yup, I realize that now, brain fart.

I switched the channel A pin to go on J1[31] which had the same 1Mohm resistance that we had measured and this seems to have fixed the issue, also using 2k resistors on the LPF. I just wish I could figure out why it wasn't happy with what I was giving it.
by Jcz
Wed Mar 03, 2021 10:31 am
Forum: NetBurner Software
Topic: Trouble Reading GPIO Pin Value
Replies: 3
Views: 2688

Trouble Reading GPIO Pin Value

Hi,

I have a system using a MOD54415 where amongst other things has four rotary encoders hooked up to it.
They are connected to pins J1[5] and J1[6], J1[7] and J1[9], J1[10] and J1[13], and J2[45] and J2[47]. They were working fine but the encoders weren't super accurate, so I've been playing ...