Document:

<PAGE>

                                                                   EXHIBIT 10.54

                  AMENDED AND RESTATED REVOLVING NOTE

U.S. $15,000,000               Dallas, Texas                 December 21, 2001

     FOR VALUE RECEIVED, the undersigned (hereinafter, collectively,
"Borrower"), HEREBY JOINTLY AND SEVERALLY PROMISE TO PAY to the order of FLEET
 --------
CAPITAL CORPORATION, a Rhode Island corporation ("Lender"), for the account of
                                                  ------
its lending office specified on the signature pages to the Loan Agreement
referred to below (or, if applicable, on the signature page of the most recent
Lender Addition Agreement executed by such Lender), in lawful money of the
United States of America and in immediately available funds, the lesser of (i)
the principal sum of FIFTEEN MILLION AND NO/100 DOLLARS ($15,000,000), or (ii)
the aggregate unpaid principal amount of all Revolving Credit Loans made by
Lender to Borrower under the Loan Agreement. All capitalized terms used and not
otherwise defined herein shall have the meanings set forth in the Loan
Agreement.

     Borrower promises to pay interest on the unpaid principal amount of each
Revolving Credit Loan from the date of such Revolving Credit Loan until such
principal amount is paid in full, at such interest rates, and payable at such
times, as are specified in the Loan Agreement. The principal amount of this
Amended and Restated Revolving Note (this "Revolving Note") shall be due and
                                           --------------
payable at such times as are specified in the Loan Agreement.

     Both principal and interest are payable in lawful money of the United
States of America and in immediately available funds to Fleet Capital
Corporation, a Rhode Island corporation, as Agent, at its account at Fleet
National Bank (Providence, Rhode Island), ABA No.: 0115-0001-0, Account No.:
936-933-7800-00-101; Name of Account: Fleet Capital Southwest, Re: Petrocon
Engineering, Inc.. The date, amount, type (i.e. Eurodollar Loan or Base Rate
Loan), interest rate and duration of LIBOR Interest Period (if applicable) of
each Revolving Credit Loan made by Lender to Borrower, and each payment made on
account of the principal thereof, shall be recorded by Lender on its books and,
prior to any transfer hereof, endorsed on the grid attached hereto which is part
of this Revolving Note, provided, however, that failure of Lender to make such
                        --------  -------
notation or any error therein shall not in any manner affect the obligation of
Borrower to repay such Revolving Credit Loans in accordance with the terms of
this Revolving Note.

     This Revolving Note is the Revolving Note referred to in, and is subject to
and entitled to the benefits of, that certain Second Amended and Restated Loan
and Security Agreement dated as of the date hereof, by and among Borrower, Fleet
Capital Corporation, as Agent, Lender and the other financial institutions from
time to time a party thereto (as amended from time to time, the "Loan
                                                                 ----
Agreement"). This Revolving Note is secured by the Collateral described in the
---------
Loan Documents. The Loan Agreement, among other things, (i) provides for the
making of Revolving Credit Loans by Lender to Borrower from time to time
pursuant to Section 1.1 of the Loan Agreement in an aggregate outstanding amount
            -----------
not to exceed at any time the U.S. dollar amount first above mentioned, the
indebtedness of Borrower resulting from each such Revolving Credit

                                     1

Revolving Note
<PAGE>

Loan being evidenced by this Revolving Note, and (ii) contains provisions for
acceleration of the maturity hereof upon the happening of certain stated events
and also for prepayments on account of principal hereof prior to the maturity
hereof upon the terms and conditions therein specified.

     Borrower hereby waives presentment, demand, protest, notice of intent to
accelerate, notice of acceleration and any other notice of any kind, except as
provided in the Loan Agreement. No failure to exercise, and no delay in
exercising, any rights hereunder on the part of the holder hereof shall operate
as a waiver of such rights.

     This Note is given in amendment, restatement, modification and increase and
not in extinguishment or novation) of that certain Revolving Note, in the stated
principal amount of $15,000,000, dated June 15, 1999, executed by Original
Borrowers and payable to the order of Fleet.

     THIS REVOLVING NOTE SHALL BE GOVERNED BY, AND CONSTRUED IN ACCORDANCE WITH,
