Commit graph

10340 commits

Author SHA1 Message Date
bunnie
6ab0513ebe update documentation 2022-02-02 23:46:06 +08:00
bunnie
323f737a4b make the rebuild process smarter so we're not triggering if stuff didn't change 2022-02-02 23:25:36 +08:00
bunnie
1eaa4211d4 add ignores to the autogen files 2022-02-02 16:19:43 +08:00
bunnie
2c97104d89 add manifest for apps 2022-02-02 16:18:28 +08:00
bunnie
a4752dbb59 app manifest and auto-gen infrastructure 2022-02-02 16:18:06 +08:00
bunnie
05df4486ee incremental changes toward a manifest-format app system 2022-02-02 03:57:00 +08:00
bunnie
de81cf62c3 fix typo in formatting field 2022-02-02 03:30:17 +08:00
bunnie
ef0e6606ed make the "web page" a little easier to read. hah! 2022-02-02 02:41:25 +08:00
bunnie
562a930ce0 add APIs to pause the connection manager, and pause the CM while doing EC updates
It's not a good time to bug the EC to do network stuff when it's updating
itself.

...might even want to send the network into a disconnected state,
but, let's start with just turning off the connection manager
for now.
2022-02-02 02:38:19 +08:00
bunnie
002e098538 Fix issue #90
Turns out we didn't end up needing this capability, so, commenting it
out because it is a shy too powerful and is like packing a live
mortar shell in a storage unit: eventually, someone is going to
get hurt, even though it seems mostly harmless at the moment.

Code just commented out in case we need this feature in the future,
but, the main reason it was asked for (the PDDB) was accomplished
without it.
2022-02-02 00:37:57 +08:00
bunnie
f3e3c5cc18 Merge branch 'bunnie-dev' into main 2022-02-02 00:28:19 +08:00
bunnie
13de52fa8d TcpListener debugging, just a little bit
Spent a couple hours chasing down a "bug" which is acutally just
something about how http works that I don't understand. TCP was
working just fine but there is ... idk some sort of keep alive
thing that occupies a socket so the "web server" blocks waiting
for a read. Anyways, I guess the "right" way to solve that would
be to make a multi-threaded web server

OH GOD STOP

right. it's just a demo to prove that TCP works. done.

Open an issue if you find a problem with TCP kthx!
2022-02-02 00:23:14 +08:00
bunnie
8e5fc3b99d Merge branch 'bunnie-dev' into main 2022-02-01 18:58:36 +08:00
bunnie
925d53f646 TCP listener is "working"
Good enough so that if you type `net server` and you hit the IP
address of the device, it'll respond with something like

Hello from Precursor!
I have been up for 86087 ms.

There's still all kinds of bugs, I'm sure. But ... I'm also not
sure /why/ you would want a web server on Precursor. This is more
just to make sure that the TCP stack isn't totally broken.

The "web server" as it may be is quite broken and doesn't parse
any headers and probably sends a bogus amount of data because
I can't figure out if the content length includes some new lines
or not. But really, this just isn't in scope. Works with Chrome,
Firefox shows the status page and then says "connection reset" and hides
all the information. Whatever, browser compatibility is well beyond
my pay grade!
2022-02-01 18:54:07 +08:00
bunnie
1ebd5fe397 revert default language setting after testing 2022-02-01 01:23:51 +08:00
bunnie
944a1b1672 fix format specifier 2022-02-01 01:20:23 +08:00
bunnie
7c93b16c13 minor tweaks
The japanese phrase for "disconnected" is very long and doesn't
fit in the allocated space :-/ something to think about in the future.
2022-02-01 01:19:31 +08:00
bunnie
5c91645ede Merge branch 'i18n-jp' into bunnie-dev 2022-02-01 01:04:43 +08:00
bunnie
0716c475b4
Merge pull request #95 from rowr111/i18n-jp
I18n ja translations
2022-02-01 01:03:23 +08:00
bunnie
43842fb1ce mirror the link ping code into the LinkReset command on the COM
we've got it, might as well use it.
2022-01-31 23:37:43 +08:00
bunnie
3d7ee0663c improve the link sync-up for the EC after a WF200 reset 2022-01-31 23:32:59 +08:00
bunnie
827888ccbb fix up the REFCOUNT on connections
Was doing disjoint loads and stores on an Atomic, really, should
be using the fetch_add, fetch_sub variants to be proper.