THE LAWS OF THE STATE OF TEXAS (EXCEPT THAT THE PROVISIONS OF CHAPTER 346 OF THE
TEXAS FINANCE CODE, WHICH REGULATES CERTAIN REVOLVING CREDIT LOAN ACCOUNTS,
SHALL NOT APPLY TO THIS REVOLVING NOTE) .

              [Remainder of Page Intentionally Left Blank]

                                      2
<PAGE>

     IN WITNESS WHEREOF, Borrower has caused this Note to be duly executed and
delivered in Dallas, Texas, on the date first above written.

                   IDS ENGINEERING, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   THERMAIRE, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   CONSTANT POWER MANUFACTURING, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   INDUSTRIAL DATA SYSTEMS, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   IDS ENGINEERING MANAGEMENT, LC

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   PETROCON ENGINEERING, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

Revolving Note
<PAGE>

                   TRIANGLE ENGINEERS AND CONSTRUCTORS, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   PETROCON SYSTEMS, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   PETROCON TECHNOLOGIES, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   PETROCON ENGINEERING OF LOUISIANA, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   R.P.M. ENGINEERING, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

                   ALLIANCE ENGINEERING ASSOCIATES, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

Revolving Note
<PAGE>

                   PETROCON CONSTRUCTION RESOURCES, INC.

                   By:________________________________________________________
                   Name:______________________________________________________
                   Title:_____________________________________________________

Revolving Note
<PAGE>

                       LOANS, MATURITIES
              AND PAYMENTS OF PRINCIPAL AND INTEREST

<TABLE>
<CAPTION>
=====================================================================================================
                         Type of
                          Loan
Date Made,               (Eurodollar                 Duration of  Amount Paid,
Continued     Principal   Loan or                      LIBOR        Prepaid,      Unpaid
   or         Amount of  Base Rate                     Interest   Continued or   Principal  Notation
Converted      Loan       Loan)        Interest Rate   Period       Converted     Amount    Made By
<S>           <C>        <C>           <C>           <C>          <C>            <C>        <C>
=====================================================================================================
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
=====================================================================================================
</TABLE><PAGE>

                                                                   EXHIBIT 10.55

                          STOCK PLEDGE AGREEMENT

     THIS STOCK PLEDGE AGREEMENT (this "Agreement") is entered into on December
                                        ---------
___, 2001, by and between INDUSTRIAL DATA SYSTEMS CORPORATION, a Nevada
corporation ("Pledgor"), and FLEET CAPITAL CORPORATION, a Rhode Island
              -------
corporation, as Agent for itself and the other financial institution(s) from
time to time a party to the Loan Agreement (as hereinafter defined) ("Pledgee").
                                                                      -------
All capitalized terms used but not otherwise defined herein shall have the
meanings ascribed to such terms in the Loan Agreement.

     1.   For good and valuable consideration, the receipt and sufficiency of
which is hereby acknowledged, and as collateral security for and to secure the
prompt payment and performance in full of the Secured Obligations (hereinafter
defined), Pledgor hereby assigns to Pledgee and grants to Pledgee, for the
benefit of Lenders, a continuing security interest in all issued and outstanding
shares of capital stock (including, without limitation, all shares of capital
stock represented by the stock certificates identified on Schedule I attached
                                                          ----------
hereto) of each of IDS Engineering, Inc., a Texas corporation ("IDS
                                                                ---
Engineering"), Thermaire, Inc., a Texas corporation ("Thermaire"), Constant
-----------                                           ---------
Power Manufacturing, Inc., a Texas corporation ("Constant Power"), IDS
                                                 --------------
Engineering Management, LC, a Texas limited liability company ("Management"),
                                                                ----------
and Industrial Data Systems, Inc., a Texas corporation ("Data") (IDS
                                                         ----
Engineering, Thermaire, Constant Power, Management and Data are sometimes
hereinafter referred to individually and collectively as "Borrower"), whether
                                                          --------
now or hereafter issued by Borrower, together with all proceeds, products and
increases thereof and substitutions and replacements therefor (collectively, the
"Collateral").
 ----------

          As used in this Agreement, the term "Secured Obligations" shall mean
                                               -------------------
any and all (i) Obligations of Pledgor or Borrower to Pledgee and/or Lenders,
pursuant to that certain Second Amended and Restated Loan and Security
Agreement, dated as of the date hereof, by and among Pledgor, Borrower, Petrocon
Engineering, Inc., a Texas corporation, Triangle Engineers and Constructors,
Inc., a Texas corporation, Petrocon Systems, Inc., a Texas corporation, Petrocon
Technologies, Inc., a Texas corporation, Petrocon Engineering of Louisiana,
Inc., a Louisiana corporation, R.P.M. Engineering, Inc., a Louisiana
corporation, Alliance Engineering Associates, Inc., a Texas corporation,
Petrocon Construction Resources, Inc., a Texas corporation, Pledgee and Lenders
(as amended from time to time, the "Loan Agreement") and (ii) extensions,
                                    --------------
renewals, modifications, increases and replacements of the foregoing. The term
"Secured Obligations" shall include, without limitation, all unpaid accrued
 -------------------
interest thereon and all costs and expenses payable as hereinafter provided: (i)
whether now existing or hereafter incurred; (ii) whether direct, indirect,
primary, absolute, secondary, contingent, secured, unsecured, matured, or
unmatured; (iii) whether such indebtedness is from time to time reduced and
thereafter increased, or entirely extinguished and thereafter reincurred; (iv)
whether such indebtedness was originally contracted with Pledgee or with another
or others; (v) whether or not such indebtedness is evidenced by a negotiable or
nonnegotiable instrument or any other writing; and (vi) whether such
indebtedness is contracted by Pledgor or Borrower individually or jointly or
severally with another or others.

     2.   Pledgor represents and warrants that (i) Pledgor is the legal and
beneficial owner of the Collateral, free and clear of all liens and
encumbrances; (ii) there are no restrictions upon the

                                      1

Stock Pledge Agreement (IDS Corp.)
<PAGE>

transfer of any of the Collateral, other than as may appear and may be
referenced on the face of the certificates, those arising under applicable state
or federal securities laws and those existing on the date hereof and disclosed
to Pledgee in writing; (iii) Pledgor owns 100% of the issued and outstanding
capital stock of Borrower; (iv) except as disclosed to Pledgee in writing, there
are no existing obligations to issue capital stock or securities convertible
into capital stock of Borrower.

     3.   In furtherance of Pledgee's security interest in the Collateral,
Pledgor agrees to deliver to Pledgee, on the date of this Agreement, the stock
certificates identified on Schedule I attached hereto, together with stock
                           ----------
powers duly executed in blank by Pledgor.

     4.   With respect to the Collateral, Pledgor hereby appoints Pledgee its
attorney-in-fact to arrange for the transfer of the Collateral on the books of
Borrower to the name of Pledgee during the continuance of any Event of Default;
provided, however, that Pledgee shall be under no obligation to do so.
--------  -------

     5.   During the term of this Agreement, provided no Event of Default then
exists, Pledgor shall have the right, where applicable, to vote the Collateral
on all corporate questions, and Pledgee shall, if necessary, execute due and
timely proxies in favor of Pledgor for this purpose.

     6.   While an Event of Default exists, Pledgee may exercise all of the
rights and privileges in connection with the Collateral to which a transferee
may be entitled as the record holder thereof, together with the rights and
privileges otherwise granted hereunder. Pledgee shall be under no obligation to
exercise any of such rights or privileges.

     7.   If, with the consent of Pledgee, Pledgor shall substitute or exchange
other securities in place of those herein mentioned, all of the rights and
privileges of Pledgee and all of the obligations of Pledgor with respect to the
securities originally pledged or held as Collateral hereunder shall be forthwith
applicable to such substituted or exchanged securities.

     8.   While an Event of Default exists, Pledgee shall be authorized to
collect all dividends, interest payments, and other amounts (including amounts
received or receivable upon redemption or repurchase) that may be, or become,
due on any of the Collateral. If Pledgor receives any such dividends, payments
or amounts after the occurrence and during the continuance of an Event of
Default, it shall immediately endorse and deliver the same to Pledgee in the
form received. All such amounts which Pledgee receives and retains in accordance
with the terms of this paragraph 8 shall be applied to reduce the principal
amount outstanding on the Secured Obligations in the inverse order of maturity.
Pledgee is, furthermore, authorized to give receipts in the name of Pledgor for
any amounts so received. Pledgee shall be under no obligation to collect any
such amounts.

     9.   In the event that, during the term of this Agreement, subscription
warrants or any other rights or options shall be issued in connection with the
Collateral, such warrants, rights or options shall be immediately assigned, if
necessary, by Pledgor to Pledgee. If any such warrants, rights or options are
exercised by Pledgor, all new securities so acquired by Pledgor shall be
immediately assigned to Pledgee, shall become part of the Collateral and shall
be endorsed to,

                                      2

Stock Pledge Agreement (IDS Corp.)
<PAGE>

delivered to and held by Pledgee under the terms of this Agreement in the same
manner as the securities originally pledged.

     10.   In the event that, during the term of this Agreement, any share,
dividend, reclassification, readjustment or other change is declared or made in
the capital structure of Borrower, all new, substituted and additional shares,
or other securities, issued by reason of any such change shall become part of
the Collateral and shall be endorsed to, delivered to and held by Pledgee under
the terms of this Agreement in the same manner as the securities originally
pledged.

     11.   Pledgor authorizes Pledgee, without notice or demand, and without
affecting the liability of Pledgor hereunder, from time to time to:

           (A)   hold security in addition to and other than the Collateral for
the payment of the Secured Obligations or any part thereof, and exchange,
enforce, waive and release any Collateral or any part thereof, or any other such
security, or part thereof;

           (B)   release any of the endorsers or guarantors of the Secured
Obligations secured hereunder or any part thereof, or any other person
whomsoever liable for or on account of such Secured Obligations;

           (C)   on the transfer of all or any part of the Secured Obligations
secured hereunder, Pledgee may assign all or any part of Pledgee's security
interest in the Collateral and shall be fully discharged thereafter from all
liability and responsibility with respect to the Collateral so transferred;
provided, however, that in no event shall Pledgee be liable for any act or
--------  -------
omission or negligent act or negligent omission with respect to the Collateral,
other than acts or omissions constituting gross negligence, willful misconduct,
tortious breach of contract or violation of law. The transferee of the
Collateral shall be vested with the rights, powers and remedies of Pledgee
hereunder, and with respect to any Collateral not so transferred, Pledgee shall
retain all rights, powers and remedies hereby given; and

           (D)   Pledgor hereby waives any right to require Pledgee to proceed
against Pledgor, Borrower or any other person whomsoever, to proceed against or
exhaust any collateral or any other security held by Pledgee, or to pursue any
other remedy available to Pledgee. Pledgor further waives any defense arising by
reason of any liability or other defense of Pledgor or of any other person.
Pledgor shall have no right to require Pledgee to marshal collateral.

     12.   It shall not be necessary for Pledgee to inquire into the powers of
Pledgor or the officers, directors or agents acting or purporting to act on
behalf of Pledgor, and any obligations made or created in reliance on the
professed exercise of such powers shall be secured hereunder.

     13.   To the extent permitted by applicable law and in the Loan Agreement,
Pledgee shall be under no duty or obligation whatsoever to make or give any
presentments, demands for performance, notices of non-performance, protests,
notices of protest, or notices of dishonor in connection with the Secured
Obligations.

                                      3

Stock Pledge Agreement (IDS Corp.)
<PAGE>

     14.   The occurrence of an "Event of Default" under the Loan Agreement
shall, at the option of Pledgee, constitute an "Event of Default" under this
                                                ----------------
Agreement.

     15.   While an Event of Default exists, Pledgee shall have the right to
exercise all rights and remedies afforded to it under the Loan Agreement and, in
this connection, the Pledgee may sell all or any part of the Collateral in such
manner as provided in the Loan Agreement. Pledgee shall apply the proceeds of
any such sale or sales of the Collateral in the manner provided in the Loan
Agreement.

     16.   Upon the indefeasible repayment in full in cash of the Secured
Obligations, Pledgee will promptly, at Pledgor's expense, deliver all of the
Collateral to Pledgor along with all instruments of assignment executed in
connection therewith, and execute and deliver to Pledgor such documents as
Pledgor shall reasonably request to evidence Pledgee's release of Pledgee's
security interest hereunder.

     17.   THIS AGREEMENT SHALL BE INTERPRETED AND THE RIGHTS AND LIABILITIES OF
THE PARTIES HERETO DETERMINED IN ACCORDANCE WITH THE LOCAL LAW OF THE STATE OF
TEXAS EXCLUDING ANY CONFLICTS OF LAW RULE OR PRINCIPLE THAT MIGHT OTHERWISE
REFER CONSTRUCTION OR INTERPRETATION OF THIS AGREEMENT TO THE SUBSTANTIVE LAW OF
ANOTHER JURISDICTION.

                [Remainder of Page Intentionally Left Blank]

                                      4

Stock Pledge Agreement (IDS Corp.)
<PAGE>

     IN WITNESS WHEREOF, Pledgor and Pledgee have executed this Agreement as
of the date first above written.

                   PLEDGOR:
                   -------

                   INDUSTRIAL DATA SYSTEMS
                   CORPORATION

                   By:_______________________________________________________
                   Name:_____________________________________________________
                   Title:____________________________________________________

                   PLEDGEE:
                   -------

                   FLEET CAPITAL CORPORATION, as Agent

                   By:_______________________________________________________
                        Dan A. Hughes
                        Vice President

Stock Pledge Agreement (IDS Corp.)
<PAGE>

                                 SCHEDULE I
                                 ----------

           Capital Stock Pledged by Industrial Data Systems Corporation

<TABLE>
<CAPTION>
Name                           Class of  Certificate               Record Holder             Number
                               Security    Number                                              of
                                                                                             Shares
<S>                            <C>       <C>          <C>                                    <C>
IDS Engineering, Inc.          Common      1            Industrial Data Systems Corporation  1,000

Thermaire, Inc.                Class A     C3           Industrial Data Systems Corporation  8,000

Thermaire, Inc.                Class B     C3           Industrial Data Systems Corporation  2,000

Thermaire, Inc.                Class C     C3           Industrial Data Systems Corporation  316,855

Thermaire, Inc.                Class C     C4           Industrial Data Systems Corporation  134,437

Constant Power                 Common      2            Industrial Data Systems Corporation  1,000
Manufacturing, Inc.

Industrial Data Systems, Inc.  Common      005          Industrial Data Systems Corporation  200,000
</TABLE>

        Membership Interest Pledged by Industrial Data Systems Corporation

<TABLE>
<CAPTION>
           Name                           Record Holder                          Percentage of
                                                                                    Interests
<S>                                  <C>                                         <C>
IDS Engineering Management, LC       Industrial Data Systems Corporation         100%
</TABLE>

Schedule 1
<PAGE>

                                 SCHEDULE II
                                 -----------

                    Original Stock Certificates with Stock Power

SCHEDULE II

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00036-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00036-of-00352.parquet"}]]