Didn't seem to impact anything but maybe there's a future version
of me that high fives me for doing this.
2022-01-31 23:13:10 +08:00
bunnie
0f40c71da6 Merge branch 'bunnie-dev' into main 2022-01-31 23:05:33 +08:00
bunnie
884943c3ad adjust format of autogen file 2022-01-31 23:05:11 +08:00
bunnie
faa51908d7 maybe, just maybe...we finally have version info baked into the kernel correctly. 2022-01-31 23:02:32 +08:00
bunnie
0a1c5dc07f add a dummy file so build doesn't break 2022-01-31 14:36:26 +08:00
bunnie
0910f7e373 tcpstream passing a simple demo test
not sure what other tests to run, not an expert in this stuff.
2022-01-31 14:35:55 +08:00
bunnie
2153c25be3 it is so damn hard to get Rust to inject a relevant build time into a build
Still not there....to get it reporting in a user-visible fashion
I'm realizing I'm going to have to build a dedicated facility in
Xous to track this because otherwise I have to trigger the
automatic rebuild of a "heavy" program that would naturally
encapsulate such information.

Maybe for now, though, at least over the serial port I can
get a somewhat relevant string???
2022-01-31 13:16:09 +08:00
bunnie
2a1ab53e6b fix termination condition detection error 2022-01-31 12:40:26 +08:00
bunnie
7999ea04d1 add a simple tcpget test stub to the shellchat 2022-01-31 05:02:18 +08:00
bunnie
9762894550 add timeout on wf200 reset 2022-01-31 05:01:58 +08:00
bunnie
9573da00f4 still dicking around with getting versions to appear correctly in builds 2022-01-31 04:12:43 +08:00
bunnie
4690075c40 clean build, but...much testing to do. 2022-01-31 04:03:31 +08:00
bunnie
82a7b7ebb3 make wf200 reset a blocking call so other status bits don't de-sync 2022-01-30 19:07:29 +08:00
Jeanie
d1c443f62e
Merge branch 'i18n-jp' into i18n-jp 2022-01-30 19:25:33 +09:00
Jeanie
58e8120526 ja translations added 2022-01-30 19:23:49 +09:00
bunnie
177ad38db2 derive SSID scan on shellchat from the connection manager
The connection manager keeps track of all our SSIDs, not the COM.
2022-01-30 16:53:15 +08:00
bunnie
9394e85025 Merge branch 'i18n-jp' into main 2022-01-30 16:04:11 +08:00
bunnie
f1dcbd17f1 fix hosted mode debug field missing 2022-01-30 15:35:44 +08:00
bunnie
9b1c5e3f0c checkpoint to try something else 2022-01-30 15:30:21 +08:00
Jeanie
aa65512d7d Revert "random jp chars including composed chars, for test"
This reverts commit 9a6b17cd49.
2022-01-30 15:13:32 +09:00
bunnie
cf485fbbb2 add a check if the stats bar overflowed its bounds, redraw secnotes if that happens 2022-01-29 17:16:52 +08:00
bunnie
8e55b0f08e Merge branch 'kern_len' into bunnie-dev 2022-01-29 17:00:00 +08:00
bunnie
e72c64cfeb take advantage of signed length in the kernel
this prevents us from having to use the entire reserved region
as a worst-case and improves screen-up time on resume.

previously, we didn't encode a signed length in the kernel so we couldn't
trust the length that was presented to us. This was fixed a while ago
but i just connected the dots today that this needed to be updated as well.
2022-01-29 16:58:47 +08:00
bunnie
2b7e428340 checkpoint, need to fix something else 2022-01-29 16:09:59 +08:00
bunnie
8592224af2 checkpoint partial TCP progress
server-side impl done, inter-crate API half-complete, now working on lib
2022-01-29 00:57:36 +08:00
bunnie
69a8f2777f change default value on the null SSID string value 2022-01-28 23:32:45 +08:00
bunnie
0dbe05dd46 document magic constants 2022-01-28 16:33:06 +08:00
bunnie
9f124c646c more constants fixing 2022-01-28 16:31:34 +08:00
bunnie
de1f6f942d fix out of range consntant 2022-01-28 16:29:24 +08:00